Piwigo / piwigo-openstreetmap

OpenStreetMap integration for Piwigo
http://piwigo.org/ext/extension_view.php?eid=701
GNU General Public License v3.0
35 stars 35 forks source link

Add the ability to auto center/zoom the map #78

Closed joubu closed 8 years ago

joubu commented 8 years ago

The "autocenter" behavior was only active for the map displayed on the category and main pages. This patch adds an option "Auto center" in the left menu configuration to use this behavior as well where it could be useful.

Note that this patch also set the default value '0,0' for the center parameter. Prior to this patch, if it was not filled (empty string), there was no default value, which caused some errors to be displayed in the html ("Notice: Undefined variable: center_arr in ...")

xbgmsharp commented 8 years ago

Thanks