Skip to content

Commit

Permalink
Replace Mapbox-based MakiMarkers with local default icon (#1966)
Browse files Browse the repository at this point in the history
Mapbox is no longer free, cf. hbz/nwbib#642
  • Loading branch information
fsteeg committed Feb 27, 2024
1 parent 7214b0f commit 22e0f5f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 112 deletions.
5 changes: 1 addition & 4 deletions web/app/views/tags/items_map.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

<link rel="stylesheet" href="@controllers.routes.Assets.at("stylesheets/leaflet.css")" />
<script src="@controllers.routes.Assets.at("javascripts/leaflet.js")"></script>
<script src="@controllers.routes.Assets.at("javascripts/Leaflet.MakiMarkers.js")"></script>
@*<script type="text/javascript" src="http://maps.stamen.com/js/tile.stamen.js?v1.2.4"></script>*@
<table class="table table-striped table-condensed">
<tr>
Expand Down Expand Up @@ -84,10 +83,8 @@
var lat = @string((json \\ "lat").head)
var lon = @string((json \\ "lon").head)
var latlng@(id) = L.latLng(lat, lon);
var icon@(id) = L.MakiMarkers.icon({icon: "library", color: "#FA820A", size: "m"});
var marker@(id) = L.marker([lat, lon],{
title: "@ownerName (@key)",
icon: icon@(id)
title: "@ownerName (@key)"
});
markers[latlng@(id).toString()] = marker@(id);
bindPopup@(id)(tableDetails);
Expand Down
108 changes: 0 additions & 108 deletions web/public/javascripts/Leaflet.MakiMarkers.js

This file was deleted.

0 comments on commit 22e0f5f

Please sign in to comment.