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