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

learn more… | top users | synonyms

0
votes
0answers
28 views

When will visibleAtMapScale property be populated for a map/image service?

To my knowledge, the service layer property, visibleAtMapScale, represents the service scale dependency. I like to know when visibleAtMapScale value is populated. I tried to get it when the layer is ...
0
votes
0answers
55 views

map stops at map.graphics.add(graphic);

function getLocRes(results) { //map.graphics.clear(); var symbol = new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID, new ...
1
vote
0answers
102 views

Customizing map.on(“click”) while using default editor widget

My question is whether or not it is possible to use the default editor widget in my case given the needs of my application. My map consists of points displayed from four different FeatureLayers. They ...
1
vote
1answer
39 views

Javascript Map (ArcGIS API for JS v 2.9) Not Releasing Listeners

Our company uses a 'ArcGIS for Javascript' custom-developed map that was built on Dojo a few years ago. It has the 'usual' tools (Identify, Measure, etc) but the listeners won't release the tools. I ...
0
votes
2answers
109 views

ArcGIS Javascript API - switch case to display attributes in a popup

var vliTemplate = new InfoTemplate("Visual", "<tr><b>VLI Number:</b> <td>${VLI_VLI_NO} </tr></td>"+ "<br><tr><b>Not Greened Up ...
0
votes
1answer
302 views

Simulate a click event on FeatureLayer in ESRI JavaScript API

When my app changes context (user clicks on a tab) I want to programmatically "Select" the first of 6 points in my Feature Layer so I get the blue box around the point and activate the info window. I ...
0
votes
1answer
235 views

Setting a renderer that uses a function for a dynamic layer in ArcGIS JavaScript API

How can I, if possible, set a renderer for an ArcGISDynamicMapServiceLayer which uses a function to determine feature values instead of just attribute values? When using the following code, the ...
0
votes
0answers
47 views

Add Print Dijit to the map context menu

I'd need to implement print map functionality from the map context menu (right click on the map). Here, I create a printer: // ------------------------------------------ //add printer // ...
0
votes
0answers
155 views

Attribute Inspector for points - JavaScript API

I am attempting to get an application working where editors can click on a point feature and edit a form. I need the form to have a save button that when clicked will apply the edits to the feature. ...
0
votes
2answers
66 views

Need help with ArcMAP API to find coordinates of points in point shape file

I need to find some reference or even C#.Net example code of how to use the ArcMAP 10.2 programmers API. I have got a CSV file with X, Y and Elevation coordinates of soil samples and I want to write ...
0
votes
0answers
38 views

Read renderer from an ArcGISDynamicMapServiceLayer

Is it possible to read renderer from an ArcGISDynamicMapServiceLayer? I'd need then to change the color in order to create graphics with the same symbol but different color. Something like: var ...
0
votes
1answer
92 views

Getting a reference to the current basemap

In my application I'm using basemap gallery widget for the user to switch between basemaps. However, when the basemap has been switched the map.getBasemap() keeps returning the original basemap ...
0
votes
0answers
67 views

Arcgis javascript - pan and zoom simultaneously

I'm using my android device to test the arcgis javascript API 's touch support. I noticed that by default, I cannot pan and zoom the map at the same time, like google maps. Am I missing something? A ...
2
votes
1answer
128 views

Editing many-to-many relationship classes with ArcGIS API for JavaScript?

I am seeking some guidance on working with many-to-many relationship classes thru the ArcGIS Server Javascript API. I am designing a traffic count data management application. Count data locations are ...
1
vote
1answer
97 views

How to Migrate web maps from ArcGIS Flex to JavaScript API?

A client has several web maps that were made using ArcGIS Flex. But the client needs all the current web maps to be changed to ArcGIS JavaScript API. What steps need to be taken to make this happen ...
0
votes
0answers
197 views

Refresh Legend when a layer in TOC is checked/unchecked

I am using V3.5 of ArcGIS Javascript API. My web application has a legend dijit and nliu's TOC widget. The legend updates whenever the map extent changes. However in the TOC, when a layer is ...
0
votes
2answers
200 views

How to display a raster using Javascript API

It's all a proof of concept for myself and my learning but I have definitely hit a brick wall here! Here's what I've done and can get to work. I have written a Python script that: Sets its ...
0
votes
1answer
73 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); ...
1
vote
1answer
59 views

What is difference between Map event onExtentChange and Map.extent property?

I am a newbie and I am looking to persist the map extent across sessions so that it can be loaded instead of the default extent. I believe what I need to do is to store the extent in a cookie after ...
0
votes
1answer
596 views

Uncaught ReferenceError: GEvent is not defined after migrating to google map api v3

I have managed to change the needed things, but I get the error from the title in the console, and I cannot figure it out what else needs to be done. any ideas? This is my code(if you paste it and run ...
2
votes
1answer
53 views

Restrict WMSLayer (not map) extent with ArcGIS JavaScript API

Is there a way to restrict the rendering of a WMSLayer to a specified extent without restricting map panning and zooming? That is, I need the client to be able to pan outside the limits of the ...
0
votes
0answers
43 views

ArcGIS JavaScript problem with legend to show attributes

I'm running a geoprocessing task in my webapplication. When the task generated some results i destroy an existing legend and build up a new one that shows the legend for the resulting layers. That is ...
2
votes
1answer
88 views

Getting geometry of drawing in ArcGIS Server JavaScript API

To me, ArcGIS Help and Online Resources is always full of unneccessay information and missing some important points. For example there are lots of samples for drawing but I couldn't find any thing for ...
0
votes
1answer
44 views

filtering GeoRSSLayer contents in arcgis javascript API?

I would like to make use of a public geoRSS feed with content from 10years (200+ items), however since it is too much information, i would like to show only a subset of this content in my map... I ...
1
vote
1answer
176 views

mapbox layer in ESRI API

I am building an application primarily with the ESRI API, but would like to load a mapbox tilelayer to use as the basemap as they are just so much more pleasing cartographically. I dont want to change ...
1
vote
0answers
107 views

ArcGIS for Javascript : Locate Widget Activate Popup for Layers X > Z?

Using ArcGIS for Javascript I have a map with a City Council District feature layer. I would like for the user to enter their address in the 'Address Finder' / Locate Widget (that's what it's called ...
0
votes
1answer
48 views

can we add the feature layer from code

I need to add a feature layer to arcgisonline account from the code. i have created a developer account where if i want to create a feature layer i have to upload a CSV file and it makes the feature ...
1
vote
1answer
104 views

ESRI Geocoder placeholder text not displaying

Following the ESRI API, I added the placeholder parameter to the geocoder widget to add some informative text would instruct the user what the search box was for. For some reason it is not displaying ...
0
votes
1answer
77 views

ArcGIS API V 3.5 Navigation toolbar (zoomToPrevExtent) not working

I am just getting started with learning Dojo and ArcGIS API so please bear with me. I have an existing prototype of an application that use ArcGIS version 3.5. I am looking at the navigation toolbar ...
0
votes
1answer
239 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
2answers
126 views

2 legend objects with arcgis javascript api

Can i create 2 legend objects in one script? I'm currently working on a web-application in which i already do have a legend/TOC running and it looks like this: var legendLayers=[]; ...
1
vote
1answer
288 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
1
vote
0answers
447 views

esri ArcGIS javascript api compatibility with Internet Explorer 7 and 8

I've developed a web map using esri arcgis javascript api version 3.8 and its not compatible with IE 7 or 8. I've advised the people who have reported this to update their version of IE but, if it ...
2
votes
2answers
97 views

Issue On Having HomeButton and Overview Together on ArcGIS Sever JavaScript API

Using ArcGIS 10.1 and ArcGIS Server Javascript Api I am having issue on having Home Button and Map Overview on the map. for what ever reason the home button is not showing up the map Here is the ...
0
votes
1answer
86 views

Clip and ship by a queried layer extent and by user defined extent

I am trying add a functionality to the clip and ship script. I would also like the users to extract data by the extent of a queried feature layer. For instance, if County = "Alameda" then extract data ...
0
votes
1answer
78 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: ...
0
votes
0answers
61 views

Combo Box selection to definition expression

Using ESRI JavaScript API I would like the pass the selection in a combo box to the setDefinitionExpression. I think this should be possible, but I am not sure of exactly what to do. The code that ...
0
votes
0answers
26 views

ArcGIS API using maps from ArcGIS Online

I am new to the ArcGIS API for JavaScript but I would like to create an application which uses an existing map of ArcGIS Online. Creating an application where just a map is shown works fine. But now ...
0
votes
1answer
611 views

JavaScript API - Query and Edit point from Feature Layer

I am attempting to recreate the ESRI example for attribute inspections (https://developers.arcgis.com/javascript/jssamples/ed_attribute_inspector.html). I am having an issue when I create my feature ...
1
vote
0answers
43 views

Automatically update the result of a QueryTask

I have developed a application using the ESRI JS API to allow users to create and edit features in a web map. I have used the QueryTask to create summary statistics to report back to the user on ...
4
votes
2answers
240 views

Best Practices : ArcGIS for Javascript

I have just started developing with ArcGIS for Javascript and as I'm learning Dojo I'm seeing a reason to modularize development for a more plug-n-play concept. I can't seem to find any good articles ...
0
votes
1answer
201 views

Picture Symbol Proportion in ESRI Javascript API

I am successfully using a picture marker symbol to represent tree's in a web-map built using the ESRI Javascript API. Is there a method to proportionally size the picture symbol for each scale of the ...
0
votes
0answers
184 views

How can I get a popup window into the ArcGIS online widget_Legend sample?

I am trying to use the sample code from ArcGIS javascript API called widget-Legend. I want to add the popup widget to this sample so it will include both a legend and a popup. The legend works fine ...
0
votes
1answer
52 views

Is it possible to copy and paste features in an online Edit function?

Using the ESRI JS API, is it possible to select a feature and then create buttons to copy and paste that feature? This would be done using the Editor Widget. If its possible to do this, but only ...
1
vote
1answer
48 views

Calculations from Feature Server and display values

Using the ESRI JS API I would like to apply some basic math based on the Shape.area of a feature and then return that calculation to the web-page. I can't see any reference to something even remotely ...
0
votes
0answers
102 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 ...
0
votes
2answers
241 views

arcgis javascript api legend and basemaptoggle error

I'm having a problem with my Web Application. I try to fit in a legend and a BasemapToggle but it doesn't seem to work. My Code looks like this: <!DOCTYPE html> <html> <head> ...
0
votes
2answers
59 views

How can i keep browser from caching map services?

I am using esri's js api with arcserver 10.1 map services. My issue is that sometimes another application deletes a feature from the geodatabase that is the basis for my map service. But my browser ...
0
votes
0answers
176 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 ...
0
votes
1answer
77 views

Panning the map to certain extent javascript API

I want to limit map extent to the initial extent of the map and limit user from panning more than certain extent. I tried following but nothing has changed: map = new Map( "map" , { basemap: ...