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