Map Loading...

    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!

Popular posts from this blog

Where does Google get it's live traffic data from?

jQuery Mobile's Next Big Step

Geodesic Polyline