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

learn more… | top users | synonyms

1
vote
1answer
90 views

Polygon using ARCGIS API for javascript

I've polygon data as POLYGON ((1645481.0939999996 6124506.9885, 1645470.0473999996 6124473.5406, 1645475.7094 6124440.1391,1645481.0939999996 6124506.9885)) in wkid=2193 I want to project ...
0
votes
0answers
7 views

Can't Get my legend on a swipe layer map

I'm having trouble getting a legend on my swipe layer map. I'm new to Javascript and took most of the code from the API reference but can't get the legend to show up for either layers. I'm Hoping ...
0
votes
1answer
13 views

Can I plot points on a map using JSON data from a Node.js API?

I am new to the arcGIS JavaScript API. I have a Node API that is providing geographical information in JSON. I have google'd for examples and searched for solutions on this web site. Can anyone ...
1
vote
0answers
5 views

How to create a infotemplate that displays automatically

I have created a postcode search that that highlights a polygon and zooms in. but I would like it to display a infoTemplate box with having to click in it. I want it to show when the function runs. ...
2
votes
2answers
723 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
12 views

This._geometryService is null in mesurement wedjit arcgis javascript api

I'm working on arcgis javascript api, and I'm usint the measurement wedjit, it was working correctly, suddenly, after adding another features to the map, I discovered that the measurement tool is not ...
0
votes
0answers
613 views

Unable to resolve constructor for: 'dijit.layout.TabContainer'

I have started using ArcGIS for the first time, actually my first time using GIS. So I have taken the demo codes and changed them to what I needed. So first I took some code for a tab control on the ...
1
vote
1answer
93 views

Popup design change

I am trying to put another link (Notes Methodologiques) next to "Zoom to" in InfoWindowLite popup window but I don't know how I can have them in the same area. What I have right now looks like this: ...
2
votes
1answer
60 views

Unable to print feature layer from my ArcGIS Server

EDIT : I replaced the url to my arcgis server by the IP address and everything worked. It was probably a problem with the web adaptor. I am trying to print a map that I made with ArcGIS Server 10.2 ...
2
votes
2answers
155 views

Popup is cropped out of window

Sometimes clicking on different features close to window boundary makes part of popup out of window's boundary. layerInfoWindow = new InfoWindowLite(null, domConstruct.create("div", null, null, ...
0
votes
0answers
11 views

Esri JS Bookmark in separate Div

Using the Esri JavaScript API I need to create a number of different bookmarks and access them through the HTML in separate div tags. I created this JS Fiddle in attempt. I thought that if I ...
0
votes
1answer
126 views

How to zoom to layer using ArcGIS Javascript API

I tried to get the function "Zoom to Layer" done using the following code snippet. But it does not change anything. The layer is a feature service layer, and I can see the full extent object of the ...
3
votes
2answers
1k views

How to trigger a hover event for map graphics in ArcGIS Javascript API?

I want to trigger an event when the user hovers over a geometry that they drew. I know how to set up hover events for DOM objects, but not for graphic elements within the map window.
2
votes
2answers
107 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 ...
0
votes
2answers
216 views

Identify task: Input polygon into IdentifyParameters

I wish to find all the features within a polygon/circle drawn by my user. May I know if I should use IdentifyTask https://developers.arcgis.com/en/javascript/jsapi/identifytask.html Or is there a ...
0
votes
1answer
15 views

limiting circles to a specific radius

I am new to ArcGIS javascript api and I have created a map which allows users to draw circle geometries. I just want to limit the functionality so that the radius is specified at 10000km. This is ...
6
votes
1answer
184 views

Duplicate items in the legend

I have recently created a web map that uses the legend snippet from the ESRI JavaScript API website. https://developers.arcgis.com/en/jav...et_legend.html It works great for the most part, but has ...
6
votes
2answers
3k views

How do I use my own basemap with Javascript API?

