ionic2 - Leaflet draw Marker from Json Data Ionic 2 -
i want draw markers json data on project on leaflet map
i'm doing way
l.marker([48.840346,2.319415]).addto(map). bindpopup("<b>x<b>"<img style='width: 100%' src='http://i.imgur.com/xmvjs1s.jpg'/></div> ",{minwitdh:256} ");
i have enter info myself, , that's not way want
but have data.json
{ "title": "a", "lat": 48.841491, "long": 2.355989, }, { "title": "b", "lat": 48.878849, "long": 2.312855, },
i want
l.marker([lat,long]).addto(map). bindpopup("<b>title<b>"<img style='width: 100%' src='http://i.imgur.com/xmvjs1s.jpg'/></div> ",{minwitdh:256} ");
to data , render marker on map?
Comments
Post a Comment