Select to view content in your preferred language

Public Maps Gallery template version 1.4  --Opening post

33000
175
11-22-2011 02:57 PM
Esriwebmap
Occasional Contributor


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
DonBarker
Regular Contributor
The map gallery template is a great resource.  Thanks for this!

I'm using it in parallel at maps.choptankriverheritage.org and stories.choptankriverheritage.org.

The reason for both is that I have some online map presentations made for ArcGIS Explorer Online.  They look very bad when they open up in the ArcGIS.com viewer, and the presentation doesn't work there, anyway.  So I created two AGO groups and two separate galleries.  Then I set the config option for the story items to open in Explorer.

I think that when the config file is set to open the map in Explorer, the URL parameter should be ?present=, not ?open=. 

Why send the user to Explorer then make them fiddle around trying to start the presentation?

I'll look through the /scripts/ files to see if I can find and modify this function.  But I'm a Javascript novice and am not sure I'll get it right.

Thanks for considering this suggestion.
0 Kudos
Esriwebmap
Occasional Contributor
The map gallery template is a great resource.  Thanks for this!

I'm using it in parallel at maps.choptankriverheritage.org and stories.choptankriverheritage.org.

The reason for both is that I have some online map presentations made for ArcGIS Explorer Online.  They look very bad when they open up in the ArcGIS.com viewer, and the presentation doesn't work there, anyway.  So I created two AGO groups and two separate galleries.  Then I set the config option for the story items to open in Explorer.

I think that when the config file is set to open the map in Explorer, the URL parameter should be ?present=, not ?open=. 

Why send the user to Explorer then make them fiddle around trying to start the presentation?

I'll look through the /scripts/ files to see if I can find and modify this function.  But I'm a Javascript novice and am not sure I'll get it right.

Thanks for considering this suggestion.


Hi Don,

That's a great suggestion. I'll add an option for 'explorer_present'.

If you open /scripts/query.arcgis.js and replace this function, it should fix it for you.

/*------------------------------------*/
// GET VIEWER URL TO USE
/*------------------------------------*/
function getViewerURL(){
 switch(pmgConfig.mapViewer){
  case 'arcgis':
   return pmgConfig.arcgisPortalURL + 'home/webmap/viewer.html?webmap=';
   break;
  case 'explorer':
   return 'http://explorer.arcgis.com/?open=';
   break;
  case 'explorer_present':
   return 'http://explorer.arcgis.com/?present=';
   break;
  case 'simple':
   return 'map.html?webmap=';
   break;
  default:
   return 'map.html?webmap=';
 }
}
0 Kudos
DonBarker
Regular Contributor
Thanks for the quick response and the tip.


Hi Don,

That's a great suggestion. I'll add an option for 'explorer_present'.

If you open /scripts/query.arcgis.js and replace this function, it should fix it for you.

0 Kudos
Esriwebmap
Occasional Contributor
I've tried changed the lod variable to lower numbers, but with no luck. My data is in State Plane, I am assuming the could be an issue?  Here is my rest endpoint for the tiled basemap.  Is there a way to define one of the LOD's as a default zoom to location?

http://gis.arlingtonva.us/ArcGIS/rest/services/Arlington_Basemap_Plain/MapServer?f=json&pretty=true


Hey Bill,

I can't figure out why it's not working correctly. I know it has to do with the custom base-map. Maybe you can try posting your app on the ArcGIS Javascript API forum and see if someone has an idea.

http://forums.arcgis.com/forums/15-ArcGIS-API-for-JavaScript
0 Kudos
Esriwebmap
Occasional Contributor
I've updated the template to version 1.4.1

This update includes:


  • Support for using the template with private groups and items

  • Option to hide footer

  • Option to hide sharing icons

  • Sharing icons are now using Addthis.com

  • Using API version 2.7

  • jQuery 1.7.1

  • Created tool for generating ArcGIS.com token.

  • Option to open explorer view in presentation mode

  • Various minor fixes


You can download the latest version from the ArcGIS.com page or from Github.


Thanks for all the feedback!
0 Kudos
Esriwebmap
Occasional Contributor
Greetings all,

I have just become aware of the existence of the 1.4 version of the Public Maps Gallery template.  One thing that I have noticed in version 1.3.1 a couple of days ago, and that still has not been pointed out, as far as I know is that the maps don't propagate their watermarks!  So if I have a look at a map within ArcGIS Online which contains a basemap such as OSM, I see the following:
[ATTACH=CONFIG]11873[/ATTACH]
However, in the map gallery for the same map there is no copyright watermark.  How can this be resolved?

Many thanks in advance.


Hi Miguel,

The ArcGIS Online development team is aware of this issue and has identified it as a future enhancement. The timing hasn�??t been established.

Thank you
0 Kudos
DavidZiff
Deactivated User
Here are the beginnings of our site:

http://www.bexar.org/maps

Is there any way to control the order the maps are listed? 

Thanks again, DZ
0 Kudos
Esriwebmap
Occasional Contributor
Here are the beginnings of our site:

http://www.bexar.org/maps

Is there any way to control the order the maps are listed? 

Thanks again, DZ


Hey David,

Looks good! Yes, you can change that in the optional settings.

// FIELD TO ORDER YOUR GROUP BY
pmgConfig.sortField = 'uploaded'; // SORTING COLUMN= The allowed field names are title, uploaded, type, owner, avgRating, numRatings, numComments and numViews. Default: 'uploaded'.
0 Kudos
DavidZiff
Deactivated User
k - Thanks!
0 Kudos
MiguelParedes
Esri Contributor
We'll take that into consideration for the next version. You should be able to modify the map.html and index.html files and remove the div with the id of "footer". Then you can change the background color of the body/html in the CSS to a different color if you like. That should be it.

Let me know if that works for you.


Greetings again,

Yes, your instructions worked a treat.  However, I have just downloaded the latest version 1.4.1, and you've gents have made life much easier!  The option for "hiding" the footer with a single flag is much better than having to modified (comment out) code. And this is just one of the many other flags to enable /disable functionality. So many thanks for making a great app even better.

Keep the improvements coming.
Miguel
0 Kudos