CRS.Simple

18 views
Skip to first unread message

devque...@gmail.com

unread,
Mar 6, 2017, 11:41:45 AM3/6/17
to Leaflet
I am following this example  http://leafletjs.com/examples/crs-simple/crs-simple.html to understand  how to display non geographic images using leaflets, but it is a bit unclear for me .

In the above example there is a comment -  " This means that the whole map is about 1000x1000 pixels big and won’t fit in our HTML container."

 What is the size of the html container and how does it relate to the image size ? 

Apologies for these basic questions, but after googleing for hours , I was not able to find a good reference to understand these issues .


Suppose my image in 2000 X 1800 pixels, what should be the bounds and zoom level ?  How to I relate it to an HTML div  element size ?

Thanks !






Reply all
Reply to author
Forward
0 new messages