Skip to content

Commit b17182c

Browse files
committed
Merge pull request #94 from joubu/issue_93
Fix #93: Do not autocenter if params are passed in the url
2 parents 14f58e8 + bd86baa commit b17182c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/functions_map.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ function osm_get_js($conf, $local_conf, $js_data)
520520
}
521521
$js .= "\nif (typeof L.MarkerClusterGroup === 'function')\n";
522522
$js .= " " . $divname . ".addLayer(markers);\n";
523-
if ( $autocenter ) {
523+
if ( $autocenter and !isset($_GET['center_lat']) and !isset($_GET['center_lng']) and !isset($_GET['zoom']) ) {
524524
$js .= "var group = new L.featureGroup(MarkerClusterList);";
525525
$js .= "this." . $divname . ".whenReady(function () {
526526
window.setTimeout(function () {

0 commit comments

Comments
 (0)