ajouté images marqueurs, ajouté 3 couleurs PNJ

This commit is contained in:
Sylvain Gay 2022-09-14 15:48:08 +02:00
parent 1c5979dc14
commit 1e11255997
7 changed files with 15 additions and 19 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.9 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
static/green.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
static/orange.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
static/purple.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 590 B

After

Width:  |  Height:  |  Size: 1.2 KiB

View file

@ -8,28 +8,24 @@ var id = -1;
var names = []; var names = [];
var colors = []; var colors = [];
var markers = []; var markers = [];
var CircleIcon = L.Icon.extend({
options: {
iconSize: [20, 20],
iconAnchor: [10, 10],
popupAnchor: [0, 0]
}
});
var icons = [ var icons = [
L.icon({ new CircleIcon({ iconUrl: 'def.png' }),
iconUrl: 'def.png', new CircleIcon({ iconUrl: 'track.png' }),
iconSize: [10, 10], new CircleIcon({ iconUrl: 'purple.png' }),
iconAnchor: [5, 5], new CircleIcon({ iconUrl: 'green.png' }),
popupAnchor: [5, 5] new CircleIcon({ iconUrl: 'orange.png' })
}),
L.icon({
iconUrl: 'track.png',
iconSize: [10, 10],
iconAnchor: [5, 5],
popupAnchor: [5, 5]
})
]; ];
var self_icons = icons; var self_icons = icons;
var self_invisible = var self_invisible = new CircleIcon({ iconUrl: 'invi.png' });
L.icon({
iconUrl: 'invi.png',
iconSize: [10, 10],
iconAnchor: [5, 5],
popupAnchor: [5, 5]
});
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
// INIT MAP // INIT MAP