Public Maps Gallery template version 1.4  --Opening post

12939
175
11-22-2011 02:57 PM
Esriwebmap
New Contributor III


Please reply to this opening post to submit questions and comments about the Public Maps Gallery (PMG) template version 1.4.
Tags (2)
0 Kudos
175 Replies
BillEveringham
New Contributor III
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 was able to change the zoom level, but the cached basemap I am using is disappearing.  Any idea why?

http://gis.arlingtonva.us/gallery

try an address search to any of the maps... 2100 clarendon blvd, arlington, va
0 Kudos
JonBeets1
New Contributor II
I'm looking for something similiar to this that I can add my maps to that are not cataloged on ArcGIS.com.  Our server is on a closed system.

Jon Beets
0 Kudos
BillEveringham
New Contributor III
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.
0 Kudos
MichaelKlein
New Contributor II
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.
0 Kudos
MarcWeinshenker1
Occasional Contributor
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.
0 Kudos
Esriwebmap
New Contributor III
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.


That's a good solution.
0 Kudos
BillEveringham
New Contributor III
For some reason my site stopped working in Internet Explorer 8... works with firefox and chrome... any ideas why?

http://gis.arlingtonva.us/gallery
0 Kudos
Esriwebmap
New Contributor III
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.



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:

mapLayer.featureCollection.layers[0].layerObject
layer.layerObject


I don't think there's a simple way to remove the frame names. Unfortunately, it requires some javascript coding.
0 Kudos
Esriwebmap
New Contributor III
For some reason my site stopped working in Internet Explorer 8... works with firefox and chrome... any ideas why?

http://gis.arlingtonva.us/gallery


I think I know what it is. IE is VERY picky about JSON objects and extra commas. Try removing the last comma in this code:

// LINK 4
 {
  title: "City of Alexandria GIS",
  url: 'http://alexandriava.gov/GIS'
  
 },


Let me know if that works.

Thanks
0 Kudos
MarcWeinshenker1
Occasional Contributor
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.


Thanks.  That's all probably beyond what I was looking for, though.
0 Kudos