set_geo_map_centerview()

Description

Set bounds for default map view (geo_search.php and geo_edit.php)

Parameters

This function accepts no parameters.

Return

void

Location

include/map_functions.php lines 772 to 778

Definition

 
function set_geo_map_centerview()
{
    global 
$geolocation_default_bounds;
    
$centerparts explode(","$geolocation_default_bounds);
    echo 
"\n    mapcenterview= L.CRS.EPSG3857.unproject(L.point(" $centerparts[0] . "," $centerparts[1] . "));\n";
    echo 
"mapdefaultzoom = " . (int)$centerparts[2] . ";\n";
}

This article was last updated 16th July 2025 20:35 Europe/London time based on the source file dated 20th January 2025 16:40 Europe/London time.