Skip to content

Commit

Permalink
HDX-10036 configuring attribution
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandru-m-g committed Jul 31, 2024
1 parent 0744713 commit fa96652
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ckanext-hdx_theme/ckanext/hdx_theme/fanstatic/shape-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,12 @@
*/
function initMap() {
const map = options.map;
map.addControl(new maplibregl.AttributionControl({}), 'top-right');
const customAttributionConfig = {
compact: true,
customAttribution: '<a href="https://www.maplibre.org/" target="_blank">MapLibre</a>' +
' | <a href="https://www.mapbox.com/about/maps/" target="_blank">Mapbox</a>'
};
map.addControl(new maplibregl.AttributionControl(customAttributionConfig), 'top-right');
map.addControl(new maplibregl.NavigationControl({ showCompass: false }), 'top-left');
map.scrollZoom.disable();
map.dragRotate.disable();
Expand Down

0 comments on commit fa96652

Please sign in to comment.