The blank web page seems so boring and dull when the map is still loading. You will come across such a situation quite often where you will be having a slow internet connection! We cannot do anything about the slow internet connection, but we can surely avoid the dull blank web-page by using a simple trick. We can place a "loading" image at the center of the web page so that the page doesn't look blank! An image like this:
The following code will show you how this can be done and here it is!
As you all can see the code is very very simple and the output will look as seen in the results section above. The image below shows the loading stage of the map.
Do let me know what you think about the examples shared here! Do leave your comments here! Till the next example, happy mapping!
I tried your example.....it worked as you have explained....!!
ReplyDeleteIt loaded as i hit enter....perfect...!!
I liked it...!!!
Also, the detailing , while tried exploring the map....(zoom,etc)..!!
I would like to see more of this...tricks and fun with maps.....!!!
Thank you Prathmesh for your appreciation! Hope you continue enjoying my postings!
ReplyDeleteComments like these keep me going!
Thank you!
Cheers!
There is no onunload="GUnload()" function in version 3
ReplyDeleteYes. Thanx for that info. I know that, just a typo neglect. For all the reader who are reading this post and all other posts in which I have used, GUnload(), please do ignore it and delete that part. It is no more a part of the current API.
ReplyDeleteThanx once again Anonymous...