Import KMZ into Google Map works, but Rotation doesnt

802 views
Skip to first unread message

demo_m...@yahoo.de

unread,
Mar 17, 2010, 1:24:10 AM3/17/10
to KML Developer Support - Getting Started with KML
Hello there, greetings from germany. This problem keeps me busy now,
all night long for some hours and i dont have a clue, so thats my last
resort.

I try to put an overlay image in Google Earth, save it as KMZ, and use
it in Google Maps on my Iphone. Its a tactical map, therefor i need it
in Google Earth/Map to have mobile access.

Everything works fine, I save the KMZ after edit the overlay image,
upload it via URL into GoogleMaps (put it on a webhost before), in
Firefox Browser there is no overlay image, I open Google Earth on
Iphone and choose MyMaps, and it zooms to my location and shows me the
overlay image!

The only Problem i have is... the overlay image is not rotated
anymore. Why is that?

Tried to convert the Position into LonLatQuad, but that results in no
overlay image on Iphone.

The *.jpg Image is about 1200x700 big.


Any Ideas on how to fix this problem?

barryhunter (KML Guru)

unread,
Mar 17, 2010, 8:52:08 AM3/17/10
to KML Developer Support - Getting Started with KML
I dont think this is easily solved. Many browsers arent capable of
rotating images, so maps doesnt support it.

I havent used it, but this might prove useful: http://warper.geothings.net/

Nymor

unread,
Mar 17, 2010, 8:54:18 AM3/17/10
to KML Developer Support - Getting Started with KML
Hi,

I'm slightly confused as to what doesn't work where - but that is down
to translation I think.

However I'm going to assume your issue is that an Overlay works
correctly in Google Earth but loses it's rotation when viewed in
Google Maps.

Google Maps does not support Rotation - see
http://code.google.com/intl/en/apis/kml/documentation/kmlelementsinmaps.html

You need your Overlay Image to have no rotation.

To achieve this, as I have had to do in the past, I open Google Earth
and set the orientation of the view to North and turn off Terrain -
then take a screenshot. Using this screenshot open a graphics package
that supports layers (Photoshop or GIMP for example) and add this
screenshot as a layer. Then add the image you want to use as an
Overlay as a second layer and rotate it within the graphics package so
it lines up correctly with the screenshot layer. Once aligned
correctly turn off the screenshot layer and save your remaining image
layer.

You then have a pre-rotated overlay that will align correctly in both
Earth and Maps as it's rotation is zero.

Hope that helps and I understood the problem you have - if not sorry -
but hopefully that workaround might be a useful thing to know about
anyway.

Regards
Nymor

On Mar 17, 5:24 am, "[email address]" wrote:

demo_m...@yahoo.de

unread,
Mar 17, 2010, 9:07:28 AM3/17/10
to KML Developer Support - Getting Started with KML
That helped me pretty much, thank you! Both of you, im gonna do that,
and i think this will fix everthing.

You understood me ;)

Reply all
Reply to author
Forward
0 new messages