Skip to content

Commit 7e7bf01

Browse files
committed
small attributation button on map
1 parent 526f107 commit 7e7bf01

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/localizable/_map_qualif_centers.html.erb

+2-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@
3939
style: '/js/mapstyle.json', // 'https://demotiles.maplibre.org/style.json', // style URL /js/mapstyle.json
4040
center: [4.4025018, 50.5644843], // [lng, lat]
4141
zoom: 7,
42-
});
42+
attributionControl: false,
43+
}).addControl(new maplibregl.AttributionControl({ compact: true }));
4344
<% data.qualification_centers.select{|x|x.pos}.each do |c| %>
4445
new maplibregl.Marker().setLngLat([ <%= c.pos.lng %> , <%= c.pos.lat %>]).addTo(map);
4546
<% end %>

0 commit comments

Comments
 (0)