provide faction colored icons for leaflet markers
This commit is contained in:
parent
acd775f65e
commit
9728840715
@ -249,6 +249,14 @@ function boot() {
|
||||
|
||||
console.log('loading done, booting');
|
||||
window.runOnSmartphonesBeforeBoot();
|
||||
|
||||
// overwrite default Leaflet Marker icon to be a neutral color
|
||||
var base = 'http://breunigs.github.com/ingress-intel-total-conversion/dist';
|
||||
L.Icon.Default.imagePath = base + '/images';
|
||||
|
||||
window.iconEnl = L.Icon.extend({options: { iconUrl: 'marker-green.png' } });
|
||||
window.iconRes = L.Icon.extend({options: { iconUrl: 'marker-blue.png' } });
|
||||
|
||||
window.setupStyles();
|
||||
window.setupMap();
|
||||
window.setupGeosearch();
|
||||
|
BIN
images/marker-blue.png
Normal file
BIN
images/marker-blue.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
BIN
images/marker-blue@2x.png
Normal file
BIN
images/marker-blue@2x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.9 KiB |
BIN
images/marker-green.png
Normal file
BIN
images/marker-green.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
BIN
images/marker-green@2x.png
Normal file
BIN
images/marker-green@2x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.6 KiB |
Loading…
x
Reference in New Issue
Block a user