Hi Rossko...

I have got to the bottom of it...

As mentioned... that icon used to site as intended but for some reason
now they dont.

I too though that it might have been a problem with the transparent
around the icon png but as that was modeled exactly on the one in
googleearth it should be fine (as it was). The default GE icons also
have a transparency.

As indicated in the illustration of the issue... the old kml files
(created about a year ago) where displaying the icon fine but if I was
to edit and/or resave the kml in GE, then the problem would occur.

Looking in the kml file, I found the line <hotSpot x="0.5" y="0.5"
xunits="fraction" yunits="fraction"/> in the old kml but if I save
that file and then looked in the kml, that reference was not there.

If I display that kml (without that line) the offset issue is there,
putting that line back in and it is displaying as it should (and was).

Here is it illustrated: 
http://www.visitoutbacknsw.com/jmla/touring/sydney/test.html

The reference to hotspot is also made here:
http://code.google.com/intl/nl/apis/kml/documentation/kmlreference.html#iconstyle


So I need to find out how to include that line in the kml..

cheers

On Oct 14, 9:50 pm, Rossko <[email protected]> wrote:
> > 1) what is doing my head in is that the position of the markers is
> > exactly the same...  the only difference is the url location of the
> > icons...
>
> Have you actually looked at the icon images involved?  For 
> example,http://www.visitoutbacknsw.com/jmla/googlemap/pin.png
> is a round thing floating a sea of transparancy, with a good margin to
> the edge of the image.
>
> As described in the threads referenced earlier, GGeoXml always takes
> the anchor as the middle of the bottom edge. (maps.google.com
> effectively uses GGeoXml too).  As a result, that image will appear
> to float above the lat/long it's attached to by a fixed amount of
> pixels.   As you zoom in, a fixed amount of pixels appears to be a
> lesser distance.
>
> What you would 'like' is the centre of the image to be pinned to the
> lat/long, but GGeoXml just doesn't work that way.  If you trim the
> emptiness from your image, it will look better.
--~--~---------~--~----~------------~-------~--~----~
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