Anyone?

Guilherme Camargo Cardoso
Cel: +55 51 91934165


On Wed, Oct 8, 2008 at 16:48, Guile FDD <[EMAIL PROTECTED]> wrote:

>
> Hi friends!
>
> I've got a problem when drawing a Polygon with lots of LatLng and
> width a extensible range.
>
> Please see this image:
> http://discovirtual.fdd.com.br/range.jpg
>
> The problem occurs when I get a big negative longitude and after a big
> positive longitude, just like this:
> -178.351 and 176.8916.
>
> The gmap do not draw correctly.
>
> With this code I've trying to get the negative and the positive more
> close, by transforming negative values on positive out of -180/180.
> And setting the opt_noCorrect to true. But nothing happens.
>
> for (var n:Number = 0; n < arrLatitudes.length; n++) {
>
>                                var yy:Number = arrLatitudes[n];
>                                var xx:Number = arrLongitudes[n];
>
>                                if(isNaN(ux)){
>                                        uy=yy;
>                                        ux=xx;
>                                }
>
>                                var difx:Number = Math.abs(ux-xx);
>
>                                var dify:Number = Math.abs(uy-yy);
>
>                                if (difx > 100) {
>                                        trace(xx);
>                                        xx = -180 -(180 - xx);
>                                        trace(xx);
>                                        trace();
>                                }
>                                if (dify > 20) {
>                                        yy = -90 -(90 - yy);
>                                }
>
>                                arrLatLong.push(new LatLng(yy,xx,true));
>
>                                uy=yy;
>                                ux=xx;
>                        }
>
>
> Any help? Or suggestions?
>
> Thanks in advance!
>
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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