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

0
votes
1answer
224 views

arcgis javascript api featureLayer not available immediately upon show click event

I am adding a feature layer as such in my index.html file. featureLayer00 = new FeatureLayer("http://webadaptorserviceurl/MapServer/0",{ mode: FeatureLayer.MODE_ONDEMAND, id: "0", ...
0
votes
0answers
8 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", ...
1
vote
1answer
368 views

How to add custom basemaps to BasemapGallery

I would like to add my own custom basemaps to the BasemapGallery. Is there any way I can create my own BasemapGallery with only my maps? I am using the ArcGIS API for javascript. EDIT: for clarity I ...
1
vote
1answer
407 views

ArcGIS javascript API setDefinitionExpression returns wrong result set

New to GIS and ArcGIS. I am trying to use the javascript API setDefinitionExpression to limit the output of a FeatureLayer on the map; however, the result set returned by the function is incorrect. ...
0
votes
0answers
26 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 ...
2
votes
1answer
21 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
0answers
20 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 ...
0
votes
1answer
15 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
610 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
14 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
45 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> ...
3
votes
0answers
30 views

Add Shapefile code - Why all shapefile features added on the same location on map?

I am developing the JS app using 3.15. I have tried this code in my app Add shapefile from the esri samples. but shapefile features added at the same location on map.If the polygon features it ...
1
vote
1answer
36 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 ...
-1
votes
0answers
27 views

Arcgis Web App builder chart widget

I am using chart widget to generate charts and graph.It is running fine,But my client wants to be simple.if he clicks on the chart icon the results should be displayed without selecting layer and ...
0
votes
2answers
40 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
27 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 ...
0
votes
1answer
1k views

Error executing tool.: Layer “layer1” Unable to connect to map server

I am using the Configurable Javascript Viewer, and have only changed a couple of the configuration settings. One change I made was to use my own Export Web Map Task. In viewer.js, I changed: ...
3
votes
2answers
72 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
49 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 ...
0
votes
1answer
540 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 ...
4
votes
1answer
146 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
80 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 ...
3
votes
1answer
492 views

how to disable duplicate items in the legend for ArcGIS JavaScript API

I have a problem with duplicate items in the legend panel! Can anyone help me? This is my feature Layer with popup info: // Feature Layer var msFeatureLayer = new ...
3
votes
3answers
277 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 ...
4
votes
2answers
250 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.
0
votes
0answers
20 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
22 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
15 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
8 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
11 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
1answer
420 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 ...
2
votes
0answers
24 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
362 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
365 views

How to append result to Geocoder text box using ArcGIS JavaScript API?

I want to append result of a custom search in a Geocoder text box in ArcGIS JavaScript API by overriding the default result. I have written the below code for this, but I am not getting a ...
1
vote
1answer
752 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
36 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
31 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 ...
4
votes
2answers
1k 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
33 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 ...
0
votes
1answer
504 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. ...
1
vote
0answers
19 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
0answers
15 views

Querying/getting EID ( Edge id's of network ) in ArcGIS API for JavaScript?

I did a server-side(c#) network analysis and the output is the EID's(NetEid's) which needs a INETelements to query for features and Object Id's. It takes long time especially when you found many ...
1
vote
1answer
549 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 ...
0
votes
2answers
24 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
45 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
231 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
3answers
229 views

How to work on map created by using arcgisUtils.createMap

arcgisUtils.createMap(id,"map").then(function(response){ //update the app dom.byId("title").innerHTML = response.itemInfo.item.title; dom.byId("subtitle").innerHTML = ...