The ArcGIS API for JavaScript is a web mapping API from Esri.

learn more… | top users | synonyms

1
vote
1answer
138 views

ArcGIS Javascript Map loads but doesn't display

I just started creating a very simple mobile GIS app using ArcGIS Javascript API, and I have experiencing a very peculiar issue. When the app loads, the basemap is white (not visible) until you use ...
0
votes
3answers
857 views

How to add png image with esri javascript api MapImageLayer Class?

I have a png image that we host that I need to resize and overlay onto a map at specific gps coordinates. Would this be an image class? I can't seem to find any examples that match up with my needs. I ...
0
votes
0answers
113 views

How to populate a dropdownlist with map service field names given only the layer name

I'm trying to wrap my head around a task which seems pretty simple, but not sure what the easiest way to go about it. I'm using javascript api and have a populated dropdownlist of sorted layer names ...
0
votes
0answers
127 views

FeatureLayer infowindow position appears on wrong location

When I click the feature layer, info window popup is appearing wrong position. I use dojo dijit like this toolkit. <div id="main" data-dojo-type="dijit/layout/BorderContainer" ...
0
votes
2answers
70 views

database using arcgis [closed]

i want to know, can arcgis software do the database such as oracle or ms access?? for example, create own database and form?? and can the database in arcgis read the programmer program such as from ...
0
votes
1answer
96 views

Accessing the esri js api over ssl

I changed the url i was using to fetch the esri js api to https://js.arcgis.com/3.7 and i can see in Fiddler that the call to that url is going out as ssl. But the file it pulls down (init.js) must be ...
0
votes
1answer
51 views

How do I change my title of app?

We have a map with streets as basemap. We have been trying unsuccessfully, for the last two days to change the basemap to tiled layer with no success at all. I am posting a snippet because script is ...
0
votes
1answer
254 views

Adding OGC complaint WMS Aerial Images as Base Maps using arcgis javascript api

I have an WMS layer which is a cross domain resource and I wanted to embed those layers as basemap in my application using JavaScript api rather than using built in ArcGIS Basemaps. WMS Layer is ...
1
vote
1answer
92 views

Is it possible to provide proxy.ashx for the other domain?

Usually, we use proxy.ashx for the same domain by this code. (working well.) esri.config.defaults.io.proxyUrl = "proxy.ashx"; esri.config.defaults.io.alwaysUseProxy = true; If the other domain ...
0
votes
1answer
65 views

Call Identify Click Function on Dropdown Change

I am a web programmer with no GIS experience and I am working with a GIS specialist with no web service experience. I am using the JavaScript API 3.7 but I am not very familiar with the API. I have ...
1
vote
1answer
70 views

ArcGIS JSAPI Toggle Identify (AMD style)

I am trying to convert the Toggle Identify example to AMD style. However, I am stuck with an empty map. Debugging in Firebug doesn't help too much. Could anyone help me to find where I am wrong? The ...
0
votes
0answers
94 views

How to improve performance in ArcGIS Javascript API?

I created a webgis using ArcGIS Javascript API . I used dynamic map service layer with two layer in my map.I don't use 3D symbol and the symbology of layers are simple but when i run the project,I ...
1
vote
1answer
1k views

add marker to map from list of coordinates

Forgive me if this question has an incredibly obvious answer. I'm very new to ESRI and I'm trying to add markers to my map via gps coordinates. I have not found an example that does something this ...
1
vote
0answers
228 views

Feature Layer performance improvement

I have create a application where we show world map using arcgis .Here user does lot of interaction with map he click on the map or we highlight map programmatically so i want to improve performance ...
2
votes
1answer
452 views

How to open InfoTemplate programmatically?

Could somebody help me? How to open InfoTemplate programmatically??? Using of FeatureLayer.selectFeatures(...) not helps. Here is example: http://jsfiddle.net/gfV2K/ When I click on the map then ...
2
votes
2answers
185 views

How to ensure that only my application has access to ArcGIS Server services

I'm making a web map based on the ArcGIS Server JS API. How can I ensure that users must use my front-end to access the ArcGIS Server layers? That is, I want anyone visiting MyDomain.com/index.html ...
0
votes
0answers
380 views

