2006Scape Wiki:Map: Difference between revisions

Jump to navigation Jump to search
scape_>Ralpha
scape_>Ralpha
Line 134: Line 134:
       "center": [3225, 3219], // the center of the map, view moves here when basemap is switched
       "center": [3225, 3219], // the center of the map, view moves here when basemap is switched
       "bounds": [ [0, 0], [12800, 12800] ] // bounds of map, tiles outside of this bounds are not loaded and limits panning movement.
       "bounds": [ [0, 0], [12800, 12800] ] // bounds of map, tiles outside of this bounds are not loaded and limits panning movement.
      "zoomLimits": [-3, 5], // Zoom limits [minZoom, maxZoom]
      "defaultZoom": 1, // Default zoom level, when map opens
      "maxNativeZoom": 3, // Maximum zoom where there are tiles for, other zoom levels will have scaled version of max native zoom.
      "attribution": "MyMap" // optional, attribution for this layer default licence will always be displayed (see main config file)
     },{ // More items in the list
     },{ // More items in the list
       "mapId": 1,
       "mapId": 1,
       "name": "Ancient Cavern",
       "name": "Ancient Cavern",
       "center": [1760, 5344],
       "center": [1760, 5344],
       "bounds": [ [0, 0], [12800, 12800] ]
       "bounds": [ [0, 0], [12800, 12800] ],
      "zoomLimits": [-3, 5],
      "defaultZoom": 1,
      "maxNativeZoom": 3
     },{
     },{
       ...
       ...
Line 283: Line 290:
</syntaxhighlight>
</syntaxhighlight>


The main config file look like this:
The main config file:
<syntaxhighlight lang="json">
<syntaxhighlight lang="json">
{
{
Anonymous user

Navigation menu