Skip to content

Commit 0d339d4

Browse files
committed
Clean up old markers
1 parent cdc0490 commit 0d339d4

9 files changed

+0
-82
lines changed

app/assets/images/closed_note_marker.svg

-19
This file was deleted.

app/assets/images/marker-blue.png

-1.48 KB
Binary file not shown.

app/assets/images/marker-green.png

-1.43 KB
Binary file not shown.

app/assets/images/marker-red.png

-1.43 KB
Binary file not shown.

app/assets/images/marker-yellow.png

-1.43 KB
Binary file not shown.

app/assets/images/new_note_marker.svg

-15
This file was deleted.

app/assets/images/open_note_marker.svg

-19
This file was deleted.

app/assets/javascripts/leaflet.map.js

-17
Original file line numberDiff line numberDiff line change
@@ -356,23 +356,6 @@ L.OSM.Map = L.Map.extend({
356356
}
357357
});
358358

359-
L.Icon.Default.imagePath = "/images/";
360-
361-
L.Icon.Default.imageUrls = {
362-
"/images/marker-icon.png": OSM.MARKER_ICON,
363-
"/images/marker-icon-2x.png": OSM.MARKER_ICON_2X,
364-
"/images/marker-shadow.png": OSM.MARKER_SHADOW
365-
};
366-
367-
L.extend(L.Icon.Default.prototype, {
368-
_oldGetIconUrl: L.Icon.Default.prototype._getIconUrl,
369-
370-
_getIconUrl: function (name) {
371-
const url = this._oldGetIconUrl(name);
372-
return L.Icon.Default.imageUrls[url];
373-
}
374-
});
375-
376359
OSM.isDarkMap = function () {
377360
const mapTheme = $("body").attr("data-map-theme");
378361
if (mapTheme) return mapTheme === "dark";

app/assets/javascripts/osm.js.erb

-12
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,6 @@ OSM = {
2929

3030
LAYER_DEFINITIONS: <%= MapLayers::full_definitions("config/layers.yml", :legends => "config/key.yml").to_json %>,
3131

32-
MARKER_BLUE: <%= image_path("marker-blue.png").to_json %>,
33-
MARKER_GREEN: <%= image_path("marker-green.png").to_json %>,
34-
MARKER_RED: <%= image_path("marker-red.png").to_json %>,
35-
36-
MARKER_ICON: <%= image_path("leaflet/dist/images/marker-icon.png").to_json %>,
37-
MARKER_ICON_2X: <%= image_path("leaflet/dist/images/marker-icon-2x.png").to_json %>,
38-
MARKER_SHADOW: <%= image_path("leaflet/dist/images/marker-shadow.png").to_json %>,
39-
40-
NEW_NOTE_MARKER: <%= image_path("new_note_marker.svg").to_json %>,
41-
OPEN_NOTE_MARKER: <%= image_path("open_note_marker.svg").to_json %>,
42-
CLOSED_NOTE_MARKER: <%= image_path("closed_note_marker.svg").to_json %>,
43-
4432
MARKER_COLORS: <%= MARKER_COLORS.to_json %>,
4533

4634
apiUrl: function (object) {

0 commit comments

Comments
 (0)