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

learn more… | top users | synonyms

2
votes
1answer
564 views

Loading group layer in ArcGIS Map Service?

My ArcGIS JavaScript application is using an ArcGIS Server Map Service that has a bunch of layers. It also has a group layer. The structure is: Service group_layer_0 layer_1 ...
1
vote
0answers
89 views

ArcGIS JavaScript API Help

Kind of learning on the go here. My initial goal here is to allow a person to put a point on a map fill in the form, then close the form. I do not want them to be able to click other points to see the ...
4
votes
2answers
2k views

Auto resize map to 100% after content pane is removed in ArcGIS JSAPI

Been at this for hours and I can't seem to figure it out. I'm using AG-JSAPI 3.6 I have a map layout with a bordercontainer and two contentpanes, One is the map div and the other is the left div ...
1
vote
0answers
77 views

Map Service Works in Flex, Won't Display using JavaScript

As the title states, a map service published on my server displays and can be identified just fine when added to a web map in Viewer for Flex. I am slowly learning to use the API for JavaScript. My ...
2
votes
1answer
109 views

Changing the cursor on an ESRI map

We are building an app starting from the ArcGIS Tax Parcel Viewer. I have added buttons to allow users to switch to Street View or Pictometry when they click on the map. All that is working fine, ...
6
votes
2answers
281 views

Web_Map_as_JSON from latest esri jsapi?

I'm trying to do a print export using arcgis 10.1 and latest esri jsapi. Is there any out of the box way that I can extract out Web_Map_as_JSON from a given webmap? esri.tasks.PrintTask generates a ...
0
votes
0answers
23 views

Return coded value descriptions in an InfoTemplate

Using the ArcGIS JavaScript API, I've assigned an InfoTemplate to a feature layer. For fields with a coded value domain, the popup is displaying the coded value rather than the description. I have ...
2
votes
1answer
69 views

Make InfoTemplate moveable but still highlight attributes

I’m using the esri/InfoTemplate in the Javascript API to identify features. However, it gets anchored to the mouse click and cannot be moved around. Based on this answer I used dojo/dnd/Moveable to ...
0
votes
0answers
27 views

PictureMarkerSymbol disappears when map is dragged

I am creating a Picture Marker Symbol object and adding it into graphic layer. It shows up when loads and 80% of the time when map is dragged it shows up as well. But sometimes Picture Marker Symbol ...
2
votes
1answer
61 views

Setting Rotation of ExportWebMap

I see from the ExportWebMap specification that rotation can be set in the JSON object sent to the sever. Does anyone know if this can be accessed via the ESRI JavaScript API (v3.9)? I do not need to ...
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 ...
0
votes
1answer
105 views

Mouse click event used gis application with much data

I will create an application that using my water pipes, electric cables, gas pipes service in a city. All of streets and roads including water pipes. My service is publishing pipes. My service like ...
1
vote
0answers
31 views

Retrieve the attributes from a feature with IdentifyTask/IdentifyRequest (Javascript API)

So I'm building a GIS web application. I am able to get the result from IdentifyTask with the "oncomplete" function, the problem I am running into is how I can get the information back out of the ...
0
votes
0answers
31 views

How to set CSS for iPhone 3 and 4 Esri applications?

I have an application developed with a Local Government template. It renders fine on a Samsung Note, meaning that my title bar appears. On an iPhone the title does not appear. Below is my CSS which ...
0
votes
0answers
99 views

Layer Definition Query - Subqueries

Background: I want to track the movement of icebergs in ArcGIS. In my FileGeodatabase I have a single Iceberg layer. What I have thought of is to create an ID field for each object; each ArcGIS ...
1
vote
0answers
44 views

How to Retrieve field name from Uploaded Excel file using ArcGIS Javascript?

I published GP Service which involves uploading data to the server using Upload feature of 10.1. I wrote the code for getting the itemID of the uploaded file. I wanted to have user select the X and Y ...
1
vote
0answers
47 views

Increase maximum zoom level for a WebTiledLayer in ArcGIS

