Hi
I’m using Leaflet 0.7
I get some Markers with Ajax to display on the map.
Works fine.
But I want each marker draggable.
Can I define this on import - in the datafile?
The Datafile looks like:
{"type": "FeatureCollection",
"features": [{
"type": "Feature",
"id": 6,
"properties": {
"draggable":"true",
"Location":"Location6",
"LOCATION_STREET_NAME":"LOCATION_STREET_NAMEiiii",
"OPEN_DT":"OPEN_DT6"
},
"geometry": {
"type": "Point",
"coordinates": [ 11.3,47.3]
},
"draggable": "true"
},{
"type": "Feature",
"id": 7,
"properties": {
"draggable":"true",
"Location":"Location7",
"LOCATION_STREET_NAME":"LOCATION_STREET_NAMEfffffffffffffff",
"OPEN_DT":"OPEN_DT7"
},
"geometry": {
"type": "Point",
"coordinates": [ 11.35,47.25]
},
"draggable": "true"
}]}
I import this File with:
L.geoJson(data).addTo(map);
Thank you.