Questions tagged [arcgis-javascript-api]

For questions about ArcGIS API for JavaScript 2.x and 3.x. For 4.x use arcgis-javascript-api-4 instead

Filter by
Sorted by
Tagged with
0
votes
1answer
1k views

Info Template not getting displayed

I have a layer like, realTimeLayer = new esri.layers.GraphicsLayer(); I have an infoTemplate like, infoTemplate=new esri.InfoTemplate("/*Content goes here*/"); I am creating a graphic, adding it ...
0
votes
0answers
336 views

MemoryLeak - http://help.arcgis.com/en/webapi/javascript/arcgis/samples/fl_any_projection/index.html

Attention ESRI - Loading http://help.arcgis.com/en/webapi/javascript/arcgis/samples/fl_any_projection/index.html inside of sIEve shows a significant amount of memory loss each time the page loads (+...
0
votes
0answers
317 views

How to add GeoTagged images to the map and store as KML

I have the requirement that i need to add a GeoTagged Image into the map and save that image in KML format. Give the approach to do this task.
0
votes
0answers
314 views

infoWindow does not open on initial page load (ArcGIS Javascript API)

I am working on a webapp using the ArcGIS Javascript API. I noticed that when I first load the map (currently living on a development server), the infoWindow does not open (when clicking on a feature)...
0
votes
0answers
564 views

How would one write a ArcGIS JSAPI layer to access WMS service via a Tile Server?

I want to request small WMS tiles instead of a single image for the entire map viewport because I know the request is going through a Tile Service (TileCache). OpenLayers handles this with the WMS ...
0
votes
0answers
75 views

Shapefile to ArcGIS JavaScript JSON format? [duplicate]

Possible Duplicate: How to convert SHP into GPX or JSON? We're in the proces of adding a new feature to our Web Application where we employ the use of ESRI's ArcGIS Javascript API alongside other ...
0
votes
1answer
759 views

Is dynamically changing a datasource possible in arcgis js api?

I've posted a related question is in the ArcGIS Desktop forums, but hasn't gotten any replies yet. In that case, I would like tackle this in another way, which is dynamically changing a datasource ...
0
votes
1answer
388 views

ArcGIS: Get layer by name using Javascript API and modify it

I'm very new to ArcGIS and I'm developing a custom widget in the ArcGIS WebApp Builder that will allow me to change the style attribute of a specific layer in my map. To manually change the style ...
0
votes
3answers
887 views

Esri ArcGIS JavaScript - printTask.execute issues with error

I'm using the ArcGIS JavaScript API 3.18. The print service is configured to be async, with a timeout of 10 minutes. The code to call the job is as follows: printTask.execute(printParameters, ...
0
votes
2answers
469 views

CMV Secure Feature Service - Proxy

I m triying to add a secured feature service to CMV using a proxy page. My viewer.js file is the following: esriConfig.defaults.io.proxyUrl = 'myProxyURL'; esriConfig.defaults.io.alwaysUseProxy = ...
-1
votes
3answers
1k views

Disable a button until selection is made [closed]

I have this section in my website: There is a drop down list of environments and an area for a user to input a Zip Code. What I am trying to achieve is making the button disabled until a selection is ...
-1
votes
1answer
646 views

Save features in personal geodatabase using ArcGIS JavaScript API

I want to save the features in the personal geodatabase using ArcGIS JavaScript. from the feature prospective I'm having the geometry of the graphic layer added to the map.
-1
votes
1answer
118 views

Upgrading ArcGIS API for JavaScript 2.x to 3.x?

I have few data in which ArcGIS Java Script version 2.6 and 2.8 is used & I am upgrading it to ver.3.0/3.1 and getting different errors like (Store error,Map display is blank etc.) I searched on ...
-1
votes
1answer
422 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 ...
-1
votes
1answer
2k views

Is ArcGIS JavaScript API and SDK free? [duplicate]

I wish to integrate my .NET web Application to ArcGIS via JS Web API but the application is for commercial use and at an organizational level. Can someone please give me an insight on: available ...
-1
votes
1answer
2k 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 ...
-1
votes
1answer
1k views

ESRI Javascript polygon

