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 817 to 823

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 4th December 2024 08:35 Europe/London time based on the source file dated 22nd November 2024 15:35 Europe/London time.