Add snippet and comments that will not display the riders by default. #270
This commit is contained in:
parent
fdf6861819
commit
8bbe245ce9
1 changed files with 6 additions and 0 deletions
|
|
@ -20,8 +20,14 @@ function mapCreate(div_id, center_lat, center_lng, map_type, zoom) {
|
||||||
}).addTo(map);
|
}).addTo(map);
|
||||||
|
|
||||||
// rider marker layer group
|
// rider marker layer group
|
||||||
|
// .addTo(map) --> this will display your riders by default
|
||||||
var ridersLayerGroup = L.layerGroup().addTo(map);
|
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({
|
$.ajax({
|
||||||
url: '{{ path('rider_locations') }}',
|
url: '{{ path('rider_locations') }}',
|
||||||
}).done(function(response) {
|
}).done(function(response) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue