Blogspot - apitricks.blogspot.com - Google Maps API tricks

Latest News:

Zoom tooltip hack 9 May 2011 | 01:06 pm

Average users don't care about zoom level numbers, but some people do. Developers do. I created a 'semihidden' zoom level display for my pages. Google provides hints like "zoom in" and "zoom out" if ...

Distance Matrix 6 May 2011 | 01:27 pm

Distance Matrix service was introduced in the latest update of v3 API. It returns maximum 100 driving distances and durations by a single request. Reference. All of you who have a store locator, can ...

Quadtree 29 Apr 2011 | 01:32 pm

Quadtree is a powerful spatial indexing technique. Wikipedia. Every now and then I been thinking to implement a collision detect function using quadtree. Playing with quadtrees is so fascinating that...

Category sidebar - there is no sense without priority 15 Mar 2011 | 07:45 am

Thanks for many of you that been applying the category sidebar script I wrote a long time ago for v2. Sure It works on desktop but what happens if all the entries don't fit in the limited viewport of ...

v3 Marker z-index, the way I thought it was 11 Dec 2010 | 03:12 pm

The way it is Marker.getZindex() returns 'undefined' if you did not set any value for it. Looking under the hood reveals that actually there is a latitude dependent value set for the marker DOM eleme...

Automatic API v3 reference 17 Oct 2010 | 06:16 am

I have a test page that analyzes contents of google.maps namespace. I've had it for a long time. The trouble was that controlling the version needed some hackery with v3. Now when the version control ...

Circle in v3 28 Apr 2010 | 12:43 pm

Circle object of v3 creates a circular overlay as expected. It is more useful than I first thought. If you want to zoom your map to show an area of say 50 km radius, that would mean some maths. Creat...

Custom icons 22 Feb 2010 | 05:13 pm

Just discovered a custom icon collection project on Google Code. There are more than 900 icons this far. It would be nice if those were provided in sprite format. Happily there are sprite-making serv...

clearOverlays() in V3 9 Feb 2010 | 02:23 pm

There is no clearOverlays() in API v3. Some practices have been presented. I think this is the simpliest so far. Push all the overlays in an array when created (as usual). Following code will clear b...

Rectangle() and Circle() of V3 9 Feb 2010 | 02:00 pm

API v3.28 has new constructors new google.maps.Rectangle(); new google.maps.Circle(); Dimensioning and positioning is set by bounds (Rectangle) or by center and radius (Circle). Circle radius i...

Recently parsed news:

Recent searches: