Hi All,

I've been trying to use a bitmap displayed via a groundOverlay to show
users where data is available for on the server. These are basically
"cells".

Now by loading the bitmap into memory, doing a little maths, I can
allow or disallow the user to click the map, which will then go on to
get the data back from the server. All works fine.

But I then tried to display this bitmap on the map itself to give some
visible indication of where the user could click.

First of all I just took the image, drew it on screen. The bitmap is
100x100 pixels, with each pixel being representative of 0.1 x 0.1
degrees (or overall area being 10 x 10 degrees).

Of course, this won't work if the bounds of the image is much more
than 0.5 0.5 degrees as an image like that is Cartesian coords.,
whereas Google maps is Mercator and the location of the image on
screen doesn't line up with the underlaying "grid".

So, I went on to slice the image into horizontal strips, 1 pixel tall,
100 pixels wide. Groundoverlay these 0.1 degree tall and 10 degrees
wide gives you 100 groundOverlays.

Now this projects the image correctly so mouse moves tally correctly
with where users can click, but now got a pretty awful looking screen.
It appears when you groundOverlay, the images are not drawn pixel
perfect.

Screenshot of what I am seeing here:
http://google-maps-api-for-flash.googlegroups.com/web/GroundOverlayMaskWithImageSlice.jpg

And my project archive here:
http://groups.google.com/group/google-maps-api-for-flash/web/GroundOverlayMaskWithImageSlice.zip

Any help gratefully received. I really need to get this working and
cannot wait until correctly projected images make it into the Google
Maps API (if it ever does).

Cheers

Ian
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API For Flash" 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-for-flash?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to