Posts

Showing posts from February 21, 2019

Leaflet Map not fully loaded when i open inspect element it will load fully

Image
0 Below is the function which call on onclick event function drawMapFromWms(latt,longt){ document.getElementById('hrymap').innerHTML = ""; document.getElementById('hrymap').innerHTML = "<div id='map'></div>"; map = L.map('map').setView([29.0,76.776695], 8); L.tileLayer.wms("http://example.com", { layers:'india3', format: 'image/png', transparent: true, attribution:"dummy" }).addTo(map); L.tileLayer.wms("http://example.com", { layers:'hrcm_roads', format: 'image/png', transparent: true, attribution:"dummy" }).addTo(map);