Skip to content

Commit 1552910

Browse files
committed
Name markers uniformly
1 parent 9983a16 commit 1552910

File tree

8 files changed

+14
-14
lines changed

8 files changed

+14
-14
lines changed

app/assets/javascripts/index/layers/notes.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ OSM.initializeNotesLayer = function (map) {
55

66
const noteIcons = {
77
"new": L.icon({
8-
iconUrl: OSM.NEW_NOTE_MARKER,
8+
iconUrl: OSM.MARKER_NOTE_NEW,
99
iconSize: [25, 40],
1010
iconAnchor: [12, 40]
1111
}),
1212
"open": L.icon({
13-
iconUrl: OSM.OPEN_NOTE_MARKER,
13+
iconUrl: OSM.MARKER_NOTE_OPEN,
1414
iconSize: [25, 40],
1515
iconAnchor: [12, 40]
1616
}),
1717
"closed": L.icon({
18-
iconUrl: OSM.CLOSED_NOTE_MARKER,
18+
iconUrl: OSM.MARKER_NOTE_CLOSED,
1919
iconSize: [25, 40],
2020
iconAnchor: [12, 40]
2121
})

app/assets/javascripts/index/new_note.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ OSM.NewNote = function (map) {
88

99
const noteIcons = {
1010
"new": L.icon({
11-
iconUrl: OSM.NEW_NOTE_MARKER,
11+
iconUrl: OSM.MARKER_NOTE_NEW,
1212
iconSize: [25, 40],
1313
iconAnchor: [12, 40]
1414
}),
1515
"open": L.icon({
16-
iconUrl: OSM.OPEN_NOTE_MARKER,
16+
iconUrl: OSM.MARKER_NOTE_OPEN,
1717
iconSize: [25, 40],
1818
iconAnchor: [12, 40]
1919
}),
2020
"closed": L.icon({
21-
iconUrl: OSM.CLOSED_NOTE_MARKER,
21+
iconUrl: OSM.MARKER_NOTE_CLOSED,
2222
iconSize: [25, 40],
2323
iconAnchor: [12, 40]
2424
})

app/assets/javascripts/index/note.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ OSM.Note = function (map) {
44

55
const noteIcons = {
66
"new": L.icon({
7-
iconUrl: OSM.NEW_NOTE_MARKER,
7+
iconUrl: OSM.MARKER_NOTE_NEW,
88
iconSize: [25, 40],
99
iconAnchor: [12, 40]
1010
}),
1111
"open": L.icon({
12-
iconUrl: OSM.OPEN_NOTE_MARKER,
12+
iconUrl: OSM.MARKER_NOTE_OPEN,
1313
iconSize: [25, 40],
1414
iconAnchor: [12, 40]
1515
}),
1616
"closed": L.icon({
17-
iconUrl: OSM.CLOSED_NOTE_MARKER,
17+
iconUrl: OSM.MARKER_NOTE_CLOSED,
1818
iconSize: [25, 40],
1919
iconAnchor: [12, 40]
2020
})

app/assets/javascripts/osm.js.erb

+3-3
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ OSM = {
3939
MARKER_ICON_2X: <%= image_path("leaflet/dist/images/marker-icon-2x.png").to_json %>,
4040
MARKER_SHADOW: <%= image_path("leaflet/dist/images/marker-shadow.png").to_json %>,
4141

42-
NEW_NOTE_MARKER: <%= image_path("new_note_marker.svg").to_json %>,
43-
OPEN_NOTE_MARKER: <%= image_path("open_note_marker.svg").to_json %>,
44-
CLOSED_NOTE_MARKER: <%= image_path("closed_note_marker.svg").to_json %>,
42+
MARKER_NOTE_NEW: <%= image_path("marker-note-new.svg").to_json %>,
43+
MARKER_NOTE_OPEN: <%= image_path("marker-note-open.svg").to_json %>,
44+
MARKER_NOTE_CLOSED: <%= image_path("marker-note-closed.svg").to_json %>,
4545

4646
apiUrl: function (object) {
4747
const apiType = object.type === "note" ? "notes" : object.type;

app/views/notes/index.html.erb

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@
4141
<tr<% if note.author == @user %> class="table-primary"<% end %>>
4242
<td>
4343
<% if note.closed? %>
44-
<%= image_tag("closed_note_marker.svg", :alt => "closed", :width => 25, :height => 40) %>
44+
<%= image_tag("marker-note-closed.svg", :alt => "closed", :width => 25, :height => 40) %>
4545
<% else %>
46-
<%= image_tag("open_note_marker.svg", :alt => "open", :width => 25, :height => 40) %>
46+
<%= image_tag("marker-note-open.svg", :alt => "open", :width => 25, :height => 40) %>
4747
<% end %>
4848
</td>
4949
<td><%= link_to note.id, note %></td>

0 commit comments

Comments
 (0)