diff --git a/static/def.png b/static/def.png index b1a2a13..2bf392a 100644 Binary files a/static/def.png and b/static/def.png differ diff --git a/static/green.png b/static/green.png new file mode 100644 index 0000000..413a237 Binary files /dev/null and b/static/green.png differ diff --git a/static/invi.png b/static/invi.png index ee96642..f0c9940 100644 Binary files a/static/invi.png and b/static/invi.png differ diff --git a/static/orange.png b/static/orange.png new file mode 100644 index 0000000..4992c91 Binary files /dev/null and b/static/orange.png differ diff --git a/static/purple.png b/static/purple.png new file mode 100644 index 0000000..2e97d9c Binary files /dev/null and b/static/purple.png differ diff --git a/static/track.png b/static/track.png index 5acc717..3785c3f 100644 Binary files a/static/track.png and b/static/track.png differ diff --git a/static/utils.js b/static/utils.js index 76aad4c..9b5515a 100644 --- a/static/utils.js +++ b/static/utils.js @@ -8,28 +8,24 @@ var id = -1; var names = []; var colors = []; var markers = []; + +var CircleIcon = L.Icon.extend({ + options: { + iconSize: [20, 20], + iconAnchor: [10, 10], + popupAnchor: [0, 0] + } +}); + var icons = [ - L.icon({ - iconUrl: 'def.png', - iconSize: [10, 10], - iconAnchor: [5, 5], - popupAnchor: [5, 5] - }), - L.icon({ - iconUrl: 'track.png', - iconSize: [10, 10], - iconAnchor: [5, 5], - popupAnchor: [5, 5] - }) + new CircleIcon({ iconUrl: 'def.png' }), + new CircleIcon({ iconUrl: 'track.png' }), + new CircleIcon({ iconUrl: 'purple.png' }), + new CircleIcon({ iconUrl: 'green.png' }), + new CircleIcon({ iconUrl: 'orange.png' }) ]; var self_icons = icons; -var self_invisible = - L.icon({ - iconUrl: 'invi.png', - iconSize: [10, 10], - iconAnchor: [5, 5], - popupAnchor: [5, 5] - }); +var self_invisible = new CircleIcon({ iconUrl: 'invi.png' }); ////////////////////////////////////////////////////////////////////////////// // INIT MAP