Get XY coordinates in UTM from web-mercator where UTM zone is not known

How to get XY(northing/easting) coordinates in UTM where data is WGS_1984_Web_Mercator_Auxiliary_Sphere(WKID: 3857) coordinate system and UTM zone is unknown. For e.g. India falls under multiple UTM ...
0
votes
0answers
74 views

Arcgis Javascript code InfoWindow template

I am creating an InfoWindow in javascript code like following. var htmlForms = "<span>City ID: ${CITYID}</span>"+"</br>"; htmlForms += "City Name: ...
1
vote
0answers
22 views

How to hide infoWindow while using measure tool and showing it back after using it ArcGis JavaScript API [duplicate]

I have an infoWinfow set on the click event of the map. I want to disable this event when I'm using the measurement tool and then enable it back after the measurement tool is used. So far I've done ...
1
vote
0answers
144 views

Without Proxy page can't use IE8 and IE9 for Editing and Buffer

The server where my editing application is hosted does not allow a proxy page because of outgoing calls restriction. This makes it difficult for IE8 and IE9 since using CORS is not an option as there ...
2
votes
1answer
78 views

How to flash a JSAPI map graphic only when contained in map extent [closed]

Using ESRI JSAPI 3.7 I'm flashing a graphic that works fine when the graphic is located within the bounds of the map extent (is visible). However, when you move the map so the graphic is located out ...
0
votes
1answer
73 views

esri map popup problem [closed]

My map works fine. Popup works fine. For some reason, the bottom of the popup window has some layout issues. I have all the resources included. script: dojo.require("esri.map"); ...
0
votes
1answer
71 views

Bottom half of javascript web map application missing

Having an issue where the bottom half of a javascript web application is missing. I have checked the ArcGIS map services and they are functioning properly. I'm not a JS developer and am not sure ...
0
votes
0answers
115 views

Arcgis custom spatialreference and geolocation problem

I have a tiled map service layer that has custom spatial reference. This is url of map. Spatial Reference: ...
1
vote
1answer
825 views

How to create working Hyperlinks in OnDemandGrid Cells

I'm creating a simple ArcGIS application that shows a table of data from a feature layer, one of which is a URL string. I'd like to make that string be a clickable hyperlink. Is this possible and if ...
1
vote
1answer
903 views

Get displaylevels/zoom level javascript API

Is there any way using JavaScript API to get the current "displayLevels" of the basemap or "basemap zoom level" or "basemap scale" of the map and if it was more/less than certain number I change the ...
0
votes
1answer
293 views

Change Map layers when zooming in (JavaScript API)

I have created a web map application (Javascript API) : require([ "esri/map", "esri/dijit/InfoWindowLite", "esri/InfoTemplate", "esri/layers/FeatureLayer", "dojo/dom-construct", ...
0
votes
2answers
360 views

How to set different map layers for different zoom levels using ArcGIS JavaScript API?

I have created a layer using "clip" tool in ArcMap. I have another layer in TOC too. whichis the same area in "clip" Layer with more polygons. In my web map application (javaScript API) Is there ...
0
votes
0answers
42 views

scalebar doesn't print properly in IE or FF

I have a ruler-style scalebar in my webapp, which uses the ArcGIS JS API version 3.1. When I send the map to print using window.print(), the scalebar renders as expected in Chrome, but in both IE and ...
2
votes
0answers
223 views

Can I highlight a selected feature using the ArcGIS REST API only?

I have a .Net web application with embedded maps, using the Arcgis javascript API. For non-interactive maps, I thought I would just make calls using c# to the REST endpoints. This works fine for ...
1
vote
1answer
79 views

Query Selected Records Only: Javascript API

For a web application I am working on, I currently have a feature layer with ID 0 (Street Lights) and feature layer with ID 1 (Maintenance Records Table). Multiple records in layer ID 1 are related to ...
2
votes
1answer
369 views

How to flash a graphic in JSAPI using AMD

With the code below I was hoping to flash the selected polyline, however no success. function flashResults(featureSet) { alert("flash"); //remove all graphics on the maps graphics layer ...
1
vote
1answer
171 views

How do I change the color of an ArcGISImageServiceLayer?

I have published an image service of a raster layer (.tif). When I use it online, it is grayscale. In ArcMap, I have the option to change the color of the display. How can I do this from the ...
2
votes
0answers
82 views

Cannot use published zonal stats geoprocessing service (Arcgis Java API)

I am primarily following this tutorial. Here is the signature for the service used in the sample. It is slightly different than the one I have had any success with, though if I recall correctly the ...
0
votes
0answers
89 views

ESRI reverse proxy setting

My application is running on https but my arcgis server is not running on https hence I configured revrse proxy on my webserver.Even though map loads but when I query the rest services the url I ...
0
votes
2answers
350 views

Moving ArcGIS JSAPI Basemap Gallery Widget down 10px when opened

How can I move the Basemap gallery 10px down from its original position when it's opened. The basemap gallery sample, I am referring can be found here: ...
1
vote
0answers
24 views

Implementing day night functionality [duplicate]

I want to implement day/night functionality on world map i.e there will be dark layer showing countires having night now. This world map could be creaeted through ESRI or SVG map.I want to ...
0
votes
1answer
308 views

ESRI Javascript API Geocoder VS Locator module

What's the difference between ESRI's Geocoder and Locator module in the javascript API? I know the Geocoder defaults to ESRI's geocoding service, or both modules can be set to a custom Address Locator ...
0
votes
1answer
176 views

Flash a graphic using JSAPI AMD style

This should be simple, but not sure why I'm not getting it. Does anyone have a stub for showing how to flash a graphic? I want to be able to call it from a button in the JSAPI UI. I am using the AMD, ...
0
votes
0answers
253 views

How to get initial datas after bind time Slider to map , ArcGIS JavaScript API

Like this example:https://developers.arcgis.com/en/jav..._layerDef.html , I have added my featureLayer to my map, and bind the timeSlider with the timeExtent = featureLayer's timeExtent. After bind ...
0
votes
0answers
47 views

One Layer in Two Maps with Esri JS API

Is it possible to put a single FeatureLayer in multiple maps in the same app with the Esri JS API? I have two maps that I want to contain the same layer and I want the maps both to honor and changes ...
2
votes
0answers
58 views

Dissolve Statistics Fields and Statistic Type as Parameters in GeoProcessor

I have a published service which uses a dissolve. In arcMap the I get prompted for all the fields, including statistics fields and stat type. I have the statistics fields marked as parameters. ...
0
votes
1answer
51 views

ArcGIS javascript api Rendering some parts of the Featurelayer?

Hi I'm confused how to render only some parts of a feature layer. Since all the given classbreak rendering samples are rendering the whole feature layer, is there any method to render only a few of ...
0
votes
1answer
115 views

Infowindow selection change

I am using infowindow to display the results of identifyTask that has two layers from my map service so it returns multiple features. The infowindow has more button in each feature it identifies so ...
0
votes
1answer
62 views

Add layer from a folder to Map using java script api

I know you can add layers to map through map service using javascript api. Can we directly add layers (placed in a folder on ftp) to the map using javascrip api. If so, can please explain it and ...
0
votes
0answers
84 views

How do you set the TimeZone for a feature layer in ArcGIS JavaScript?

The author of this question says: Esri recommends that databases are in UTC time. And if I’ve got this right, unless you set a time zone in your layer, you are entering a date in a date field ...
0
votes
0answers
192 views

Editing a stand-alone table in ArcGIS API for JavaScript

I am new to scripting and the API, and it would be good to have a clear idea of what to look into for this task. I am trying to let users add information to a table (but not edit that table in any ...
0
votes
0answers
508 views

How to add WMS Layer from openweathermap?

I've tried to add some WMS Layers to my webmap using ESRIs Java Script API. I'm very interested in using weather WMS layers and I've already found some usefull. If there is anything better free ...
2
votes
1answer
249 views

How to add a “loading” image is ESRI JSAPI AMD

Does anyone have an example of how to display a "loading" image in the new AMD environment of ESRI's JSAPI? Familiar with doing it in the past, just seems there's quite a lack of documentation. ...
2
votes
1answer
1k views

Help with getting the coordinates of a point updated using ESRI JS API Editor

I've been working with ESRI's javascript API for about a week and finding that somethings click while other things are still a mystery to me. I've already created a simple web map that loads an ...