Tag Info

Hot answers tagged

4

esri leaflet is an alternative to the ArcGIS API for JavaScript, not something that makes much sense to try and combine. L.esri.DynamicMapLayer provides comparable functionality (within Leaflet) for loading dynamic map services published to ArcGIS Server to the class 'esri/layers/ArcGISDynamicMapServiceLayer' in the JSAPI please check out the esri leaflet ...


2

If I am understanding you correctly, this funnctionality already exists in my Search widget which is a companion to my Attributes Tables widget.


2

You could loop through map.layerIds to obtain the id of each layer already in the map and compare the id values directly. Or compare a distinctive property (like the url) to the layer you intend to add. To get that property, you would first call the method map.getLayer() to get the layer, then you can access the the url property. var existingLayer = ...


2

If you won't use ArcGIS Online basemaps, then don't add any map of the basemap type. Add Tiled map service and then add Dynamic map service. Add a slider to manage opacity of the top layer. Generally, Esri refers to a basemap as to any reference map that is drawn underneath all other layers and is used for orientation. In terms of JS API, basemaps are Esri ...


2

Options that we have used is to create a list in Microsoft SharePoint that is connected to the database that is being used by the web mapping system. In our case that has been SDE running on MS SQL, but we have also done it connected directly to MS SQL Spatial, and avoiding Esri. This gives the user a non-map based interface that looks like an spreadsheet. ...


1

From the documentation javascript api: basemap Optional Specify a basemap for the map. The following are valid options: "streets" , "satellite" , "hybrid", "topo", "gray", "dark-gray", "oceans", "national-geographic", "terrain" and "osm". Property added at v3.3. The "terrain" and "dark-gray" options added at v3.12. You only need to put in the code ...


1

As noted in the API reference, the measurement widget does not make event listeners available for the placement of individual nodes. that being said, our new geometryEngine can help you do calculations like this entirely on the clientside. i was able to whip up a simple sample in which i listen for both map 'click' and 'mouse-move' and create new polylines ...


1

Sorry for my english. I tried to adjust for yourself. You need to edit the file Controller.js. In section initLayer you must add the following at the end: if (layer.options.renderer_url != undefined && layer.options.renderer_url != '') { require([layer.options.renderer_url], function () { l.setRenderer(renderer); }) }; In ...


1

You only have one table in the configuration with two of each property (title, queryOptions, etc). The effective result is that only the second property with the same name is evaluated and used. To fix this, you need to add a closing curly brace } to end the configuration object for the first table followed by a comma. Then an opening curly brace { is ...


1

The problem was that I was calculating the angle for the marker symbol variable, rather than each instance of the symbol added to the graphics array. I changed the loop where the graphics are added, so that each new addition created a new instance of the marker symbol with its own angle calculated. Now the orientation of the symbol stays consistent.



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