nimetu / ryzom_maps
Bmsite Ryzom Maps sources
Package info
Language:JavaScript
pkg:composer/nimetu/ryzom_maps
v2.0.1
2026-07-16 16:33 UTC
Requires
- php: >=8.3
Requires (Dev)
- meenie/javascript-packer: dev-master
- nimetu/ryzom_sheets: 1.x
- symfony/console: 2.4.*
README
- 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
changes to v2
Ryzom.apiDomainmust be without trailing slash, ie (Ryzom.apiDomain = 'https://api.bmsite.net')Ryzom.tileUrlmust 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_URIis replaced with Ryzom.getTileUrl() which returnRyzom.apiDomain + Ryzom.tilePathRyzom.map(id, options)ifoptions.layersis 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)
License
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.