I am using leaflet.js to render tiles from openstreetmap. I have it working fine. I would like to display the entire world map (zoom level 0). This also works fine. My problem is that on zoom level 0 the world is kind of big. Is it possible to render the world map in a div 100px wide, for example?
if you want to change the width or height of the div containing the map, use CSS, like this:
<style>
#map{
width:100px;
height:300px;
}
</style>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With