Skip to content

Commit

Permalink
Expose basemap selector by default
Browse files Browse the repository at this point in the history
  • Loading branch information
edent committed Aug 5, 2023
1 parent 37de2dc commit 19c4e4f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion www/src/Twig/AppExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ public function map_javascript( $api="", $api_query="", $lat = "16.3", $long = "
Stadia_Outdoors.addTo(map);
}
L.control.layers(baseMaps).addTo(map);
L.control.layers(baseMaps, null, {collapsed:false}).addTo(map);
// Cluster options
var markers = L.markerClusterGroup({
Expand Down
2 changes: 1 addition & 1 deletion www/templates/add.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ A lot..." required></textarea>
OpenStreetMap_Mapnik.addTo(map);
L.control.layers(baseMaps).addTo(map);
L.control.layers(baseMaps, null, {collapsed:false}).addTo(map);
var marker = L.marker([latitude, longitude], { draggable: true }).addTo(map);
Expand Down
2 changes: 1 addition & 1 deletion www/templates/edit.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
OpenStreetMap_Mapnik.addTo(map);
L.control.layers(baseMaps).addTo(map);
L.control.layers(baseMaps, null, {collapsed:false}).addTo(map);
let url = '/api/bench/{{ benchID }}';
const response = fetch(url).then(response => response.json()).then(response => {
var bench = response.features[0];
Expand Down

0 comments on commit 19c4e4f

Please sign in to comment.