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

learn more… | top users | synonyms

0
votes
1answer
179 views

Use Dojo to load modularized widget config files

I've taken a basic webmap 'ESRI HomeButton' and I'm trying to create a modularized webmap setup from it. I want to break down this simple webmap to have it utilizing a module system with config files ...
2
votes
1answer
2k views

Adding layers using ArcGISDynamicMapServiceLayer

I am right now adding individual layers using FeatureLayer but it takes quite some time to load as the map is for US Counties (3076 count). I tried to load it using ArcGISDynamicMapServiceLayer but I ...
2
votes
1answer
549 views

Arcgis API for Javascript: how to change color of simple point marker using colorpicker

as title states im having a hard time changing the color of my simplemarkersymbol using javascript. I have read that the format of color needs to be [r, g, b, a] which I have a color picker giving me ...
0
votes
2answers
59 views

Defining custom basemap toggle in ArcGIS API for JavaScript?

I'm using arcgis js spi for 3.13 edition, when I using basemaptoggle widget from https://developers.arcgis.com/javascript/jssamples/widget_basemap.html is ok, but when defining my own basemap is ...
0
votes
1answer
18 views

Trying to update field in a feature Without “attInspector” …Using ArcGis JavScript api

I cannot find any changes in the field. Please help me out. I am attaching my code: for (var i = 0; i < features.length; i++) { feature = features[i]; feature.attributes["X"] = Value; ...
1
vote
1answer
29 views

Zooming to ArcGIS JavaScript API graphic feature, but not to full extent?

I feel there must be an easy solution for this because I can't be the only one who's had this need before. I have a Python based geoprocessing service that gets called in my web app. The web app ...
0
votes
1answer
36 views

Add REST map service to basemap

I have created a JSON file which includes 30 map service layers and their attributes. This includes the map service url. My function creates a table of contents from the JSON object so that when I ...
1
vote
1answer
33 views

How to add a polygon in Google Earth on a Website

As it is said in the title i have to add a polygon in Google Earth which is integrated in a website. I managed to integrate Google Earth in the Website, so i can view the world but i can not use any ...
0
votes
0answers
62 views

Popup content with deferred object in ArcGIS Javascript

I am trying to display attribute infos and attachment in popup window. It can be quite good handled by code selected as correct answer here (https://geonet.esri.com/thread/159806). Basically you ...
1
vote
2answers
528 views

Enabling Find in ArcGIS for Server?

I'm using ArcGIS 10.1 for Server and trying to get a FindTask working via this sample and the only difference between my code and the samples that I can see is that the sample data has a find ...
1
vote
3answers
857 views

Remove Geometry from map using ArcGIS API for JavaScript?

I need to remove a geometry from the map. It may be a marker, circle, polyline etc. I don't see any method like remove, clear or destroy. I already know how to clear everything on the map but this is ...
0
votes
0answers
13 views

Map click working on Apple Ipad, Iphone but not working on Android Chrome

I had a web application using ArcGIS javascript API 3.3 Few months before the zoom buttons +/- stopped working I am trying to update it to 3.14 API However now the buttons are working great but the ...
3
votes
1answer
74 views

ArcGIS JavaScript API won't recognize ArcGIS online material that isn't shared publicly

I am trying to add KML Layers to the ArcGIS JS API. I have the KML layers hosted on the ArcGIS Online server. This data that I am working with contains some sensitive information and I am trying to ...
1
vote
1answer
20 views

g.renderer is null. And sometimes is not

I have an TypeError: g.renderer is null while I'm loading my map application. The worst is that problem sometimes happens, sometimes not. require([ 'dojo/parser', 'dijit/layout/ContentPane', ...
2
votes
1answer
2k views

Regarding property setMinScale(scale) and setMaxScale(scale) in ArcGIS API for JavaScript?

I am new to programming in JSAPI. I have two dynamic layers and I want to set the property setMinScale(scale) and setMaxScale(scale) to layers so how do I Set ? ex. I tried using ...
1
vote
2answers
134 views

Parsing Geoprocessing Service messages using ArcGIS API for JavaScript?

I am working on a JavaScript (JS) app where the user draws a polygon and then a python-based Geoprocessing (GP) Service task queries the parcels and generates mailing labels. The GP task works great, ...
3
votes
3answers
202 views

Is there a way to set a geometry filter on a esri.layers.FeatureLayer?

Suppose I want to limit the extent of a feature layer to a geometry (say a circle). Is that possible? I am aware of setDefinitionExpression but that is limited to a attribute filter. There seems to ...
1
vote
3answers
979 views

How to Change the Default Displaying Order of Esri Basemaps in basemapGallery?

I just started using ArcGIS JS APIs. In my app, I want to combine a few ESRI basemaps with my own basemap service. I am using basemapGallery dijit to change basemaps. By default, basemapGallery shows ...
0
votes
0answers
23 views

WMTS layer at every scale using ArcGIS API for JavaScript?

I want to display wmts layer (in KVP mode) in every scales using arcgis_js_api 3.4. When I create wmts layer and set MapWidget.scale to one that isn't in the wmts capabilities level description, ...
1
vote
1answer
306 views

Using Geodata Service in ArcGIS API for JavaScript?

Can I use Geodata service in ArcGIS JavaScript API 3.1 ? Background : I have simple map service and the all attribute data is stored in Sql Server database. I want to perform query operation on map ...
2
votes
1answer
447 views

How to write addressToLocations onError?

How can I write a code for checking the error condition in Javascript (ArcGIS) for addressToLocations(params, callback?, errback?). if somebody entered an invalid address- how can I call error ...
5
votes
2answers
422 views

How to reference the ArcGIS Server JS API using RequireJS

When using RequireJS to load a JavaScript library from a CDN, an example syntax is shown at https://github.com/requirejs/example-jquery-cdn: requirejs.config({ "paths": { "jquery": ...
0
votes
0answers
33 views

SVG image color to be changed by CSS when using ArcGIS API for JavaScript?

I have a image "a.svg" (let's say). I want to change the fill attribute of this svg symbol using CSS. I use this image in a picturemarkersymbol to display a graphic on the map. Is it possible to ...
2
votes
1answer
62 views

Esri Javascript API Graphics Removal

Hey Guys new to ESRI and the javascript api. I have the following function that when you click on the map adds a circle graphic to the map at that locations geographic lat and Long. But what im tyring ...
0
votes
0answers
59 views

browser crashes when loading legends at startup

After much perusing for solutions, I've decided to post my problem as a question. I'm trying to load the legends that are built into the ArcGIS Service Layers I'm using. I'm loading about 7 Dynamic ...
0
votes
0answers
17 views

How to get a map service with multiple legends loaded? [duplicate]

This is based on browser crashes when loading legends at startup which is currently unanswered. I'm trying to get legends loaded from a feature service that contains multiple legends within the same ...
0
votes
0answers
20 views

How to create an if else condition with ArcGIS Javascript API for slider and imageLayers from switch statement

The code below is the switch statement that I am currently using. I can't seem to get the values (case) to match up with the horizontal slider I am using (4 unique values-each layer). I was thinking ...
1
vote
0answers
53 views

Change HTML markup used it PopupTemplate in ArcGIS (javascript api)

everyone. I'm sorry if it is common question but I'd googled it for a couple days and still haven't find the answer. Everything I see in documentation is style an exist HTML layout, which looks like: ...
0
votes
1answer
523 views

Integrating ArcGIS Online Web map to my Java script file (test.html)?

Is it possible to integrate ArcGIS Online web map to my java script API? I check the samples but in which only web map is added.. I have few layers in .html file (Like feature,dynamic etc. and I ...
1
vote
1answer
41 views

ArcGIS API for Javascript nd BING tiles

I'm using the "esri.virtualearth.VETiledLayer" in my map application as a basemap successfull,y but am restricted to 18 levels of detail. BING's resultion is higher than this, but the ESRI widget ...
0
votes
0answers
26 views

Esri Map ArcGISDynamicMapServiceLayer click infobox

I am developing on esri map. I need to add ArcGISDynamicMapServiceLayer layer on the map. How can I get feature from ArcGISDynamicMapServiceLayer layer, and apply click for each layers. Currently I ...
0
votes
0answers
18 views

Can I create charts that are NOT in an InfoWindow or Popup?

I want to create a bar chart of some query results that I'm using in my ArcGIS Webpage. However, all of the examples that I can find only put the charts in an InfoWindow or Popup. I need the chart to ...
0
votes
1answer
26 views

Arcgis featureset to kml client side

I want to convert a js feature set retrieved from a geoprocessing service to a kml client side, and perhaps also to a csv (i have the object from the JS API). Is there any way do this? To clarify: ...
1
vote
1answer
47 views

Once route is solved, also return encountered barriers from ArcGIS Server Network Analysis?

I have came across an unexpected "issue" while working with the Esri JS API and ArcGIS Server Network Analysis service. Once user submits the route solving task to the server, I'm appending the ...
0
votes
1answer
43 views

ArcGIS Javascript Api centerAt

Trying to center the map at a certain coordinates but map only centers at 0,0 instead. Coordinates are in decimal degrees. Code below. function foo(data) { var lon = data.address.longitude; ...
0
votes
1answer
34 views

(How) can I render the features of a DynamicMapServiceLayer?

I have a webmap that displays the contents of a dynamic map service. For performance reasons I'm currently using FeatureLayers for the individual sublayers (they are all point layers with relatively ...
1
vote
1answer
84 views

How to change cursor of navigation tools in ArcGIS javascript api?

I want to change the cursor symbol for navigation toolbar(zoom in- zoom out- pan ...). i search and found the question about change cursor symbol but i could not use the code. I dopn't know why its ...
0
votes
0answers
17 views

How to enable navigation tools when the dialog is appeared on map?

I created a simple webgis with Navigation tools.The navigation tools is located in a dialog. the problem is when the dialog appeared on map, i couldn't interact with map and the background of dialog ...
2
votes
1answer
773 views

Clicking on feature to create particular new map using ArcGIS API for JavaScript?

I have a polygon layer visible from scales 0 to 8 (bigger to smaller). The thing is that I would like to click on a SINGLE feature of this polygon layer and then going to a different map (but in same ...
0
votes
3answers
46 views

ArcGIS Javascript API - carrying out multiple query tasks

I have carried out a QueryTask on a map service that returns a polygon when I input a postcode. Within the same service there is an additional layer that allows the user to query a local authority ...
2
votes
1answer
441 views

Creating dynamically multiple layers in ArcGIS for Server?

I am using ArcGIS Server 10.1 and Desktop 10.1 software. I am publishing table from sqlserver to the ArcGIS server, that table (from sqlserver) is updating hourly, and the types are increasing. I ...
0
votes
1answer
28 views

PrintTask with proxy does not add the correct contet-type header: application/x-www-form-urlencoded

I am using a proxy which I have made on my own so as to perform the map export tasks. I have noticed that GET/POST requests use the content-type header: application/x-www-form-urlencoded. However ...
0
votes
0answers
42 views

Having a basemap, tiled map and a dynamic map together

I have a basemap and a dynamic map which works perfectly together. But i have to add a tiled map too. But if i add the basemap first tiled map wont show up. I want to remove and add the Tiled layer ...
1
vote
1answer
543 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 ...
4
votes
1answer
724 views

Selecting several disseminate features with ArcGIS API for JavaScript?

I have a cadastral map similar to this one from an ArcGIS Javascript API example: Cadastral map What I would like to do is selecting several parcels clicking on them and show the information related ...
0
votes
1answer
57 views

Arcgis javascript - Set different symbol for each graphic in feature layer

I have a feature layer that contains 12 items with the same defined style. But I want to change each item to have a unique symbol when rendered. var Layer = new FeatureLayer("http://...my map ...
3
votes
3answers
368 views

Error with ArcGIS js API Create web map by ID sample

I have been trying to use the updated ArcGIS API for Javascript, with ArcGIS Online. I have been testing with the sample code found on the "Create web map by ID" page: ...
0
votes
0answers
59 views

ArcGIS Web AppBuilder View Query Results in AttributeTable

I'm building a couple of custom widgets for use on a Web AppBuilder app that do some queries against feature layers. I get back a feature set, which I can convert to a local feature layer. What I'd ...
0
votes
0answers
38 views

Publishing an interactive map made with ArcMap when I don't have access to ArcGIS Online

I apologize if this question is a silly or vague -- I am fairly new to ArcGIS and still grappling with how to articulate what exactly I don't understand. I have created an interactive map in ArcMap ...
1
vote
1answer
200 views

How to shade or add grey overlay to non-selected features in ArcGIS API for JavaScript?

I have an application showing cadastral parcels. When a parcel is clicked, the applications makes zoom to the extent of this feature and prepares a floating pane where it is possible to load some ...