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 result section above.
Do let me know what you think about the examples shared here! Do leave your comments here! Till the next example, happy mapping!
Liked it !!! very nice. Thanx :)
ReplyDeleteHi,
ReplyDeleteI think it would also be nice to load a low res picture of the place being Googled, or a picture of the closest location being Googled. The picture would "dissolve" once Google Map has been loaded?
Happy to know that you liked the post Omkar...
ReplyDeleteHi Anonymous,
ReplyDeleteWhat you are suggesting is a very good idea and can definitely be done! Thanx for the idea, I will soon put up an example code for the same.
How Can i put this on my website http://www.couponmania.in/
ReplyDelete