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 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