Note: API v2.148 is not yet live. It's possible that the code may be
changed before it goes live. It's not a good idea to use pre-release
versions for live sites.

New Class

  GLanguage

New Static Methods

  GLanguage.getLanguageCode()
  GLanguage.isRtl()

New Methods

  GProjection.getNearestImage(pixel,zoom,centrepixel)
  GMercatorProjection.getNearestImage(pixel,zoom,centrepixel)

New Events
  nextpointgone
  nextpointmoved
  visibletilesloaded


There seems to be something rather odd happening with the external
module handling for GDirections, StreetView and transitlyr code, but I
can't work out exactly what.


GLanguage.getLanguageCode() returns the active host language, or "en"
if no host language was specified.

GLanguage.isRtl() returns true if the host language reads right-to-
left.

GProjection.getNearestImage(pixel,zoom,centrepixel) can be used to
deal with the wrapping of locations when you pass the international
date line.
The "centrepixel" is the centre pixel of primary copy of the map, i.e.
the one on which the overlays are displayed.
getNearestImage() modifies pixel.x so that it is now on the primary
copy of the map.
getNearestImage() returns the number of map-widths that were added to
pixel.x.

If you're writing a custom GProjection, then you don't need to write
your own GProjection.getNearestImage() as long as your .getWrapWidth
(zoom) bahaves correctly.
The default behaviour is for the API to implement getNearestImage()
for you, by using your .getWrapWidth().

I believe that the "nextpointgone" and "nextpointmoved" are used in
polygon editing, and are probably not accessible.

The "visibletilesloaded" event can be thrown before the "tilesloaded"
event.
The API requests the tiles in an order that spirals outwards from the
map centre, so the tiles in the visible region usually finish loading
before the tiles just outside the visible region.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to