I have a leaflet map that shows nearby loactions based on geolocation. But it takes a few seconds before the map is loaded. Is there a way show Loading... until the map is loaded?
Sorry about the question whitout code, but the problem is solved. Adding this code shows the loading text until the map is loaded!
<div id="mapid" style="width: 100%; height: 500px;"></div>
<script>
document.getElementById('mapid').innerHTML+= "<center>loading...</center>";
...
</script>