I'm using ESRI JavaScript API 3.5. My polygon cannot load. Please help. dojo.require("esri.map"); dojo.require("esri.graphic"); var map; function init() { map = new esri.Map("map",{ ...
-1
votes
1answer
1k views

Creating an AttributeInspector via JavaScript API v2.7

I'm trying to display an AttributeInspector when I click on an object from a layer. I'm following this sample, but I cannot get it to work. Here is my sample code: dojo.require("esri.map"); dojo....
-1
votes
1answer
218 views

Graphic Is Not Adding to The Exact Snapping Point

Can you please take a look at this demo and let me know why the added graphic to the snapping feature is not exactly added on top of the feature. Please try the fiddle and add a Point to the map by ...
-1
votes
2answers
539 views

CMV Viewer Floating Widgets

Does anyone have an example CMV site without the side bar or any indication whether it would be worth pursuing CMV if what I need is all widgets to be Floating Title Panes?
-1
votes
1answer
323 views

Creating Layer editing/Analysis in ArcGIS web map application using Javascript API [closed]

I want to make an ArcGIS web map application in which user can select different layers of the published map (data of the layer in Postrgresql) and do some analysis based on layer data.import data to ...
-1
votes
1answer
49 views

Sketch Widget in JavaScript API for ArcGIS

Is there any way to extract the coordinates of the vertices of the graphics drawn using sketch widget? I want to use those coordinates to generate a kml file.
-1
votes
1answer
52 views

How can I show map from GeoServer using JavaScript on my web with base map OpenLayers? [closed]

http://localhost:8080/geoserver/flood/wms?service=WMS&version=1.1.0&request=GetMap&layers=flood%3Apak_water_areas_dcw&bbox=61.2723655700684%2C23.694694519043%2C75.8473587036133%2C36....
-1
votes
2answers
111 views

Manually triggering delete using Sketch Widget for ArcGIS JavaScript API

I am using the sketch widget for ArcGIS JavaScript: https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html There is a "delete" button after you have selected one or ...
-1
votes
1answer
68 views

ArcGIS javascript API (3.x) Dynamic Workspace [closed]

I am still learning JavaScript along with the ArcGIS API for JavaScript. I am attempting to load feature classes from a dynamic workspace (with a registered workspace ID) within a simple JS API ...
-1
votes
1answer
38 views

Understanding Javascript Query error?

