Add snippet and comments that will not display the riders by default. #270

This commit is contained in:
Korina Cordero 2019-12-16 05:24:02 +00:00
parent fdf6861819
commit 8bbe245ce9

View file

@ -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) {