Two of my users reported the same problem to me at about the same time that 
az az noticed this.

1.  If Google has intentionally changed how it will parse KML for purposes 
of the Maps API, then has Google documented that change anywhere?

2.  I made this example:

KML file: http://www.mappingsupport.com/p/demo_maps/kml_test_03.kml
Small test map: http://www.mappingsupport.com/p/demo_maps/bondi_13.html

Please zoom out a bunch.

There are 3 markers on the map: red, blue and green.
All 3 markers have the same latlng.

Red marker:  hardcoded in html
Blue marker: in KML file *but no <href> tag specified*
Green marker: in KML *with <href> tag*

The green marker is not in the correct location.  If you zoom in/out the green 
marker remains a fixed
number of *screen pixels* away from the correct location.

3.  If you import the KML file into Plain Old Google Maps (POGM) then the green 
marker is in the correct
 spot.  In fact, in POGM you only see one marker (I forget which one) since the 
blue and green markers
are on top of each other.

4.  Here is the bug report I filed with Google:
http://code.google.com/p/gmaps-api-issues/issues/detail?id=4232&q=apitype%3AJavascript3&sort=-id&colspec=ID%20Type%20Status%20Introduced%20Fixed%20Summary%20Internal%20Stars
At least so far Google has not indicated this is a new 'feature'.
If this issue is important to you, please add your star to this issue.

5.  The KML spec for <hotSpot> says:
"*<hotSpot x="*0.5"* y="0.*5"* xunits="*fraction"* yunits="*fraction"*>*

Specifies the position within the Icon that is "anchored" to the <Point> 
specified in the Placemark. The *x* and *y* values can be specified in 
three different ways: as *pixels* (*"pixels"*), as *fractions* of the icon (
*"fraction"**)*, or as *inset pixels *(*"insetPixels"*), which is an offset 
in pixels* from the upper right corner of the icon*."
Thus, if <hotSpot> is not specified the spec seems to say that the icon 
will be positioned with its "upper right corner" at the latlng.  However, 
that is not how the API KML parser has worked prior to June 22 or 
afterwards.  Assuming your KML includes <href> tags, then prior to ~June 
22nd the middle of the bottom edge of your icon was the default anchor 
point.  After ~June 22 the default anchor point appears to be a *fixed 
number of pixels to the right of the lower right corner* of your icon.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/OT4QT_zfg9oJ.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to