Skip to content

Commit

Permalink
Map: remove attribution flag and link
Browse files Browse the repository at this point in the history
* Removes flag
* Removes link to Leaflet

Fixes #583
  • Loading branch information
ewlarson committed Apr 15, 2024
1 parent 5e63dca commit 90378b4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/assets/javascripts/geoportal/modules/item.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ Blacklight.onLoad(function() {
// get new viewer instance and pass in element
viewer = new window['GeoBlacklight']['Viewer'][viewerName](element);

// Attribution Prefix
viewer.map.attributionControl.setPrefix('Leaflet');

if($('section.page-sidebar').has('div#static-map').length) {
try {
var geom = $(element).data('map-geom');
Expand Down
3 changes: 3 additions & 0 deletions app/assets/javascripts/geoportal/modules/results.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ Blacklight.onLoad(function() {
// Set document markers
GeoBlacklight.Home.placeMarkers();
GeoBlacklight.Home.setHoverListeners();

// Attribution Prefix
GeoBlacklight.Home.map.attributionControl.setPrefix('Leaflet');
});

function setHoverListeners() {
Expand Down
3 changes: 3 additions & 0 deletions app/assets/javascripts/geoportal/viewers/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ GeoBlacklight.Viewer.Map = GeoBlacklight.Viewer.extend({
// B1G Controls
this.addFullscreenControl();
this.addBasemapSwitcher();

// Attribution Prefix
this.map.attributionControl.setPrefix('Leaflet');
},

/**
Expand Down

0 comments on commit 90378b4

Please sign in to comment.