I had a function to fill google maps in my html page and I call function
popUpLoadingScreen()
{
$("#mapLoadingUIId").css("display","block");
}
function dismissLoadingScreen()
{
$("#mapLoadingUIId").css("display", "none");
}
to show loading message while the markers rendered on the map but it didn't appear, and when I put a break point to know what's the problem the sign appears but in the normal run it doesn't appear so I what to know where is the problem?
the HTML part:
<div id="mapLoadingUIId" class="mapLoadingUI">
Loading...
</div>
<div id="map" class="mapBody"></div>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyASTMSvPns7Zclg5dAGYTMQgtwia5nQy0M&callback=initMap"></script>
The css part:
.mapLoadingUI {
display:none;
position: fixed;
left: 324px;
top: 48px;
min-width: 1500px;
min-height: 100px;
z-index: 9999;
background-color:#87cefa;
z-index:1000;
text-align:center;
line-height: 100px;
font-family: Arial;
font-size: 14px;
font-weight: 500;
font-style: normal;
font-stretch: normal;
}
The js that call the functions:
function renderWells(wells) {
popUpLoadingScreen();
//some code to run
dismissLoadingScreen();
}