The simpler media website CMS
Despite this error, the map works fine (it seems I have all my geotaggued pictures in the map).
Map display error
The GoogleMap plugin map display script has received a corrupt Map parameter. This is most likely caused by URL character limitations from your browser. For information on URL limits visit What is the maximum length of a URL.
You can try a different browser or contact the site manager for assistance.
If you are the manager of this site you can try the following:
Reduce the number of points being displayed
Reduce the text passed as the description of each point
Truncate the titles of the points
Comments
Sorry I don't know about this issue and if it works enabled properly just do that.
It might be possible to find all the variables that are used globally and declare them global in you codeblock. But that seems overkill. Better would be to test if the plugin is enabled and only make the code call if it is.
sometimes, loading of google script takes a lot of time, and I am thinking about solutions to use googlemap only on one page (called map page), to see all my geotaggued pictures on one place.
to do that, I saw 2 solutions:
- enable googlemap plugin and modify my code to not call googlemap (only in albums pages).
but scripts are loaded everytime even if not required
- disable googlemap plugin and invoke it in my map page. but it causes error message as described.
and in fact, there is the way suggested by fretzl, that I have never tested :-(
Have you tried the openstreetmap plugin instead? It offers the same functionality actually and loads far less scripts and nothing external besides the map tiles.
There is an example plugin named `headConsolidator` that you could adapt for this.
But is loading these scripts really the issue? As Acrylian has said, they do get cached by the browser (and maybe even the server.)
`
<?php
if ( !( (($_zp_gallery_page == 'pages.php') && ((getPageTitleLink() == 'map')) ) || ($_zp_gallery_page == 'album.php')) ) {
zp_remove_filter('theme_head', 'GoogleMap::js');
}
zp_apply_filter('theme_head');
?>
`
with that, googlempa js are only allowed on albums pages (where google map plugin is used) and on my specific page where are displayed all my geotaggued pictures.
it works fine for me.
tks!
I can't delete the post