diff --git a/templates/map/initOpenStreetMap.js b/templates/map/initOpenStreetMap.js index 5f51866b..37750b3e 100644 --- a/templates/map/initOpenStreetMap.js +++ b/templates/map/initOpenStreetMap.js @@ -20,8 +20,14 @@ function mapCreate(div_id, center_lat, center_lng, map_type, zoom) { }).addTo(map); // rider marker layer group + // .addTo(map) --> this will display your riders by default var ridersLayerGroup = L.layerGroup().addTo(map); + // this little snippet will not display your riders by default. + // Instead, a toggle button will display in the map, with a checkbox with text Riders. + // Check that to display the riders + //var ridersLayerGroup = L.layerGroup(); + $.ajax({ url: '{{ path('rider_locations') }}', }).done(function(response) {