![]() |
|
improvement of googleMap plugin - 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: improvement of googleMap plugin (/thread-10875.html) |
improvement of googleMap plugin - vincent3569 - 2013-02-24 Hi, I am trying to to some improvement of googleMap plugin. In order to do that, I have some questions: 1/ you replace ',' by '.' in exifs data 3 times in the plugin :
with 3 times ? the first one in googleMap.php seems to be enough , don't you think ? 2/in googleMap.php, function getGeoCoord() $lat_f = round((float) abs($lat_c[0])+$lat_c[1]/pow(10,strlen($lat_c[1])),5);
3/ in googleMap.php, function getGeoCoord() improvement of googleMap plugin - vincent3569 - 2013-02-28 hi, I have created an issue on github (https://github.com/zenphoto/zenphoto/issues/238) to improve googleMap plugin. In a first time, I wished to have a better behaviour when a lot of photos have a close location. In that case, display only a single pin, and after a clic on the pin, allows to navigate between thumbnails in the info windows. Sbillard has made some improvements to enable clustering of pictures. On my side, I have a look on the Net and I have found an interesting library OverlappingMarkerSpiderfier which enables to separate near Markers. I have tried to implement that library with existing plugin but the google map api v3 class is a headhach and is very bad coded (I am not an php expert, but many part of the code are unreadable and ununderstandable...) So I sought for another google map api v3 class and I have rewrited the plugin. There are some improvements with this new release :
sbillard andacrylian, I hope you will be interested by this rewrite of the plugin and it will replace existing one. you can see it in action here : how should I do to give you this plugin ? improvement of googleMap plugin - sbillard - 2013-02-28 You could make the plugin available on GitHub for evaluation. Is it a direct replacement for the current plugin? That is, can a user simply select your plugin in place of the current Zenphoto one? improvement of googleMap plugin - vincent3569 - 2013-02-28 I've coded as a replacement of actual googleMap plugin (in zp-core/zp-extention), for zenphoto 1.4.5 release (but it works with 1.4.4.x). I closely followed the existing code (I reproduce functions, and the map file with colorbox option). There are some strings added or modified to traduct. The only thing I have not managed to do is use the parameter "callback". Of course, for replacement of existing official plugin, there should be some code revue by you, and some tests by multiple users (everything works well for me on the current version 1.4.5). If you are OK, you could reopen the existing ticket on github and then I will add zip file with the plugin files. improvement of googleMap plugin - acrylian - 2013-02-28 I think you cannot attach any files to tickets except images. Do you have a GitHub account? If so upload it as a repository so we can test it. improvement of googleMap plugin - vincent3569 - 2013-02-28 I do not quite understand the functioning of github but I got to create a repository for the new version of the plugin : let me know... improvement of googleMap plugin - acrylian - 2013-02-28 Yes, GitHub is a bit abstract, inconvenient and inintuitive but a nice tools. A repository like that is what we meant. That way we can test it (specifially sbillard as I have no geotagged photos at all). improvement of googleMap plugin - sbillard - 2013-02-28 You should create a new ticket. Technically you would do a pull request on your code, but maybe just include that link in your issue ticket. We would not include this in 1.4.4.x, so keep the repository in case someone wants to use it on that release. improvement of googleMap plugin - vincent3569 - 2013-02-28 sbillard, improvement of googleMap plugin - sbillard - 2013-02-28 No, as I said, this should be a new issue on GitHub. You can do that yourself. This is a new capability not at all the same as the original request so it is not appropriate to attach it to that request. improvement of googleMap plugin - vincent3569 - 2013-03-01 thanks to have accepted my re-implementation of the googleMaps plugin. a new feature of this plugin could be the following : the scenario to implement this new feature : Quote:- in the JS configuration of MarkerClusterer : |