On 01/17/2011 07:15 PM, Roy Hyunjin Han wrote:
On 01/17/2011 06:45 PM, Roy Hyunjin Han wrote:
If I set my OpenLayers.Layer.Vector projection to 4326 and my map
projection to 3857, I get the following sample.
bbox=-974.00597306406,-179.26033291361,825.99402686406,179.62415110059
What are the units here?
If I set my OpenLayers.Layer.Vector projection to 3857 and my map
projection to 3857, I get the following sample.
bbox=-108425848.93601,-75336276.762761,91949234.455994,85276876.018639
What are the units here?
However, in Polymaps, I get the following sample, which I am assuming
is in latitude, longitude, latitude, longitude format and decimal
degree units.
bbox=-85,0,0,180
Here are some more clues.
When the OpenLayers map projection is 4326, the results are similar to
Polymaps.
>> map.getExtent()
left-bottom=(-140.625,-95.625) right-top=(219.375,84.375) {
left=-140.625, bottom=-95.625, more...}
>> map.getMaxExtent()
left-bottom=(-180,-90) right-top=(180,90) { left=-180, bottom=-90, more...}
When the OpenLayers map projection is 3857, the results look like the
second option.
>> mapOL.getMaxExtent()
left-bottom=(-20037508.3392,-20037508.3392)
right-top=(20037508.3392,20037508.3392) { left=-20037508.3392,
bottom=-20037508.3392, more...}
>> mapOL.getExtent()
left-bottom=(-15321879.52398,-997903.53949725)
right-top=(-2935411.9666423,9040418.5093402) { left=-15321879.52398,
bottom=-997903.53949725, more...}
It seems that if the layer projection and map projection are different,
then the *bbox* calculated is a nonsensical series of numbers.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users