Collections functions
General functions
Node functions
Render functions
Theme permission functions
User functions
Resource functions

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 715 to 721

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 19th March 2024 10:05 Europe/London time based on the source file dated 15th March 2024 17:00 Europe/London time.