Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video 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 727 to 733

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 21st April 2021 18:35 Europe/London time based on the source file dated 29th March 2021 15:05 Europe/London time.