I'm trying to make a map using the Javascript API. I want to use my own basemap, but I can't find the most simple code to do this. I always see something like this: function init() { map = ...
0
votes
1answer
36 views

Configurable Map Viewer (CMV) - Configure dynamic layer to not display all sub-layers?

Using the example below, from the CMV, what would be the best way to not show the Fire Stations layer in the Louisville Public Safety map service assuming I wanted to see everything else and I wanted ...
0
votes
1answer
14 views

Table Of Content widjet in arcgis javascript api

I'm using TOC widjet in my application using arcgis javascript api, it is working, but the problem is that the plus and minus images which collapse or expand the tree is not appearing. I noticed ...
0
votes
0answers
4 views

Run TOC widjt in rtl language

I'm trying to make the TOC widjet to run from right to left, is it possible to achieve? and how?
0
votes
0answers
10 views

Esri API Web-Map and horizontal footer Scroller on Mousewheel

I am designing a webpage whereby the footer section of the page is to scroll horizontally, using the mouse wheel. There seems to be a conflict between the Esri library and the JQuery script I found ...
0
votes
2answers
32 views

Basemap tiles are disjointed - bad projection?

Hi all, I'm working within a corporate environment that is using ArcGIS Server (v10.2.2). I am a newbie trying to work with ArcGIS API for Javascript (v3.9) to create custom map applications. I ...
0
votes
1answer
265 views

Update multiple features attributes in loop - JavaScript

I am trying to update multiple features in a feature layer through a loop. I have a feature layer that I would like to select and then assign someone to the features (through an attribute update. I ...
0
votes
1answer
22 views

How to get spatial reference in ArcGIS Server identify response

I'm using the ArcGIS API for JavaScript to query features in a web map. After sending an identify request to my ArcGIS Server 10.2.2 Map Service (added as ArcGISDynamicMapServiceLayer, the response is ...
3
votes
1answer
34 views

Can the Identify popup be made relocatable by the end-user?

I've noticed that the Identify widget's popup always tends to go right over the feature that is being identified and cannot be moved. Is there a way to enable functionality to move the Identify ...
0
votes
1answer
294 views

How to add Map Legend, Scale Bar and Select tool to an ArcGIS Server Service?

I have published a service from ArcMap to my Server Account but I can't figure out how to add the legend, scale bar and select tool to the service. According to the published service it was built ...
0
votes
1answer
38 views

Print Selected Area in Map in Arcgis javascript API

I'm working on arcgis javascript api, and I'm trying to implement a selection print tool, I'm new to this api, and don't know how to select area of the map, and after that, print the selected drawn ...
0
votes
1answer
98 views

Mapquest directions API in ArcGIS javascript webmap application

I'm trying to build a webmap application using the ArcGIS JavaScript API. A functionality I would like to include is driving directions from a current GPS location to a feature in my feature service. ...
3
votes
1answer
1k views

Arcgis Javascript latitude and longitude convert to WGS_1984_UTM_Zone_36N

I am using Arcgis Javascript api. I have two points comes from Google maps like this x:-111.67095840000002 y: 32.7558935 I wanna use this points on my Arcgis map. My map spatial reference is using ...
1
vote
1answer
48 views

Center And Zoom function arcgis javascript api

I'm trying to insert x, and y coordinates manually through input text, and center the map and zoom it to that point. I have this code: var x = $("#x").val(); var y = $("#y").val(); var point=new ...
0
votes
0answers
38 views

Print map in arcgis javascript api

I'm developing an application, and I'm using arcgis javascript api, I'm trying to print the map using Print() object, but when pressing on the print button, it syas printing, and after amount of time, ...
0
votes
1answer
31 views

Set custom spatial reference to base map in arcgis javascript api

How can I set my spatial reference to the base map in arcgis api. I want to change the default spatial reference.
0
votes
1answer
93 views

[ArcGIS toolbars.Draw.POLYGON ]Object #<BarProp> has no method 'activate'

I am facing this error while activating the toolbar. This is my body code <button dojoType="dijit.form.Button" onClick="toolbar.activate(esri.toolbars.Draw.POLYGON); ...
0
votes
1answer
200 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
3answers
220 views

How to toggle ArcGIS webmap layers using ArcGIS Javascript API

I've created a webmap using ArcGIS Online that I want to render in a web app using the ArcGIS for Javascript API. In ArcGIS Online, I've saved the webmap with all of the layers off (visibility: ...
0
votes
1answer
221 views

Javascript Table of Contents/Legend Widget

I was hoping someone might be able to take a look at my code and point out why this might not be working. I'm trying to use the Table of Contents/layer selector found here I thought at first that I ...
3
votes
1answer
128 views

ArcGIS JavaScript API: onAnimate Error

I am trying to zoom to a point in ArcGIS JavaScript API (3.9). I am doing this one of two ways, I am either grabbing a point feature from ArcGIS Server (10.1), or I am grabbing the center of a polygon ...
0
votes
1answer
50 views

Error code 500, error performing execute operation from Print task of ArcGIS API for JavaScript?

I'm trying to use print task to generate a PNG or PDF file of my web map but i always get an Error code 500, error performing execute operation. Any Ideas? I'm using ArcGIS API for JavaScript ...
0
votes
1answer
20 views

Adding geometry.type circle

I have to amend the following code so that on the map it's possible to draw a second circle graphic as well as a line, polygon and point. I've tried to add an else if statement much like the polygon ...
1
vote
0answers
33 views

Creating a buffer round a polyline

At the moment the code I use creates a buffer extending 1000km from each geometry creating square buffer zones over polygons, lines and points. How can I amend the code so that it creates a 'sausage' ...
0
votes
1answer
102 views

ArcGIS Javascript How to filter TOC

I am very new to ArcGIS Javascript and have been reading some samples from the API. So pardon my ignorance and I hope I am asking the right question. I am using ArcGIS JavaScript 3.5 API and ...
0
votes
1answer
251 views

Add Point Symbol and Zoom to Address using Geocoder Widget

I'm following the tutorial here and it's not working: https://developers.arcgis.com/javascript/jstutorials/tutorial_geocoder.html Issue: I just want to add a point symbol and zoom in for the address ...
3
votes
3answers
3k views

Printing with ArcGIS API for Javascript?

Any examples of how to print a map using the ArcGIS API for Javascript (JSAPI)? All from the client?
1
vote
1answer
28 views

Remove selected feature symbol

Background: I am dynamically populating a feature layer. On this feature layer I have set the symbol (as you can see) to a nice little .png image. Everything seems to work fine around the layer except ...
0
votes
1answer
106 views

ESRI JS API : FeatureLayer : pure client side query?

so I've created this wrapper around feature layer where I create the empty feature layer as is in the API help page : new FeatureLayer(featureCollectionObject, options?) providing the first ...
1
vote
1answer
18 views

Disabling a map in Javascript API

Here is my code for my map: omap = new Map("overviewMap", { extent: initExtent, logo: false, slider: false }); tmoverview = new ArcGISDynamicMapServiceLayer(mylayer, { "opacity": 1.0, "visible": ...
1
vote
1answer
311 views

Fixed Zoom Extend For Overview Map on ArcGIS Server JavaScript API 3.8

Can some one please let me know if it is possible to have the Map Overview with Fixed extend and none zoom in or out functions? I know this was not possible on v.3 but how about v3.8? Thanks
0
votes
1answer
37 views

How to set scale range for a Graphic Layer in ArcGIS API

I am trying to set a Scale Range for a graphic layer using ArcGIS API in HTML5, so that the graphic layer is not visible on zooming beyond that particular ScaleRange. For the same I have googled and ...
0
votes
1answer
129 views

Customize ESRI Template Picker Widget

I am using the template picker from the ESRI JS API. As far as I see it, the look and feel of the picker, cannot be customized very much at all. The rows and columns can be controlled, and in the ...