For some reason, the marker is gone now and I couldn't get that to work. Any suggestions? Is there a possibility of using my own geocoding services I have published?
I am using the "simple" map in my gallery. Is there a way to set it up to turn on the individual layers in my rest service? I can do this when I switch to explorer or arcgis.com, but would like this functionality in the simple map. For instance I have a service of bus routes, but would like to give the end user the option to turn on/off different routes that overlap.
Hi. I've never turned on or off individual layers in the simple map. However I've developed the Basic Viewer template
http://apps.arcgis.com/hosted/OnePane/basicviewer/index.html
and that worked well for me. I created a link to the Basic View template in the settings.content.js and users can see the simple maps and this link together.
1) Is there any place in the Gallery application code to format dates in the popup so that the time does display such as 6/30/2010 8:00 PM? I could probably change the date field to a text field in the source, but that's the tail wagging the dog.
2) Is there any place in the Gallery application code to adjust the formatting in the Legend? I'd prefer that only the map service Layer names appear and not the Frame names.
Thanks.
mapLayer.featureCollection.layers[0].layerObject layer.layerObject
For some reason my site stopped working in Internet Explorer 8... works with firefox and chrome... any ideas why?
http://gis.arlingtonva.us/gallery
// LINK 4 { title: "City of Alexandria GIS", url: 'http://alexandriava.gov/GIS' },
Hey Marc,
I don't think that the date can be formatted. At least not in the code because the info window content comes from Arcgis.com. Unless you overwrite it when the pop up is called which is not a simple task. You may be able to adjust the formatting on Arcgis.com. I'm not sure about that.
The legend format is different depending on what kind of layer or service it's for. I've noticed it is rendered differently for featureCollections. You should be able to strip out any information you don't want from it though. The function to edit is in /scripts/map/layout.js on line 302 buildLayersList(). It collects each layer object from:
I don't think there's a simple way to remove the frame names. Unfortunately, it requires some javascript coding.