- Static Map generator
- Javascript map using Leaflet
To generate tile images, you need to use RyzomMapTiles repository.
To generate json files, run (--ryzom parameter points to directory where to find *.bnp
files)
php bin/bmmaps.php bmmaps:json --ryzom=$HOME/.local/share/Ryzom/ryzom_live/data
To generate map-leaflet.js, run
php bin/build-map.php
Ryzom.apiDomain
must be without trailing slash, ie (Ryzom.apiDomain = 'https://api.bmsite.net')Ryzom.tileUrl
must be with leading slash, ie (Ryzom.tilePath = '/maps/{ver}/{mode}/{style}/{z}/{x}/{y}.{ext})- Map tiles have version in url (ie. /maps/{ver}/{mode}/{style}/{z}/{x}/{y}.{ext})
Ryzom.TILE_URI
is replaced with Ryzom.getTileUrl() which returnRyzom.apiDomain + Ryzom.tilePath
Ryzom.map(id, options)
ifoptions.layers
is defined (even if empty), no automatic tile layers are added.- Rendered map tiles are from zoom=5 to zoom=10. Set minNativeZoom=5, maxNativeZoom=10 in L.tileLayer options)
- Label tiles are rendered from zoom=5 to zoom=12
- Continent world map pixel coordinates have changed (world.json)
Copyright (c) 2014 Meelis Mägi <nimetu@gmail.com>
RyzomMaps is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.