All Questions
122 questions
4
votes
1
answer
611
views
ArcGIS Javascript API AMD require syntax and Dojo ContentPane compatibility
I am trying to recreate the ArcGIS Javascript API/Dojo ContentPane layout template shown here for my own custom application. I would like to switch from using dojo.require() legacy syntax to using AMD ...
2
votes
1
answer
3k
views
Plotting the centroid of a polygon feature layer
I'm working with arcGIS javascript api 3.12.
My current call for displaying the feature layer is as follows:
var recLayer = new FeatureLayer("http://sampleserver6.arcgisonline.com/arcgis/rest/...
4
votes
1
answer
145
views
Takes Two Clicks to Select New Feature
I'm writing a web app using ESRI's Javascript API and a map I created in ArcMap 10.1 hosted on ArcGIS online (Feature Service, not WebMap).
I have written the code necessary to print attributes in a ...
2
votes
1
answer
1k
views
Programmatically accessing declarative ToggleButton? [closed]
I've just started with Dojo/Javascript and even though I kind of understand all the AMD way of coding, I keep getting stuck on these (probably) easy things.
How can I programmatically access a ...
1
vote
1
answer
573
views
Create event handler for "x" button on type: 'floating' widget?
How do you create event handler for "x" button on type: 'floating' widget?
"OnClose" fires every time: this.parentWidget.hide(); is called.
I want to intercept the event when the "x" button in the ...
5
votes
3
answers
2k
views
ArcGIS Javascript API on Wordpress 4.1
SOLUTION: For everyone interested: turned out the solution was moving all files that use DoJo beneath the jQuery UI files, so that jQuery UI is fully loaded before any DoJo stuff loads. Moved them all ...
1
vote
0
answers
660
views
Uncaught TypeError: Cannot read property 'toString' of undefined from ArcGIS JavaScript API? [closed]
I updated my application to 3.12 and am getting the following error:
Uncaught TypeError: Cannot read property 'toString' of undefined
It is being triggered by the following line:
coordMenu.addChild(...
2
votes
1
answer
355
views
CMV Widget Toggle
In Configurable Map Viewer project, I'd like to be able to set the initial display of a widget to hidden and show it with a press of a button, for example, by clicking on a button in a toolbar. Take ...
1
vote
1
answer
605
views
Tabs in ESRI Popup
I am trying to get popup's working in my esri JS map and I have the tab's mostly working but I am missing a resize function to have the tab container sized properly on load. When I click a polygon and ...
0
votes
0
answers
33
views
Individual Feature Class that jumps TO individual Feature in Webmap
I am using the WAB(3) (Web App Builder, Beta 3) doing development of ESRI-based maps using FeatureClasses stored in our own City Government REST Services.
We currently have a program called 'Adopt-A-...
1
vote
1
answer
970
views
Proxy error with ArcGIS PrintTask - AMD
I am trying to add a simple layer of security to my ArcGIS JS app. I do not want to prompt my users for a login to retrieve a token. So instead I pass the username/password inside this PHP proxy: ...
4
votes
1
answer
349
views
What would prevent ESRI JSAPI AMD modules from being cached?
I am using AMD style in the ESRI Javascript API (along with the esri application boilerplate: https://github.com/Esri/application-boilerplate-js).
For some reason, the AMD modules from the js.arcgis....
3
votes
1
answer
488
views
Inconsistent Identify Task- Explain this bug?
Through some console.log debugging I've located the exact line of code that is failing me but I'm not quite sure how to fix the problem.
Basically, I have an identify function that queries the ...
2
votes
1
answer
823
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
2
answers
427
views
Placement of Save Button in ArcGIS Javascript AttributeInspector dijit
I am having a problem with an AttributeInspector that I noticed also exists in an online sample here: http://developers.arcgis.com/javascript/samples/ed_attribute_inspector/
If you click on a polygon ...
1
vote
0
answers
364
views
Converting Google Maps API to DOJO/ArcGIS API for JavaScript? [closed]
I have a GIS webpage in HTML5/JavaScript using the Google Maps API. I found out we can no longer use the Google Maps imagery provided, and I need to switch to ESRI Imagery (free).
Can someone help ...
1
vote
0
answers
244
views
Combining three data extraction functions into one button? [closed]
I am looking to simplify my code. As of right now I have some code that allows users to extract GIS data in three different ways:
Extract by drawn extent
Extract by extent of the a county
Extract by ...
3
votes
1
answer
3k
views
How to synchronously execute a queryTask
How can a queryTask be executed synchronously? I'd like a feature set to be returned instead of deferred object.
-1
votes
1
answer
827
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
vote
1
answer
1k
views
return when asynchronous task has completed
I'd need a function to wait until the asynchronous task has completed and then return.
In my example, I'm getting undefined returned from the "execute" method:
var result = myClass.execute(obj); //...
0
votes
1
answer
185
views
Filtering GeoRSSLayer contents in ArcGIS API for JavaScript
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 ...
2
votes
3
answers
577
views
Dojo Slider to control tiled map services?
am creating a web map to show Sea Level Rise in my County. I want to use a Slider for a user select the increment of Sea Level Change that wish to see.
I have been able to create Programatically ...
2
votes
1
answer
704
views
Legend Problem with arcGIS javascript API
I am new to arcGIS javascript API.I tried to display a simple dynamic map service with legend but its not displaying legend. I am not able to find error in my code. Please help me in resolving the ...
1
vote
1
answer
2k
views
replacing dijit.ComboBox with dijit.Select results in error (ArcGIS Javascript API)
I am currently populating a Dojo ItemFileReadStore with the results of an ArcGIS query (Javascript 3.4 API), which is then passed to a Dijit COmboBox.
I am now having problems with the ComboBox in iOS ...
3
votes
1
answer
3k
views
change font size of elements in dropdown menu store
I am creating of list of building names from a query, which then populates a dojo.ItemFIleReadStore. This store then populates a dropdown menu (using dijit.Form.ComboBox), where the user makes a ...
2
votes
1
answer
3k
views
Get data to display on the map legend?
I am trying to use the Legend widget from this link below to build a legend that displays our layers in the map:
https://developers.arcgis.com/en/javascript/home.html
I have added the legend widget ...
2
votes
1
answer
412
views
Tell Dojo to look for minified classes with ArcGIS JavaScript API
I've got an application build using the ArcGIS JavaScript API. I have several classes built with Dojo define. Each class is in a separate file, and everything is working fine.
However, I've minified ...
3
votes
1
answer
240
views
Synching Two ArcMap JavaScript webmaps to respond to panning
I am looking for some advice on how to approach a problem I am having. I am looking to build an ArcGIS webmap using JavaScript and HTML 5 that reacts to a user panning on two separate, synchronous ...
0
votes
1
answer
61
views
Changing title of app [closed]
We have a map with streets as basemap.
We have been trying unsuccessfully, for the last two days to change the basemap to tiled layer with no success at all.
I am posting a snippet because script is ...
1
vote
1
answer
145
views
ArcGIS JSAPI Toggle Identify (AMD style) [closed]
I am trying to convert the Toggle Identify example to AMD style. However, I am stuck with an empty map. Debugging in Firebug doesn't help too much.
Could anyone help me to find where I am wrong?
The ...
3
votes
1
answer
294
views
How to flash a JSAPI map graphic only when contained in map extent [closed]
Using ESRI JSAPI 3.7 I'm flashing a graphic that works fine when the graphic is located within the bounds of the map extent (is visible). However, when you move the map so the graphic is located out ...
1
vote
1
answer
228
views
Can I add GeoExt or ArcGIS JS API to Openlayers + Dojo App?
I've written a basic map app with Dojo and Openlayers (using titlebar , toggle buttons , checkbox tree and some more).
I've seen ArcGIS JS Api has nice tooltip / balloon and GeoExt has nice Legend ...
4
votes
2
answers
253
views
Style Print dijit menu in esri JavaScript API
Trying to add styles to a dijit is difficult enough, as I have to track down the classes it uses after it loads. I've managed to do that, but I'm struggling to find the appropriate classes to alter ...
2
votes
1
answer
146
views
Load dojo from local and ESRI packages separately
Is there by any chance a way to load dojo packages from my local and then load ESRI javascript api packages which i need?
1
vote
1
answer
197
views
Using ESRI Dojo version for building web application
If I am using ESRI's JavaScript API for my application, then I cannot load a different version of Dojo other than the one shipped with ESRI. I have to rely on ESRI for Dojo. The map appears in only 3 ...
2
votes
0
answers
290
views
Populate print template title text from a dojo textbox
I have a print widget that starts up great. It's based on the typical ArcGIS print widget sample.
However, I want to tweak this a bit. There is a "titleText" property in the layout options that I ...
0
votes
1
answer
1k
views
Cached Map Services concept and feature layer
I am having performance issue in my application. My feature layer has 220 polygons, but when I load the map with the feature layer, the browser hangs. On the advice of forum experts, I have now ...
2
votes
2
answers
4k
views
How do I hide a feature layer service
I'm only just getting into dojo, so I have what most would probably consider a very basic question. I've built my own legend in a div and added divs for the legend items. This is all quite manual, ...
2
votes
2
answers
1k
views
Feature Layer Web Mercator Service is too slow in IE and zooming does not work in FF
I am facing issue of Feature Layer being too slow and hangs browser , we changed the projection system to WebMercator performance increased in FF but in IE it sill hangs.when i zoom in FF it hangs ...
5
votes
2
answers
1k
views
Loading custom dojo and Esri
We have to develop an application which will have lot of rich ui along with a map. For the map, I am using the arcgis javascript api which includes dojo. For UI components other than the map, I want ...
6
votes
2
answers
8k
views
Auto resize map to 100% after content pane is removed in ArcGIS JavaScript API
I'm using ArcGIS JavaScript API 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 (which holds the legend, and basemaps and such as ...
1
vote
0
answers
339
views
ArcGIS map service not resizing for print-friendly page
( I asked this same question on ArcGIS forums, with no response...I hope someone here can help!)
I am using ArcView, ArcServer 10.0 and the JS API v3.1 (so no print function) ... I have an app where ...
0
votes
1
answer
777
views
Show pie-chart values & legend in info-window for AGS_JSAPI 3.4/3.5
Currently I am going through this example and trying to insert values in pie chart (I have added that screenshot and want to show values & legend in the info window)
I am using ArcGIS Suit 10.1 ...
7
votes
1
answer
1k
views
Duplicate items in the legend
I have recently created a web map that uses the legend snippet from the ESRI JavaScript API website.
https://developers.arcgis.com/en/jav...et_legend.html
It works great for the most part, but has ...
1
vote
1
answer
1k
views
Populating a Dojox Grid
The problem I am having is getting my grid to fill when I run my select command. It sees the number of features and creates the correct number of cells in my grid but that is about it. It should ...
3
votes
1
answer
220
views
Making Geoprocessing Service results table sortable using ArcGIS API for JavaScript?
Im aware a sort() function exists, just not sure where it should be placed in my code. I have a function that draws routes on the map and i'm getting my results that are in my table from those routes. ...
3
votes
2
answers
1k
views
Getting event object from Draw Toolbar onDrawEnd using ArcGIS API for JavaScript?
I am using the Draw Toolbar in the Esri Javascript API v3.4 and connecting to the onDrawEnd event using aspect.after(drawingToolbar, "onDrawEnd", drawEndHandleFunction, true);
I am using the Draw ...
3
votes
0
answers
4k
views
Simple Dojo Pop Up Window
I'm working on my first web application using the JS API and am looking to add a simple tabbed pop-up window that can be called on the load of the page that can display map instructions and a general ...
2
votes
0
answers
5k
views
How to dynamically add all feature layers using ArcGIS JavaScript API?
I have a mapserver
http:// mymapserver/services/rest/xxx/mapserver/
which contains 7 layers with /mapserver /1 /through mapserver/7
If a define an ArcGISDynamicMapServiceLayer and 7 ...
6
votes
3
answers
8k
views
How to Hide InfoWindow/Popup when "no information available" or when buffering?
I have an app that does some buffering, only problem is when I click on the map to put in the point/line/polygon vertices to do the buffer, I get popups at every mouseclick. It doesn't interrupt the ...