Tag Info

Hot answers tagged

2

I know this thread is quite old, but I came across it researching the same thing so thought I'd post my solution in case it helps anyone. I couldn't find anything that did exactly what I wanted so I created a layer for it. Clusters points and creates flares for the clusters. Similar to the accepted answser provided by lele3p. Just posted it on github. ...


2

It should work if you replace "www.google.com" with 'http://www.google.com' (note the single quotes). var link = "<a href='http://www.google.com'>Google Office</a>"


1

Take a look at this sample that shows how to work with queries of different layers or services. It also uses Dojo Promise function to handle the results from executing more than one query.


1

Vince is right. in the jsapi this is expressed as query.orderByFields https://developers.arcgis.com/javascript/jsapi/query-amd.html#orderbyfields in REST itself, the parameter is the same: http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Query_Feature_Service_Layer/02r3000000r1000000/


1

It looks like your time wasn't stored in UTC and is getting converted improperly. The PopupTemplate constructor has an option to set the UTC offset. Take a look at this discussion on the ArcGIS forum for a example on how to use it.


1

I couldn't identify something like this in the layers provided by Esri, but since the used layer is in my hands I decided to care for myself about using the proxy or not. I added following snippet in the getTileUrl-function: if (esriConfig.defaults.io.alwaysUseProxy === true) { url = esriConfig.defaults.io.proxyUrl + "?" + url; } ...


1

because ArcGIS Server operations are able to reproject output features on the fly, there should never be a need to do it manually afterward. it looks like prior to 3.12, in situations like this, the ArcGIS API for JavaScript was incorrectly identifying the spatial reference of output geometries from identify as WGS84 {wkid:4326} instead of web mercator ...


1

I have been using for some time icons from Material Design icons by Google and just love it. Docs are here. A sample picture: https://github.com/google/material-design-icons/blob/master/maps/1x_web/ic_directions_bike_black_18dp.png


1

use the locate event emitted by the widget as your opportunity to get a reference to the geolocated coordinates. geoLocate = new LocateButton({ map: map }, "LocateButton"); geoLocate.startup(); geoLocate.on('locate', function(evt) { console.log(evt.graphic.geometry); }); pass this geometry in a spatial query to your ...



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