ZenphotoCMS Forum
Google Map plug-in enhancement - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Google Map plug-in enhancement (/thread-6899.html)



Google Map plug-in enhancement - oliverf1 - 2010-04-10

Hi all,

First of all, I would like to thank you all for the excellent work you have done !
I've been using ZP since the 1.1.6 version and still think that's the best gallery.

I'm currently in the process to port all the modifications I have made in my custom 1.2.1 version to 1.2.9.
I'm trying not to modify anything in the zp-core directories in order to facilitate any future upgrade, but I had to modify somethings in the google map plugins and want to share it with you.

Here is the modifications I have done :

  • Add a function hasAlbumMapData
  • Add support for the "GLargeMapControl3D" Map control
  • remove the "windows.onload=showmap()" javascript statement which is incompatible with the "Add Comment" feature
  • Modify the addGeoPoint function to nicely (center) print the description of the image when you click on a marker

The patch is available here : http://oliverf1.free.fr/patch_googlemap_plugin

Feel free to use it if you want !




Google Map plug-in enhancement - sbillard - 2010-04-10

We'll incorporate the changes to phoogle and the centering of the description.

You can make a custom functions.php script for your theme and place the hasAlbumMapData() function there. No need to add it to the Google Maps plugin.




Google Map plug-in enhancement - oliverf1 - 2010-04-10

Now that you have said it, i don't know why i don't think of it by myself !
You are definitely right the hasAlbumMapData() function I have nothing to do in the plugin.
I will move the function out of there.

Thanks for your help.