Leaflet : markers based on attributes

25 Aufrufe
Direkt zur ersten ungelesenen Nachricht

Alex

ungelesen,
02.11.2016, 12:27:1302.11.16
an Leaflet
Hello,
I'm a new user of Leaflet.
I'm trying to create a Leaflet map with a lot of markers (1000) based on attributes.
My javascript data files is :

var data = [
[50.1053,1.83528,1],
[48.5167,1.83556,5],
[48.7256,2.42111,1],
[46.2789,6.72194,4],
....
[48.7847,1.43917,8],
[48.6369,7.09667,6],
[46.834,6.405,2]
];


The first column is latitude, the second is longitude and the third is a number which is associated to a marker. 1 = marker1 ; 2 = marker2; 3 =marker3...
How to automate the position of the 1000 icons on the map according to their attributes ?

Many thanks for your help !
Good evening !
Allen antworten
Antwort an Autor
Weiterleiten
0 neue Nachrichten