ajouté images marqueurs, ajouté 3 couleurs PNJ
BIN
static/def.png
Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 1.2 KiB |
BIN
static/green.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
static/invi.png
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 1.1 KiB |
BIN
static/orange.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
static/purple.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
static/track.png
Before Width: | Height: | Size: 590 B After Width: | Height: | Size: 1.2 KiB |
|
@ -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
|
||||||
|
|