Hi to all, I need to fit the whole world in a screen like as image1. I have tried as map.fitWorld().zoomIn(), But it shows some extra location(area) like as image2. Also tried as noWrap:true , It shows single map correclty, But the alignment not good in min zoom levels, refer image3 Kindly help me to show whole world image only in a screen. EDIT: tileSize : 300 asked 24 Aug '15, 11:07 Rajavelu_M |
In web Mercator projection the world is square, sorry..... or put different: either you need a different monitor, or you will have to use a custom projection (which will likely not work very well). answered 24 Aug '15, 19:47 SimonPoole ♦ @SimonPoole : Thanks for your suggestion. What about tileSize property? I increased tile size 256 to 300. But some part of map not shown.(screenshot added above)
(25 Aug '15, 06:35)
Rajavelu_M
Both the projected globe and the tiles are square (-> w:h=1) in standard web Mercator projection. Most screens and therefore windows shown on them are rectangular, typically with a width to height ratio between 4:3 and 16:9. To fit the world seemlessly in to such a window you either need to distort the tiles horizontally or use a projection that fits better. See http://www.progonos.com/furuti/MapProj/Dither/TOC/cartTOC.html , https://en.wikipedia.org/wiki/Map_projection , https://en.wikipedia.org/wiki/Map_projection ,
(26 Aug '15, 08:21)
SimonPoole ♦
|
crosspost: https://stackoverflow.com/questions/32180693/how-to-fit-openstreet-world-map-in-full-screen
@scai: Yes i posted in both https://help.openstreetmap.org & http://stackoverflow.com/ :)