I am using the WebTiledLayer from the Javascript ArcGIS API to render a custom WMTS source. The WMTS I am using has zoom levels going from 18 to 21, however I cannot zoom in further than what appears ...
-2
votes
1answer
40 views

Using JS SDK API Locally

I saw the documentation and notice that the SDK download link is live to esri server, can we download the SDK and setup in local environment? Please suggest? If YES, how to change the config so that ...
0
votes
0answers
66 views

Drop down menu not populating for ArcGIS JavaScript API Application

I am using this template http://localgovtemplates2.esri.com/publicinfocenter/default.htm When editing the config.js which is in JSON format, the parameters are { Key: "Key", ...
1
vote
0answers
18 views

Hide labels for features without data

I have a FeatureLayer that uses a ClassBreaksRenderer. The renderer loads data from a collection like so: var renderer = new esri.ClassBreaksRenderer( null, function (graphic) ...
1
vote
0answers
46 views

export map state as JSON: Web_Map_as_JSON

Is there a way to export the current map state as a JSON object, mostly named Web_Map_as_JSON. The JSON specification should be like this. In other words, it would be convenient to have a function ...
0
votes
0answers
179 views

Can't zoom to feature from Datagrid with ArcGIS API for JavaScript

I have a find task in my application that returns features that are points, lines and polygons. I can get the search to populate the datagrid but I am having problems with my onRowClickHandler ...
4
votes
1answer
132 views

How to disable double-click zoom in Arcgis Javascript API

I am using ArcGIS java script API for creating map. I am trying to disable the double-click zoom in the map. Here is link of my map: http://urbanaccessregulations.eu/mindcrew/mobile-popup.html I used ...
0
votes
1answer
80 views

Export my map in various formats

I want to implement a sort of content negotiation so as to export my map in formats like pdf jpg etc. Is there any way to export my current map view (with all the enabled options so far) in various ...
3
votes
2answers
1k views

Export map to PDF using Esri JavaScript API

I've searched a lot and tried many ways to export a web map to PDF. I need to export a web map and all active layers. Can anyone help me?
1
vote
1answer
109 views

Using feature service with JavaScript API and ArcGIS for Server on localhost?

I installed ArcGIS 10.2 for Server on my localhost and created and published a feature service on it. Now I want to use the feature service I created on a simple html page using Javascript. How can I ...
1
vote
0answers
27 views

How to pre-populate JavaScript forms in ArcGIS Web Application?

I have an ArcGIS web application and would like to pre-populate order numbers. Say if order 1 has been entered for a point on a map, when the next point is added, order 2 would populate ...
2
votes
2answers
64 views

Layer vs. Color Transparency with ArcGIS Javascript API

When creating services with ArcGIS Server, I have paid attention to the warning that Layer Transparency will make response time slower and that I should change to color transparency instead so I have ...
1
vote
1answer
63 views

Compare two feature layers

I have a base layer on top of which I will plot two separate feature layers, one containing polygons and the other containing points. Now I have to find the points which plot into the polygon. I tried ...
4
votes
2answers
65 views

tabbed popup window for Arcgis Javascript

Anyone know examples of a tabbed popup window for Arcgis for javascript, NOT an infowindow? If you could point me in the the right direction it would help.
2
votes
2answers
122 views

Create a web application with ArcGIS Server

I have a question about ArcGIS server: I want to make an application for users who can search for proper houses, like a house-finding engine, and I published my map to ArcGIS Server but how can I ...
2
votes
2answers
438 views

Intersect features / point in polygon

I have a base map on top of which I have added a feature layer . I pull thousands of json data from my db which has lat/long information , then I create points using lat/long and I plot those points ...
0
votes
0answers
49 views

ArcGIS API for Javascript: Time Aware KML Animation

I am using ArcGIS API for Javascript. I would like to know how to animate a KML file with time-aware ground overlays using the built-in time slider?
6
votes
1answer
763 views

ArcGIS JS API Relationship Queries

Has anyone ever put the results of a RelationshipQuery() into a map.infoWindow that's been replaced with a dijit.popup? Here's the workflow: User clicks a point, and all identify results are put ...
1
vote
3answers
225 views

Is it possible to create a tooltip with a map service?

I am trying to modify the ESRI Parks Finder application to include a tooltip that shows the name of a park when you mouse hover over the icon. It is a map service. Most of the documentation I have ...
0
votes
1answer
71 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 ...
1
vote
1answer
54 views

How to remove ArcGISTiledMapServiceLayer completely

I have a problem related to "ArcGISTiledMapServiceLayer". I have an ArcGISTiledMapServiceLayer map service, which I have added to Map object. This service work as BaseMap. Now I want to add another ...
3
votes
1answer
69 views

Change projections depending on the zoom level

Is it possible in ArcGis (from a technology/performance/… point of view) to switch projections depending on the zoom level? For example, Is it possible when zooming at some extent to the poles, my ...
2
votes
1answer
83 views

Toggle PopUp Functionality

Firstly: I've look through every example on Stack GIS.Stackexchange which might deal with my problem. Of course there was good input, but unfortunately I'm not able to fix it. Admittedly my Java ...
3
votes
1answer
282 views

Query task issue with Arabic input

I am using ArcGIS Java Script API version 2.8 & using query layer in ArcGIS server. The data is coming from sql server and most of the data is in Arabic. I am sorting the data according to the ...
3
votes
2answers
813 views

How to draw circle of 3 km radius in ArcGIS for ESRI?

I am able to draw the circle but I want a circle of radius 3 kms I have checked all the previous posts. I want to know what is the units of radius in the below code. var radius, circle, ring, pts, ...
1
vote
2answers
109 views

ArcGIS JavaScript API - WFS workaround?

Does anybody know of an existing script or a workaround that will convert WFS returned data into something that the ArcGIS JS API can digest and display? Essentially, it would be some sort of script ...
0
votes
1answer
37 views

How to add an attribute value to info window as a link? (ArcGIS JavaScript API)

I am using ArcGIS API for JavaScript and I want to use a value from a feature class attribute as a hyperlink. For example, "template.setContent("Web Address: http://www.esri.com>${Web_Address}"); This ...
4
votes
1answer
1k views

How to resize an infoWindow dynamically, based on the contents

How can I set the size of an infoWindow dynamically, based on the length of its Title, when the Title isn't known until the user clicks on a map feature? Take the map here as an example - how could ...
1
vote
1answer
90 views

How to remove popup window from KML layer in ArcGIS API for JavaScript?

I am using the ArcGIS API for JavaScript for creating a map. I have added some CSV and KML layers to the map. Now the KML is colored base layer(different colored for country) on the map and CSV is ...
2
votes
1answer
64 views

Open source geometry service like ArcGIS?

Does anyone know of an open source GIS server that provide similar functionality to ArcGIS' web services server? For example, the service would provide a similar geometry service that buffers feature ...
1
vote
1answer
81 views

How can I add a popup on hover for a graphic using the ArcGIS JavaScript API?

I created this JSFiddle for an example. Currently, a user needs to click on the graphic point to see the attribute. How can I make it so the user only needs to hover over the graphic for the popup to ...
0
votes
2answers
46 views

How to get features from a Service Layer?

I am using a Map Service from http://watersgeo.epa.gov/arcgis/rest/services/NHDPlus_NP21/WBD_NP21_Simplified/MapServer/. It offers multiple layers and its a great resource. I'm wondering if its ...
0
votes
1answer
65 views

Using Arcgis and OSM tiles in Openlayers application

I created a map object and specified options according to Arcgis tiled map tiles. var options = { scales: [120000, 60000, 30000, 15000, 5000, 2500, 500], resolutions: ...
1
vote
1answer
88 views

ArcGIS for Javascript Template available?

ESRI has a stack of templates in the ArcGIS Online section. But when you download them it turns out that in order to make them run, you have to first create a webmap via their WebMap Viewer ...