Posts

Showing posts with the label Google Maps

[Google Maps v3] Get Rectangle area with computeArea

Been searching for ways to calculate rectangle area with google.maps.geometry.spherical.computeArea(), but hard to find. Here's the snippet of the code I found on stackoverflow . Hope this helps those who are looking for the ways to use computeArea() without resolving to ugly/complex self-created methods. :)

Google Maps CSS not displaying correctly (when using Twitter Bootstrap)

Image
The image of the zoom Control Set tools were distorted after introducing Twitter Bootstrap Was wondering why the Google Maps Control Set tools works displaying correctly on standalone page but not when the same snippet pasted in my project site. Took me a while to figure out its because of Twitter Bootstrap CSS interfering with Google Maps images. The simple workaround was posted in  Twitter Bootstrap Github Issue . <style type="text/css"> /** FIX for Bootstrap and Google Maps Info window styes problem **/ img[src*="gstatic.com/"], img[src*="googleapis.com/"] { max-width: none; } </style> Hope this helps! :)