Use this tag when ArcGIS API for JavaScript is the web mapping API that you are using from the ArcGIS platform.

learn more… | top users | synonyms

3
votes
0answers
220 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 ...
-1
votes
1answer
61 views

how to highlight map area with extent geometry onmouse click

I got this example in arcgis api ssample code . But the problem is that , i want to create it for any area of map . like if one click on any city , it should be selected.And the code is for mouse-over ...
-1
votes
1answer
62 views

Uncaught TypeError: registry.forEach is not a function

I am trying to add two dojo buttons for polyline and rectangle on a map, and i have written loop for two buttons, but i am getting error :"Uncaught TypeError: registry.forEach is not a function" ...
0
votes
1answer
59 views

Geosearch Esri controls in leaflet

It is possible to disable the Geosearch Esri controls in leaflet after the first geocode search? When I run Chrome console and I select the search geocode icon this is the code: <input ...
1
vote
1answer
55 views

Configurable Map Viewer (CMV) Measurement Widget Error

I have several cmv widgets enabled, some I have built myself. All work great, but when I enable the Measurement widget I am getting this error upon loading the app: dojo/parser::parse() error ...
1
vote
1answer
47 views

Is there a way to get the vertices of segment of polyline?

I have a polyline with 3 co-ordinate, say (x1,y1), (x2,y2), (x3,y3). Can I get the vertices (x1,y1), (x2,y2) if clicked on line-segment drawn by (x1,y1), (x2,y2). I have a polyline on map that with ...
0
votes
1answer
55 views

Not able to remove layer from map

I am using arcgis javascript api . I want to remove a recently added layer , i wrote like this var a = map.layerIds; var b = map.getLayer(a[2]); map.removeLayer(b); But I am not able to remove any ...
1
vote
0answers
30 views

Highlighted graphics resets on zoom in ArcGIS API for JavaScript?

I am highlighting graphic using graphic.setSymbol(pictureSymbol). It is working fine. But, when map is zoomed the symbol graphic is reset to default. If anyone has come over the issue, please help! ...
0
votes
1answer
65 views

zoom to all points in arcgis js api

