Tag Info

Hot answers tagged

3

Regarding your question as to whether you can edit a feature layer using the REST API, the answer is yes. See the Apply Edits section of the REST API for documentation on how do this this. However, if it's only the status of the alarms which is changing every 15 minutes, you could make the change purely within the web map (without needing to change the ...


3

Pass in slider: false as an option when creating the map. Here is the Map Options API Reference. map = new Map("map", { basemap: "streets", slider: false }


3

syntax could vary from one underlying database to the next, but you need something like this: WHERE > FIELDNAME=(SELECT MAX(FIELDNAME) FROM TABLENAME) in essence 'return to me the feature with a value equal to the highest value for that particular field' ...


3

the full extent of a particular layer can be retrieved by the aptly named 'fullExtent' property. The value it returns can be passed to map.setExtent() in order to accomplish this dynamically if its not sufficient to pass static values to zoom out and view the entire world. See the API reference for more information ...


2

I did it with: on(map, "load", function () { map.hideZoomSlider(); });


2

you are providing an invalid url to your locator service in your code. "https://www.cartotronics.com/ArcGIS93/services/UTC_Viewers/Louisville_AlphaNumeric_Ranges/GeocodeServer" //should be "https://www.cartotronics.com/ArcGIS93/rest/services/UTC_Viewers/Louisville_AlphaNumeric_Ranges/GeocodeServer" just as an aside, it would have been substantially less ...


1

What you can do, is to check the expected Visibility at a particular zoomlevel, and change the layer's VisibleLayers appropriately. The map's zoom-end even is one place where you could check it. Assume that I have a DynamicMapService with 5 Layers in it. I'll define the layervisiblity with something like this: var layerVisibilityInfo=[ {id:0, ...


1

in general, you only get access to the symbology/opacity defined in the service itself. that being said, dynamic layers capability added at 10.1 provides an opportunity to define an entirely new renderer on the clientside for ArcGISDynamicMapServices... Here's a link to the ArcGIS Server help for configuring map services with dynamic layer support: ...


1

I believe you need to use method's showZoomSlider() / hideZoomSlider() property isZoomSlider. This should show or hide the zoom slider on the map. Help link here. Examples of disabling here.


1

I think the easiest way would be to use map.CenterAndZoom the following: button.on('click', function(){ var location = [-155.79719, 14.03035]; //Any location around the equator map.centerAndZoom(location, 2); }); A zoom level of 2 will show the entire map. If you dont want to use this a second option would be to use the Extent class.


1

It looks to me like you are trying to use the features array returned by QueryTask when it is empty. I.e. If 'result' is the name of the variable you're using in your QueryTask call back, then result.features is the array of features it returns. You need to check the length of the array, e.g.: if (result.features && result.features.length > 0) ...


1

there is a published sample in the ArcGIS API for JavaScript Resource Center which demonstrates how end users can browse for a file on disc and plot it interactively. Drag and drop to display data https://developers.arcgis.com/javascript/jssamples/exp_dragdrop.html


1

Finally I have the answer for my Query: Here is the solution... (I am posting this; it might help someone) Thank You for your Help and Support. <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" ...


1

Well, I'm going to "answer" my own question -- while the below isn't an ideal solution, it is pretty darn close and meets all 3 of the requirements I outlined in the question. Note that the limitations were: No immediately available access to our own map server (as it turned out), I don't have the know-how to write my own user registration system in only a ...


1

You don't have to specify a built-in basemap. Add your custom basemap as a layer like so. var map; require(["esri/map", "esri/layers/ArcGISTiledMapServiceLayer", "dojo/domReady!"], function (Map, ArcGISTiledMapServiceLayer ) { map = new Map("map", { center: [-76.756, 40.241], zoom: 8 }); var ...



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