function querySchools() { var query = quakesLayer.createQuery(); query.where = "District = '" + dom.byId("district").value + "'"; return quakesLayer.queryFeatures(...
-1
votes
1answer
187 views

Possibilities to integrate vector and raster files within a webmap [closed]

How can vector and raster (georeferenced image) data be integrated within a webmap (Leaflet, OpenLayers) and which infrastructure/architecture (Server, Database) is required? As far as I know these ...
-1
votes
1answer
270 views

Display feature attributes on infowindow

I am trying to show an infowindow with feature attrebutes at onclick. I have written some following code, after debugging this code infowindow is not displaying at the onclick mappoint. Please suggest ...
-1
votes
2answers
1k views

Generating FeatureLayer From FeatureCollection With ArcGIS API for JavaScript?

Can you please take a look at This Demo and let me if this is doable to create a FeatureLayer from featureCollection without using URL Here is the code I am trying to use: var schoolData = {"...
-1
votes
1answer
720 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" ...
-1
votes
1answer
134 views

Tile Loaded Event in ArcGIS API for JavaScript?

I wanted to know tile loaded event in ArcGIS API for JavaScript. As soon as tile is loaded this event should be called which give me tile specific information like tiles coordinates etc.
-1
votes
1answer
273 views

ArcGIS API for Javascript - InfoTemplate on a polyline

I have a web map with a few points and a single polyline. I have infoTemplate(s) attached to the points and tried to replicate this to the polyline however, I can't get it to work. I looked on the ...
-1
votes
1answer
793 views

TitlePane not rendering - working with basemapGallery sample code 2

I'm having the exact same issue as this question: TitlePane not rendering - working with basemapGallery sample code but the solution doesn't work for me. my javascript: ...
-1
votes
1answer
1k views

arc gis javascript API Capturing polygon “onclick” event data to pass as featureset

How can you figure out what polygon is clicked within a feature layer? I have a feature layer made of county polygons. When the layer is clicked I want to trigger a geoprocessing task on my server. ...
-1
votes
1answer
1k views

Projection parameters from WGS84 UTM37 to Ain El Abd UTM37 and the reverse

I am developing application using JavaScript apis, I want the correct projection parameters to convert from WGS84 UTM37 to Ain El Abd UTM37 and the reverse. When I click in the map I get Ain El Abd ...
-1
votes
1answer
61 views

Get existing layer by name from map having multiple map/feature services in ArcGIS Javascript API 3.x

I want to get existing layers from map and toggle on the visibility of the layers. The map has multiple services. I have the rest url for the service or the layer. And able to access the layer by ...
-1
votes
1answer
22 views

Using attribute inspector for ArcGIS JavaScript API?

I'm using the attribute inspector for ArcGIS JavaScript API. I don't know what code will I use, I want to have a dropdown box that is editable with options of red and green, if I select a box, the ...
-1
votes
1answer
198 views

Turn visible feature layers to invisible in ArcGIS-JS-API 3.x

I'm trying to turn all visible feature layers to invisible in a map using Javascript and jQuery by clicking into an element. What is wrong with the following code? $("#grayPic").click(...
-1
votes
1answer
59 views

Unable to access the ArcGIS JavaScript application in local host

My organisation has multiple ArcGIS JS API (3.13) applications. Those are working fine and good. I am new to GIS technology and I want to add more features to the applications which are already ...
-1
votes
1answer
26 views

What is the process for using data in various projections with the ESRI JS API v4.8?

We have an extensive collection of GIS data sitting in ArcSDE, exposed via map and feature services, and already in a regional (projected) coordinate system. We are starting to explore building web ...
-1
votes
1answer
119 views

Configuring UniqueValueRenderer to work with graphicsLayer

graphicsLayer has a method: setRenderer(renderer) How to set certain graphic elements of graphicsLayer using UniqueValueRenderer? Any example available? Did not find anything like this on Google ...
-1
votes
1answer
53 views

Arcgis javascript route path draw event [closed]

Is it possible to capture the draw event of the route paths? Given that each route path/polyline will not have the same color eg. some indications that its a ramp, outdoor, indoor (color coding) ...
-1
votes
1answer
1k views

Chrome/Firefox Performance Issues

Just curious if anyone else is having performance issues with Chrome and Firefox while using an arcgis javascript web application. I have been developing an application that works great in Internet ...
-1
votes
2answers
412 views

Filtering TOC using ArcGIS API for JavaScript

I am very new to ArcGIS JavaScript and have been reading some samples from the API. I am using ArcGIS JavaScript 3.5 API and agsjs.dijit.TOC control to display several layers in a map. I am trying to ...
-1
votes
1answer
123 views

PrintTask with proxy does not add the correct contet-type header: application/x-www-form-urlencoded

I am using a proxy which I have made on my own so as to perform the map export tasks. I have noticed that GET/POST requests use the content-type header: application/x-www-form-urlencoded. However ...
-2
votes
2answers
662 views

Deleting feature from geographic database using ArcGIS API for JavaScript? [closed]

How do I delete a selected feature from database when it is clicked on in the ArcGIS API for javascript?
-2
votes
1answer
478 views

draw shape in map and save to server [closed]

I am new to ArcGIS JavaScript API. I want to draw a polygon in map (with javascript in the ArcGIS web map) and then edit data for that polygon and then save in a existing layer in ArcGIS Server.
-2
votes
1answer
781 views

how to highlight map area with extent geometry onmouse click

I got this example in ArcGIS api sample code. But the problem is that I want to create it for any area of a map . Like if one clicks on any city, it should be selected. And the code is for mouse-over. ...
-2
votes
1answer
76 views

Reading local GeoJSON file using ArcGIS API for JavaScript

I am using ArcGIS API for JavaScript 4.14. I change the "url" which only receive the "http"-start str to "data",but it didn't work. const geojsonLayer = new GeoJSONLayer({ data: "js/...
-2
votes
1answer
217 views

TypeError: dojo.promise is undefined [closed]

I am trying to convert my web mapping application from legacy to AMD style. However, the error message tells the "TypeError: dojo.promise is undefined". I have tried to see if the error could come ...