Can anybody tell me what wrong in this code.Here I am passing point geometry to query task. var districtName = $('#ddlDistrictd').val(); function showresults() { $.ajax({ type: "POST", ...
0
votes
1answer
46 views

Table of Contents(TOC) Widget for ArcGIS JavaScript API in Legacy?

I want to develop a legend using Table of Contents(TOC) Widget for ArcGIS JavaScript API in Legacy code. I have tried its development by following the steps in the documentation of TOC Widget for ...
0
votes
1answer
188 views

Esri API JS, popup not displaying after first click [duplicate]

Demographics data shows upon first click but not after, park information does work. I've changed around almost everything with non real solution. I feel like for whatever reason my feature server data ...
0
votes
0answers
69 views

Zoom to x y coordinates in arcgis javascript api 3.15

I am using arcgis javascript Api 3.15 with ASP.NET and Ajax.I got json object contains only x and y coordinates. This object does not have geometry column. How can I zoom to this json object. Should I ...
3
votes
1answer
55 views

Show coordinates in other projections (ArcGIS Javascript API)

Is it possible to change this sample that it will be show x,y coordinates in wkid:5514 ? <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"> ...
0
votes
1answer
63 views

checkbox in toc is not working

I have toc with dynamic and feature layers.its displaying properlybut when I checked on and off the checkbox nothing is changing on layer. below is code: <!DOCTYPE html> <html> ...
1
vote
1answer
681 views

Geoprocessing tool not executing when Map's SpatialReference is Web Mercartor

I am facing a strange issue when trying to execute GP service when my map's spatial-reference is Web Mercator. I appreciate all help. I have a JavaScript API application. Initially I only had my map ...
0
votes
0answers
26 views

Why is BorderContainer and ContentPane methods are not called for map and attributeInspector elements using ArcGIS API for JS?

I'm trying to display the attribute inspector on right-side panel when a feature 'onclick' event is called, but whenever i click on a feature the attribute inspector shows-up on left-side of the ...
0
votes
2answers
181 views

Uncaught SyntaxError: Unexpected token (

I want to show tooltip for my dojo button, I have tried the following code but getting error: Uncaught SyntaxError: Unexpected token (. Please solve this issue. <!DOCTYPE html> <html> ...
1
vote
1answer
63 views

query.where statement using date range in JS API fails with IE 11 but works fine with Chrome and Firefox

My aim to display point data from a feature layer on ArcGIS for JS map interface. I am successful doing so in Chrome and Firefox, however when I include date in a where condition of a query execute it ...
0
votes
2answers
112 views

draw polyline on map in javascript api

I am trying to draw polyline on map, but line is not adding to the map,please help me determine where I am making a mistake. <!DOCTYPE html> <html> <head> <meta ...
2
votes
1answer
118 views

TypeError: g.join is not a function in queryTask.execute

I need to query data from a server, so I try to exploit "Query data without a map" sample. However, at queryTask.execute I get following error: TypeError: g.join is not a function My code is ...
4
votes
2answers
173 views

How to pass polygon to query.geometry with ArcGIS API for JavaScript

I have to highlight district boundary and corresponding point. So I am trying to do like below code. But I don't know how to pass district polygon geometry to query.geometry. var queryTask = new ...
0
votes
2answers
78 views

Take URL Parameters including corner Coords in ArcGIS webmap and display polygon on launch

I have a list of corner coords for study areas in a sharepoint list. I used 'calculated field' to generate a url that launches our internal webmap in a new window and sets the extents as the ...
4
votes
1answer
153 views

Options to Replace Interactive Mapping System

I have been tasked with replacing our organizations online interactive mapping system. It is your run of the mill County Government interactive map. Its bulky, unreliable, slow and out of date. It is ...
-1
votes
1answer
113 views

Python or Javascript focus (for self-directed study at university) [closed]

Next semester is my last at university. I have taken all 3 of the GIS courses offered in my program. Besides some very light interaction with Python though, their has been zero discussion of ...
0
votes
0answers
26 views

How to show a legend of a invisible layer in ArcGIS javascript?

Using the JavaScript API for ArcGIS, I'd like to show the legend of a DynamicMapServiceLayer that's not visible. Is this possible? The result would be a static legend that's always there, no matter ...
1
vote
1answer
58 views

configurable map viewer multiple map services

I have multiple map layers (right now about a dozen but that will likely stretch to several dozen) in my CMV. I have introduced several WMS services to operationalLayers that I have published to a ...
0
votes
1answer
30 views

Setting opacity info in ArcGis Api for Javascript overwrites featureLayer.renderer.colorInfo

I'm having trouble setting the color of a feature layer in ArcGIS api for javascript. I have a feature layer, which, on the load event I set its renderer's colorInfo and opacityInfo. Both work ...
0
votes
0answers
19 views

Editing dijits which honor subtypes

Does only the attribute inspector honor subtypes? Referring to API doc https://developers.arcgis.com/javascript/jsapi/attributeinspector-amd.html I have lately started using the Web App Builder ...
1
vote
0answers
22 views

How to set snapping specification in web map feature layer (arcgis)?

I need to set snapping to snap just to polygon vertex (by default it snaps to polygon vertex and edges). In this example and according to this, the map.enableSnapping() function should return an ...
2
votes
0answers
32 views

Adding more than 5000 paths string in ElevationProfile using ArcGIS API for JavaScript?

I'm creating a simple ElevationProfile using the ArcGIS API for JavaScript. In the URL it's described as MaximumRecords: 5000 Its allows only 5000 polyline array paths but I have more than 5000 ...
1
vote
1answer
518 views

query.where statement using date range in JS API

I'm trying to construct a query.where statement using 2 input type=date fields on the page. The date field in SQL Server in the format 2014-12-31 00:00:00.0000000. The input fields date is in the ...
2
votes
1answer
831 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
1answer
41 views

Snapping in ArcGIS API for JavaScript?

I want to add more than one layer to snapping in map var layerInfos = [ {layer:results[0].layer} ]; snappingManager.setLayerInfos(layerInfos);
0
votes
0answers
58 views

AttributeInspector is not showing up on 'click' event using ArcGIS API for JS?

I'm creating a application to select features on event 'click' and then using AttributeInspector to edit the attribute fields. I'm also creating draw tools to select features on event click and ...
5
votes
1answer
2k views

How do I use a toggle button with the ESRI javascript api

I am trying to use two toggle buttons which have been added to a map to toggle layers on and off in my simple web application. I am having problems getting the toggle button to respond when clicked or ...
1
vote
1answer
48 views

Basemap AGOL without internet connection

I have develop a JS webapp that call a arcgis services by web adaptor. The AGS is deploy into a back end server and web adaptor into a front end server and web app is deploy into a separate web server ...
1
vote
0answers
21 views

Show FeatureLayer when some of it's objects is found by Search ESRI JavaScript Api

I'm using ESRI JS 3.15. I have many FeatureLayers, which resources are connected to Search, when user type a name of an object in search bar, it gets focused, but I want also to hide all other ...
0
votes
2answers
29 views

FeatureLayer creation using ArcGIS JS Api with data hosted on ArcGIS online

I have a few feature layers hosted on ArcGIS Online and I am trying to add feature layer editing to my web project. The JS API guide says the data must come from an ArcSDE geodatabase ...
2
votes
1answer
3k views

Web mapping within ASP MVC 3 framework

Just curious if anyone has used the ASP MVC 3 framework for creating web mapping applications. I have one coming up and am planning on using the ArcGIS javascript API. Would be interested in hearing ...
3
votes
1answer
2k views

Does ArcGIS API support Geoserver's WMS and WFS services?

I want to know whether ArcGIS API for Java Script support Geoserver's WMS and WFS standards. I have published my data on Geoserver and i want to query my data by WFS in ArcGIS API to develope my ...
1
vote
1answer
57 views

ArcGIS Javascript API edit data programmatically

I have a form that auto generates a unique number. I want to update/edit an attribute with this number. Is this possible using one of the Esri editing widgets? Attribute Inspector, Editing widget or ...
1
vote
1answer
2k views

ArcGIS JavaScript API Select Features

I'm having some trouble using the selectFeatures method with a feature layer. The code below builds a query using input text. If anyone has any pointers on what I could be doing wrong here, it'd be a ...
1
vote
1answer
280 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 ...
0
votes
1answer
307 views

How to submit data to modify feature using applyEdits of ArcGIS API for JavaScript?

I'm new to ArcGIS API. In a form, how can you submit data to modify a feature using applyEdits? No map is involved with this. I have a form that populates the editable data with javascript. When the ...
0
votes
1answer
305 views

How to add customization to Configurable Map Viewer (CMV)?

Looking to learn more about CMV Viewer. For example, how would I add capability like: map on load: for learning how to configure CMV Viewer for my own needs, I'd like to start by learning to add ...
0
votes
0answers
41 views

CMV (Configurable Map Viewer) basemap displaying incorrectly

I have a version of the CMV hosted on a local Windows 2012 R2 server and I am having trouble with the basemap display. The display is fine on the http version of my site but I also have a https ...
0
votes
1answer
71 views

Feature service is not added to map using ArcGIS API for JS?

I'm trying to search features using the "esri/search" module. I'm passing the parameters to callback function (Search) to add a feature layer and search features, but i don't see any features added on ...
2
votes
1answer
36 views

What is the need of “onExtentHistoryChange” in map navigation toolbar

In map navigation toolbar what is the need of "onExtentHistoryChange" in on(navToolbar, "onExtentHistoryChange", extentHistoryChangeHandler); <!DOCTYPE html> <html> <head> <meta ...
0
votes
1answer
76 views

TOC is not displaying feature layers?

here is my code to display toc.Its displaying dynamic layers but why its not displaying feature layers. <!DOCTYPE html> <html> <head> <title>Create a ...
1
vote
1answer
267 views

ArcGIS API for Javascript Not Adding Layer and/or Graphic during mouse event handler?

I am trying to add a graphic to my graphics layer during a map mouse event. In the javascript console, I can see that my graphic object is created and no error is thrown when I add the graphic to my ...