Coding standards
Security in ResourceSpace
Developer reference
Database
Action functions
Admin functions
Ajax functions
Annotation functions
API functions
Collections functions
Comment functions
Config functions
CSV export functions
Dash functions
Debug functions
Encryption functions
Facial recognition functions
File functions
General functions
Language functions
Log functions
Login functions
Message functions
Migration functions
Node functions
PDF functions
Plugin functions
Render functions
Reporting functions
Request functions
Research functions
Slideshow functions
Theme permission functions
User functions
Video functions
Database functions
Metadata functions
Resource functions
Search functions
Map functions
Job functions
Tab functions
Test functions

get_geo_maps_scripts()

Description

Outputs the script tag for including additional Leaflet plugins.

This function loads the necessary JavaScript for the Leaflet Marker Cluster library, which helps in managing
large sets of markers on Leaflet maps by clustering them for better visualization.

Parameters

This function accepts no parameters.

Return

void Outputs the script tag for the Marker Cluster plugin.

Location

include/map_functions.php lines 820 to 826

Definition

 
function get_geo_maps_scripts()
    {
    global 
$baseurl;
    
?>
    <script src=" echo $baseurl?>/lib/leaflet_plugins/leaflet-markercluster-1.4.1/dist/leaflet.markercluster.min.js"></script>
    
    
}

This article was last updated 17th November 2024 15:05 Europe/London time based on the source file dated 7th November 2024 17:40 Europe/London time.