Main Map: Difference between revisions
From The Lands Of Liberos Project
Content added Content deleted
No edit summary |
No edit summary |
||
Line 1:
<syntaxhighlight lang="javascript" line="1">
crs: L.CRS.Simple, // CRS.Simple, which represents a square grid:
})
image.addTo(map)
</syntaxhighlight>
▲ var map = L.map('map', {
▲ minZoom: 0,
▲ maxZoom: 2,
▲ var bounds = [[0,0], [1000,1660]];
▲ var image = L.imageOverlay('img/fantasy_map.jpg', bounds).addTo(map);
|
Revision as of 18:42, 25 January 2024
var map = L.map('map', {
crs: L.CRS.Simple, // CRS.Simple, which represents a square grid:
minZoom: -2,
maxZoom: 1
})
var bounds = [xy(0, 0), xy(1920, 1067)]
var image = L.imageOverlay('data/Front Page 150.png', bounds)
image.addTo(map)