mapView.removeAllShapes();
// this.routeCordinates = decodePolyline(encodedPolylinePoints);
let testPolyLine = new Polyline();
US_COORDINATES.map((coordinates: USCoordinate) => {
testPolyLine.addPoint(Position.positionFromLatLng(coordinates.latitude, coordinates.longitude));
});
testPolyLine.visible = true;
testPolyLine.geodesic = true;
testPolyLine.width = 2;
testPolyLine.color = new Color('#8ABF5F');
mapView.addPolyline(testPolyLine);
我100%地确定我的HTML在数据属性和相应的ID方面是正确的,需要对其进行设置才能使其正常工作。
在控制台中粘贴$('。dropdown')。dropdown()然后选择菜单项似乎会触发下拉菜单,这使我认为它与JS相关或某种冲突。
任何指针都很棒!