1
vote
1answer
27 views

How do I get the legend from a ArcGISDynamicMapServiceLayer using esri javascript api?

So I've been using the ESRI Javascript API, so far what I've been able to do is create a map, fetch a layer from another source and combine them, but I'm stuck on grabbing the legend from the other ...
1
vote
1answer
25 views

Legend hangs with large featurelayers at startup

My problem is that I created an app with a lot of services that the user can use. The problem is that when I implement the legend widget and the code goes over startup(), the app becomes stuck and it ...
0
votes
0answers
27 views

ArcGIS javascript. Trying to use a dojo table of contents in CakePHP

Sorry for asking so many questions, but I am trying to learn arcgis, dojo, and cake all at the same time :/ Basically what I want to do is get this to work in the latest CakePHP. Where do I place the ...
2
votes
2answers
70 views

Change symbol size in legend for FeatureLayer (ArcGIS API for JavaScript)

I'm learning how to create web applications using the ArcGIS API for JavaScript. I have a map that is displaying both an ArcGISDynamicMapServiceLayer (which includes two layers) and a FeatureLayer. I ...
0
votes
0answers
43 views

ArcGIS JavaScript problem with legend to show attributes

I'm running a geoprocessing task in my webapplication. When the task generated some results i destroy an existing legend and build up a new one that shows the legend for the resulting layers. That is ...
0
votes
2answers
241 views

arcgis javascript api legend and basemaptoggle error

I'm having a problem with my Web Application. I try to fit in a legend and a BasemapToggle but it doesn't seem to work. My Code looks like this: <!DOCTYPE html> <html> <head> ...
0
votes
1answer
161 views

evt.layers undefined while trying to display Legend widget in Javascript API

I cannot get an ArcGIS Javascript API Legend widget to show up. An excerpt of my code is as follows. I believe I'm failing somewhere near the console.log that I call...undefined comes up in the ...
0
votes
0answers
114 views

esri.dijit.Legend.startup not working in IE10

In Internet Explorer (IE) 10, legend.startup in the below code is not working. It just gets struck. The same is working in IE8. function generateLegend(results) { legend = new esri.dijit.Legend({ ...
0
votes
0answers
53 views

How to use ArcGIS JavaScript API for ArcGIS Server service, where to save code?

I have found some sample codes online for implementing traditional map components such as legends and scale bars to an ArcGIS Server service. ...
0
votes
1answer
261 views

How to add Map Legend, Scale Bar and Select tool to an ArcGIS Server Service?

I have published a service from ArcMap to my Server Account but I can't figure out how to add the legend, scale bar and select tool to the service. According to the published service it was built ...
2
votes
1answer
995 views

How do I 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 ...
3
votes
1answer
244 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
2answers
211 views

Different legend properties with ArcGIS API for JavaScript

I have a map template that I use to display a variety of feature layers and dynamic layers. I have found a snippet of code to add the legend to my map: //add the legend dojo.connect(myMap, ...
6
votes
1answer
171 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 ...
0
votes
1answer
186 views

Legend is stuck on startup()

All my layer URLs and Feature Layers are stored in an array. with an foreach loop, I am creating the FeatureLayers from the URLs, dojo.forEach(window.layerUrls, function (info, idx) { ...
0
votes
1answer
265 views

ArcGIS Javascript Legend Is not Showing

I am trying to add a legend, and it gets to the console.log, but it fails at on the line after it. It does not show any errors saying it failed, but it wont continue past that line. map[map_div_id] ...
5
votes
2answers
830 views

Legend showing info for world map

I'm using ArcGIS 10.1 API for JavaScript. I'm showing dynamic map service layer containing 8 layers and I want to show legend for the currently visible layer (only 1 layer is visible at a time). The ...
5
votes
1answer
1k views

Automate export of ArcMap legends

I've been building legends for my javascript websites that use 9.3.1 services. I know there's the ESRI legend tool for older services but I don't feel that it does a good job of producing legend ...