Showing posts from July, 2011

100th Post...

I’m so excited that I have finally reached this milestone. Well I am not completely certain that this is a big deal but anything that is '100' just seems big and grand. I have been blogging here for around 8 months now, and it gives me immense pleasure to say that now I have become an experienced blogger.:D

            I never thought when I started this blog in November, 2010 that I would have much to offer compared to the hundreds of other GIS bloggers out there. But today with more than 21,000 page views, more than 100 comments, more than 100 followers and several Like and +1s the response to this blog has been nothing short of amazing. Now the next target for me would be to cross 50,000 views.

            At the end, I would  like to thank all visitors and members for making this blog successful. I am so happy to have readers such as you. Thank you all who have been reading. If you are a regular reader, or if you just dropped in today, do comment and t…

Spherical Cap

In some of the earlier posts, I have shown some examples related to creating Polygons and Polylines on the Google Map using the Google Maps API v3. In addition to this generic polygon class, the Javascript Google Maps API also includes a specific class for Circle to simplify its construction. In today’s example, I am going to show you how to generate a circle or a spherical cap on the map.
    A Circle is similar to a Polygon in that you can define custom colors, weights, and opacities for the edge of the circle (the "stroke") and custom colors and opacities for the area within the enclosed region (the "fill"). Colors should be indicated in hexadecimal numeric HTML style.
    Unlike a Polygon, you do not define paths for a Circle; instead, a circle has two additional properties which define its shape:  Center: Specifies the center of the circle using google.maps.LatLng Radius: Specifies the radius of the circle in meters.     Let us now have a look at the co…

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.