Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Custom GroundOverlay: max dimensions
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
 
Koen M  
View profile  
 More options Sep 27 2009, 6:00 pm
From: Koen M <rockinf...@gmail.com>
Date: Sun, 27 Sep 2009 15:00:53 -0700 (PDT)
Local: Sun, Sep 27 2009 6:00 pm
Subject: Re: Custom GroundOverlay: max dimensions
Thanks for your reply Shaun.

Good to mention the 4096px limitation. I run into this sometimes too
indeed.

I guess a GroundOverlay is most often used to overlay a bitmap image
over a Google map. Not so on fietsnet.be; there we use GroundOverlay
to overlay a sprite with its own display hierarchy of vector objects.
So I'm not sure the 4096px limitation applies in this case. Supporting
that, we manage to groundoverlay 100K by 100K sprite in api 1.9, even
earlier in Flash player 9 (where the limit was 2048px by 2048 I
believe)

Anyway, you may be correct that large GroundOverlays no longer
function due to this reason.  Perhaps the overlay content gets
converted to a bitmap unintentionally in the new api, although I
explicitly opt to not do so (renderContent=false).
That would be a real pity as we'd have to stay with api 1.9 then.  Is
this a regression issue perhaps?

Thanks,
Koen

On Sep 27, 9:00 pm, Shaun <shaun.hus...@gmail.com> wrote:

> Hi Koen,
> You might just be hitting a limitation within flash rather than in the
> maps api, I think you're right it's the sprite size and 1K by 1K
> should work and 100K by 100K shouldn't work (4096px * 4096px at max)
> so you could get 1/25th of you're data, the only other option I've
> seen is cutting up the original image and loading pieces of it into
> different bitmap data objects then laying them down next to each other
> using flash (so you could do this making 5 rows and 5 columns out of
> you're image).  Check out the posts herehttp://www.bit-101.com/blog/?p=1426
> about the size limitations in the comments there's some links to
> potential solutions depending on your needs.  Sorry I can't be more
> specific I have run into this problem myself with drawing line's
> between points on the map when I'm zoomed in really far since the
> starting point can be far off screen, I don't get an error but my
> lineTo or curveTo calls end up drawing these huge shapes, it appears
> some sort of estimation that is used in drawing the lines gets wacky
> when it's drawing over a huge distance, so far I've just toggled the
> visibility off when the zoom level is high which is sort of ok because
> you can't see where the line is going to if you're zoomed in that far
> anyways, but obviously its not ideal.  Also I don't have anything on
> the additions to GroundOverlay, was this working for you at some
> point, seems strange if it was?  Only way I could see this working is
> because you're loading the image rather than calling the constructor
> on a bitmapData with a size larger than 4096x4096 which I've heard is
> a hack to get around the limitation.
> Good luck,
> Shaun

> On Sep 27, 5:26 am, Koen M <rockinf...@gmail.com> wrote:

> > Hi all,

> > I was working on our fietsnet.be project today, and unfortunately I
> > did not manage to upgrade that app from Google Maps flash api 1.9 to
> > 1.16

> > The error occurs in a custom GroundOverlay object, to display a 100K
> > by 100K pixel sprite object as overlay. Apparently the dimension of
> > the sprite is the problem, as reducing it to say 1K by 1K solves it.

> > Unfortunately, reducing the dimension is not an option for us. The
> > sprite is our base container for bicycle track networks in a large
> > geographic area, and we noticed polylines are not accurately
> > positioned in Flash beyond two decimal digits. By going from 100K to
> > 1K we'd lose a hundredfold in positional accuracy; this would be
> > become strongly visible when zooming in.

> > I understand that in api 1.11, GroundOverlay was adapted a bit to to
> > accommodate for 3D viewing. Apart from setting
> > GroundOverlayOptions::renderContent=false, are there additional things
> > I should know to make this approach work again?

> > Thanks heaps,

> > Koen | fietsnet.be- Hide quoted text -

> - Show quoted text -


 
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.