Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; GmaLine has a deprecated constructor in /home/pmwiki/pmwiki/cookbook/GoogleMapAPI/GoogleMapAPI.php on line 58

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; GmaMap has a deprecated constructor in /home/pmwiki/pmwiki/cookbook/GoogleMapAPI/GoogleMapAPI.php on line 107

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; GmaPoint has a deprecated constructor in /home/pmwiki/pmwiki/cookbook/GoogleMapAPI/GoogleMapAPI.php on line 164

Warning: Cannot modify header information - headers already sent by (output started at /home/pmwiki/pmwiki/cookbook/GoogleMapAPI/GoogleMapAPI.php:58) in /home/pmwiki/pmwiki/pmwiki.php on line 475

Warning: Cannot modify header information - headers already sent by (output started at /home/pmwiki/pmwiki/cookbook/GoogleMapAPI/GoogleMapAPI.php:58) in /home/pmwiki/pmwiki/pmwiki.php on line 1921
PmWiki | GoogleMapAPI / Map Layer Overlay
Recent Changes - Search:

PmWiki

pmwiki.org

Map Layer Overlay

I'd like to provide an additional layer of pixel information atop the Google map. E.g. I'd like to draw South Africa's mountain chains to it's rather flat Google vector map as colored areas. The api seem to allow this by now, though I don't know how they did it and how comfortable. An additional .png file auto-scaled to the size of the Google map and placed atop it should do the trick ;) Thanks for considering, Axel

  • The Google Map API doesn't offer such feature. You may be thinking of Google Earth, which does allow users to add pictorial overlays, but this is a separate product, providing different features to the Map API. So the short answer is no (unless Google integrate the two in future).
    • Hi, I spent some time @Google map api and found this: http://www.google.com/apis/maps/documentation/#Custom_Overlays It seems to support the well-known vector polylines as well as bitmap objects (such as the marker icons, bubbles, and bubble-shadows). So it seems to me to be well possible to use flat pixel objects as general way to mark parts of a map: "Version 2 of the Maps API introduces the ability to create custom map overlays, like the built-in GMarker and GPolyline overlays, by subclassing the built-in GOverlay class. In this example, we create a Rectangle (albeit vector) overlay that outlines a geographic region on the map." Axel 09.08.2006 PM 01:24
  • Icon support - note, polylines alread available. Planned 2.2.0 BenWilson December 09, 2006, at 10:40 AM

Status:Suggested

Edit - History - Print - Recent Changes - Search
Page last modified on September 10, 2011, at 05:58 PM