Bing and Mapnik in EPSG:4326

102 views
Skip to first unread message

diego

unread,
Jan 2, 2013, 6:01:07 AM1/2/13
to opensca...@googlegroups.com
Hi all.

I need to show Bing and Mapnk in EPSG:4326. This is what I'm doing in ActionScript:

            var    lLayer    :Mapnik = new Mapnik ('OSM', 'OpenStreetMap');
           
            lLayer.projection = Layer.DEFAULT_PROJECTION;
            this.myMap.map.addLayer (lLayer);                             // myMap is in the default projection, which is EPSG:4326

What happens with MapNik is that only the northern hemisphere is visible. In the case of Bing, the map doesn't show at all. What am I doing wrong?

TIA

Diego.


hdam

unread,
Jan 24, 2013, 10:33:01 AM1/24/13
to opensca...@googlegroups.com
Hi,

Mapnik layer extends the OSM layer which set its maxExtent in meters.  So, you need to transform its maxExtent as well, something like:

ILayer.maxExtent.transform("EPSG:900913", "EPSG:4326")   // based on 1.2 source code...

...-H

hdam

unread,
Jan 24, 2013, 10:33:36 AM1/24/13
to opensca...@googlegroups.com

Diego Marrero

unread,
Jan 24, 2013, 12:33:15 PM1/24/13
to openscales-dev
Ok, thanks, I'll try it.


2013/1/24 hdam <hda...@gmail.com>
--
You received this message because you are subscribed to the Google Groups "openscales-dev" group.
To post to this group, send email to opensca...@googlegroups.com.
To unsubscribe from this group, send email to openscales-de...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages