Leaflet marker is not displaying

المشرف العام

Administrator
طاقم الإدارة
I am currently having slight problem on displaying marker in the leaflet. I have used the following codes on displaying marker and map, however the map is displaying flawlessly but the marker is invisible. I have also tried worldCopyJump true but no help.

var map = new L.Map('map', { center: [0, 0], zoom: 3, layers: [new L.tileLayer('http://localhost:8080/1.0.0/osm/{z}/{x}/{y}.png',{tms: true})] }); var marker = L.marker([85.29009, 27.69545]).addTo(map); //following also won't work //var marker = L.marker([85.29009, 27.69545]); //map.addLayer(marker); Any help would be much appreciated.



أكثر...
 
أعلى