4

I've done some changes to your code https://codepen.io/nettaben/pen/YzPrYrY What is new: When the dialog is open and the mouse is moving ==> the line keeps "updating" (remove and add) and the dialog moves along with the cursor. On map click the "moveAlong" behavior stops On Kendo window dragstart the behavior is changed back to moveAlong I had some ...


2

Might be an issue with the order of LAT/LON. I tried by using mentioned code and it draws a line from EAST to WEST across USA. var polyline = { type: "polyline", // autocasts as new Polyline() paths: [ [-80.96135253906438,35.9411934679851], //interchanged the values [-118.808878330345, 34.0016642996246] ] Sample: https:...


2

The Layer Toggle Button widget is designed to do precisely that. This is just a simple widget to toggle a configured layer(s) on and off using a button. The layer(s) can be a whole map service layer or a specific sublayer(s) in a map service. This widget will sync with the LayerList widget. You can add multiple instances of this widget to onscreen place ...


1

If you are using API 3 (I think this is the one you are using it), then what it might be happening is that you are not waiting for the map to load. map.on("load", function () {console.log(map.extent);}); On the new API (API 4), you need to get the data from the view. Here, the view has a center property, something like this: let coordinateBx = view.center....


1

I think you are confused, check again the ArcGIS API for JavaScript Sandbox example. The url property is where you should put the source of the data, in your code js/all_month.geojson. One more thing, GeoJSONLayer has no data property.


1

You were almost there. Here is the correct code. function zoomToExtent(extent) { var hiddenMapPartTopLeft = map.toMap(new ScreenPoint(0, 0)), hiddenMapPartBottomRight = map.toMap(new ScreenPoint(panel.position.width, map.container.offsetHeight)); // Removed panel.postion.left var dx = new Extent({ xmin: hiddenMapPartTopLeft.x, ymin: ...


Only top voted, non community-wiki answers of a minimum length are eligible