Hi,

I just updated the swc library to 1.9 and I'm still seeing some odd
behavior.

Using this example of the Euclidean Projection:
http://google-maps-api-for-flash.googlegroups.com/web/EuclideanProjection.as?gsc=l-ZUNRYAAAClUal-mYb3n73TLQDspNNuTvf5X75BbpUJK1xB1ciEUw

Is there a standard linear projection that I should be using?

Thanks.


On Feb 25, 1:04 pm, Fabrice <[email protected]> wrote:
> I am totaly surprised.
> I did not know that a 1.9 version was released.
> And more that that, it has fixed my projection problem...
>
> So thank you very much...
> Fabrice
>
> On Jan 28, 12:33 am, "pamela (Google Employee)" <[email protected]>
> wrote:
>
> > Hi Fabrice-
>
> > We've filed the following bug for custom tiles, and it references your
> > thread as 
> > well:http://code.google.com/p/gmaps-api-issues/issues/detail?id=1031
>
> > We'll look into our code and remove any code that assumed a certain
> > tile size/ratio.
>
> > - pamela
>
> > On Jan 10, 5:25 am, Fabrice <[email protected]> wrote:
>
> > > Hi,
>
> > > Should it help if I join a link with my sources?
> > > Has someone ever try to put a marker with a custom projection?
>
> > > Best regards,
> > > Fabrice
>
> > > On 7 jan, 17:01, Fabrice <[email protected]> wrote:
>
> > > > Just to add that I have achieved to execute the same behavior into the
> > > > javascript version.
> > > > I hope there is a solution for the flash version. ;-)
>
> > > > On Jan 7, 3:48 pm, Fabrice <[email protected]> wrote:
>
> > > > > Hi,
>
> > > > > I am kind new on the google maps api and I should miss something.
>
> > > > > I am working with custom projection and custom tiles.
> > > > > My purpose is to draw a simple map in its own linear referential and
> > > > > to put marker on it.
>
> > > > > The custom map draws perfectly and I have added some markers.
> > > > > I currently have an inconsistency between markers and my custom tiles.
>
> > > > > When I move the map, the map move faster that the mouse and than the
> > > > > marker
> > > > > Also, the markers move at the same speed than the mouse.
>
> > > > > If I move the map to the top, it is first faster than the mouse and
> > > > > then it slow down.
> > > > > I guess there is still a Mercator projection used somewhere?
> > > > > It seems also that the markers on the overlay use the Mercator
> > > > > projection.
> > > > > With this issue, the 3 markers (0,0), (25,25), (50,50), are not align
>
> > > > > Do you have a clue for me?
>
> > > > > Best regards,
> > > > > Fabrice
>
> > > > > My custom projection follows the following rules:
> > > > > public override function fromLatLngToPixel(latLng:LatLng,
> > > > > zoom:Number):Point{
> > > > >   var max:Number = Math.pow(2,zoom) * 256;
> > > > >   var x:Number = (latLng.lng() + 50.0) * max / 100.0;
> > > > >   var y:Number = -(latLng.lat() - 50.0) * max / 100.0;
> > > > >   return new Point(x, y);}
>
> > > > > public override function fromPixelToLatLng(pixel:Point, zoom:Number,
> > > > > opt_nowrap:Boolean = false):LatLng{
> > > > >   var max:Number = Math.pow(2,zoom) * 256;
> > > > >   var lng:Number = 100.0 * pixel.x / max - 50.0;
> > > > >   var lat:Number = -100.0 * pixel.y / max  + 50.0;
> > > > >   return new LatLng(lat, lng, opt_nowrap);
>
> > > > > }
>
> > > > > I have setted the projection inside a new MapType:
> > > > > var projection:IProjection = new CustomProjection();
> > > > > var customTileLayer:ITileLayer = new CustomTileLayer(1, 2, 1);
> > > > > var mapType:MapType = new MapType([customTileLayer], projection,
> > > > > "CustomMapType");
> > > > > map.addMapType(mapType);
> > > > > map.setCenter(new LatLng(0,0), 1, mapType);
--~--~---------~--~----~------------~-------~--~----~
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