The ground overlay is calculating your image size as 5562x2829.
The custom overlay is calculating your image size as 5561x3309.

I'm not exactly sure what is accounting for the height difference
since both use the same image and bounds objects.

Chad Killingsworth

On Oct 5, 4:09 pm, Josh <[email protected]> wrote:
> Removing this makes the image not render. Also, it is listed in the
> example on this page:
>
> http://code.google.com/apis/maps/documentation/javascript/overlays.ht...
>
> On Oct 5, 4:18 pm, Chad Killingsworth
>
>
>
>
>
>
>
> <[email protected]> wrote:
> > I'm fairly certain it's lines 39-40 in conus.js:
>
> > img.style.width = "100%";
> > img.style.height = "100%";
>
> > You are stretching your image with those.
>
> > Chad Killingsworth
>
> > On Oct 5, 1:26 pm, Josh <[email protected]> wrote:
>
> > > Here's the problem I'm facing: Basically, there are two images on this
> > > map, one at 100% opacity, and one at 40% opacity. They should both
> > > line up and overlap each other, but as you can see, they don't. I'm
> > > using both a.) the GroundOverlay class (100%), and b.) a custom-built
> > > OverlayView class (40%) to display these. Currently, the GroundOverlay
> > > (the one at 100% opacity) is the correct method of displaying the
> > > radar. However, either the projection of the RadarOverlay custom class
> > > is wrong, or the math is wrong. Any ideas?
>
> > > I used this official tutorial to build the custom class:
>
> > >http://code.google.com/apis/maps/documentation/javascript/overlays.ht...
>
> > > Here is the example of the problem:
>
> > >http://j.mp/97FvTS
>
> > > Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to