Grupuri Imagini Director Web
Recently Visited Groups | Help | Sign in
Google Groups Home
ground overlay alignment problem
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
romero...@gmail.com  
View profile  
 More options Apr 4 2009, 5:25 am
From: <romero...@gmail.com>
Date: Fri, 3 Apr 2009 20:25:08 -0600
Local: Sat, Apr 4 2009 5:25 am
Subject: ground overlay alignment problem

Hi,

Im having a problem aligning a ground overlay image to my map.

Here's my url:

http://mexsurf.com/test/maptst.html

as you can see, the overlaid png image is not aligning correctly with the
map.

However, opening the direct link to the image, "overlay png image,"  in a
new window or tab, you'll be able to compare & see how the image, in
reality, does correctly line up with the google/Mercator map projection.

It seems that the ground overlaying method is 'compressing' and distorting
my image when it overlays it on the map.

Im guessing this problem might be related to the way the ground overlay
bounds are set?

In my javascript, you'll see that Im passing map.getBounds() to the ground
overlay constructor (in theory, this should be correct?).

Can someone please help me figure out why the ground overlaying method is
distorting my image and therefore not aligning it correctly to the map?

Please help,

Thanks,

P.Romero


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Maps.Huge.Info (Google Maps API Guru)  
View profile  
 More options Apr 4 2009, 7:01 am
From: "Maps.Huge.Info (Google Maps API Guru)" <cor...@gmail.com>
Date: Fri, 3 Apr 2009 21:01:19 -0700 (PDT)
Local: Sat, Apr 4 2009 7:01 am
Subject: Re: ground overlay alignment problem
GGroundOverlay actually thinks its getting a "flat" projected image
and tries to project it into Mercator with some very clever
JavaScript. Since you seem to have an already correctly projected
image, GGroundOverlay causes your map to get stretched into a
misalignment. This isn't a problem but a feature.

Your problem is especially evident because you're using a low zoom
level and a full earth image. GGroundOverlay is a lot less sensitive
when looking at a zoom 15 image as the stretching is almost
imperceptible.

The solution is to use an overlay method that doesn't alter the image
but instead simply lays it correctly over the map. I wrote such a
library and called it "ProjectedOverlay" - it can be found here:
http://www.usnaviguide.com/js/ProjectedOverlay.js

If you want to use this library, please download it and call it from
your own server.

-John Coryat

http://maps.huge.info

http://www.usnaviguide.com


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
romero...@gmail.com  
View profile  
 More options Apr 4 2009, 7:13 am
From: <romero...@gmail.com>
Date: Fri, 3 Apr 2009 22:13:30 -0600
Local: Sat, Apr 4 2009 7:13 am
Subject: RE: ground overlay alignment problem
Thanks,
I'll try your library out.
Right now, Im going to test trying to create my own overlay layer, by
implementing the GOverlay interface, which seems like a more adequate,
sophisticated solution. Im guessing your library does something similar?

Thanks again,
P.Romero


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Maps.Huge.Info (Google Maps API Guru)  
View profile  
 More options Apr 4 2009, 5:38 pm
From: "Maps.Huge.Info (Google Maps API Guru)" <cor...@gmail.com>
Date: Sat, 4 Apr 2009 07:38:42 -0700 (PDT)
Local: Sat, Apr 4 2009 5:38 pm
Subject: Re: ground overlay alignment problem
Yes, that's the same approach I used. Feel free to start with my code
if you want.

-John Coryat

http://maps.huge.info

http://www.usnaviguide.com


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google