|
POST
|
i'd recommend listening for the startup event of the BasemapGallery and then calling BasemapGallery.select() with the id your USA topo layer. https://developers.arcgis.com/javascript/jsapi/basemapgallery-amd.html#select
... View more
07-08-2014
05:00 PM
|
0
|
1
|
1010
|
|
POST
|
based on my reading of the doc, refreshInterval is property of the class that is not exposed as a constructor option. try setting it independently. var wmsRadarLayer = new WMSLayer('http://... //interval is defined in minutes (.05 = 3 seconds) wmsRadarLayer.refreshInterval = .05;
... View more
07-08-2014
10:14 AM
|
0
|
1
|
1671
|
|
POST
|
perhaps try setting the refreshInterval property which was added at 3.7?
... View more
07-08-2014
08:49 AM
|
0
|
3
|
1671
|
|
POST
|
here's a good conceptual article that also describes OAuth2 techniques for authenticating against our REST API. ArcGIS REST API - Accessing services provided by Esri
... View more
07-08-2014
08:35 AM
|
0
|
0
|
1255
|
|
POST
|
john, what tim noticed is that currently you are 'listening' for the locate event to be triggered, but using that geometry to create your circle graphic. in your code right now you are wiring up a second event listener to wait for someone to click on the map after the locate button has already been pressed. you can see that its working if you click on the map after using the locate widget and then zoom out enough levels to display the 10 mile diameter ring.
... View more
06-30-2014
12:16 PM
|
0
|
0
|
1327
|
|
POST
|
i wrote up a sample fiddle to show what tim is talking about and demonstrate where to place a callback function. http://jsfiddle.net/jagravois/4zz6P/ basically, he is recommending that you create an event listener so that you can have some code fire only after someone has used the widget to identify their location. 'doThis' is just the name of the function which is called after that event fires. hope that helps!
... View more
06-28-2014
02:50 PM
|
0
|
0
|
1327
|
|
POST
|
you can also trigger the widget programmatically... locateButton.locate() https://developers.arcgis.com/javascript/jsapi/locatebutton-amd.html#locate
... View more
06-25-2014
06:58 AM
|
0
|
0
|
1327
|
|
POST
|
i haven't seen any samples like that, but i think its a good idea. https://github.com/Esri/esri-leaflet/issues/272
... View more
06-23-2014
08:17 AM
|
0
|
0
|
982
|
|
POST
|
hi tracy, all the source code for the widget (including the CSS) is open source and can be found in GitHub. https://github.com/Esri/arcgis-dijit-geocoder-js/blob/master/css/Geocoder.css
... View more
06-22-2014
09:37 PM
|
0
|
0
|
507
|
|
POST
|
hi joe, layer '1' is just a flat table with no geometry, so esri-leaflet has nothing to draw on the map.
... View more
06-22-2014
09:29 PM
|
0
|
0
|
982
|
|
POST
|
hi mohamed, its definitely possible to pass an array of point geometries in a single buffer request. https://developers.arcgis.com/javascript/jsapi/bufferparameters-amd.html please share a simple, self contained sample (hopefully using something like jsfiddle) and we can take a deeper look.
... View more
06-22-2014
09:25 PM
|
0
|
0
|
411
|
|
POST
|
sorry for the extremely late reply, but i just came across this forum thread and can't reproduce the behavior you describe in 10.21 http://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/2/query?where=STATE_NAME%3D%27California%27&text=&objectIds=&time=&geometry=-179%2C+0%2C+179%2C+90&geometryType=esriGeometryEnvelope&inSR=&spatialRel=esriSpatialRelIntersects&relationParam=&outFields=STATE_NAME&returnGeometry=false&maxAllowableOffset=&geometryPrecision=&outSR=&returnIdsOnly=false&returnCountOnly=false&orderByFields=&groupByFieldsForStatistics=&outStatistics=&returnZ=false&returnM=false&gdbVersion=&returnDistinctValues=true&f=html hopefully that means the problem has been solved.
... View more
06-18-2014
09:30 AM
|
0
|
1
|
717
|
|
POST
|
donald, can you put together some sample code? matt's suggestion worked for me... http://jsfiddle.net/jagravois/Wv4a6/
... View more
06-11-2014
01:56 PM
|
0
|
0
|
1435
|
|
POST
|
thanks for the additional clarification. i guess you're caught kinda halfway in between here, but to me its starting to sound like you'd be better off using esriRequest() to make your own call to our suggestion service and handling the results however you want.
... View more
06-11-2014
12:26 PM
|
0
|
0
|
1435
|
|
POST
|
donald, welcome to our forums 🙂 you won't have a reference to any candidates until after you call geocoder.find() and wait for a callback with the results from the geocoding service itself...
geocoder.find();
geocoder.on("find-results", function(evt) {
console.log(evt.results);
});
... View more
06-10-2014
09:38 AM
|
0
|
0
|
1435
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-16-2014 02:35 PM | |
| 1 | 03-15-2013 04:25 PM | |
| 1 | 06-01-2016 10:51 AM | |
| 1 | 12-28-2015 04:46 PM | |
| 1 | 12-28-2015 05:26 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:22 AM
|