provide faction colored icons for leaflet markers

This commit is contained in:
Stefan Breunig 2013-02-18 12:35:39 +01:00
parent acd775f65e
commit 9728840715
5 changed files with 8 additions and 0 deletions

View File

@ -249,6 +249,14 @@ function boot() {
console.log('loading done, booting'); console.log('loading done, booting');
window.runOnSmartphonesBeforeBoot(); 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.setupStyles();
window.setupMap(); window.setupMap();
window.setupGeosearch(); window.setupGeosearch();

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB