Configuration and setup files for Mapcrafter, used for generating a map for the Minecraft server Lompemakeriet.
git clone https://github.com/mapcrafter/mapcrafter.git
brew install boost libpng cmake libjpeg-turbo
cd mapcrafter
cmake . -DJPEG_INCLUDE_DIR=/usr/local/opt/jpeg-turbo/include/ -DJPEG_LIBRARY=/usr/local/opt/jpeg-turbo/lib/libjpeg.dylib
make
./src/mapcrafter -c src/config.conf -j 8
./src/mapcrafter -c src/config.conf -j 8 -F
(force rerender)
tar -zcf map.tar.gz worlds/map_world_*
scp map.tar.gz xxxxx@xxx.tomlin.no:/www/lompemakeriet/maps/new/
ssh xxxxx@xxx.tomlin.no
cd /www/lompemakeriet/maps/new/
tar zxvf map.tar.gz &
- Copy
leaflet.label.js/css
tostatic/leaflet
- Add
leaflet.label.js/css
toindex.html
- Replace in
static/handler/markers.js
:marker.bindPopup(markerInfo.text ? markerInfo.text : markerInfo.title);
withmarker.bindLabel(markerInfo.title, { noHide: true, direction: 'right', offset: [-20, -5] });
- Copy markers from
markers.js