Coder Social home page Coder Social logo

explv.github.io's Introduction

Explv.github.io

Dax Path

The Dax Path tool makes use of @itsdax great web walking API https://github.com/itsdax/Runescape-Web-Walker-Engine All credits to him.

Generating map tiles

(note that this will take a long time, and will generate an extremely large number of files):

  1. Create map images for each plane using a map image dumper like https://github.com/kfricilone/OpenRS/blob/master/source/net/openrs/cache/tools/MapImageDumper.java

  2. Install OSGeo4W (make sure it installs GDAL) https://trac.osgeo.org/osgeo4w/

  3. Download gdal2tiles_parallel.py https://gitlab.com/GitLabRGI/erdc/geopackage-python/blob/master/Tiling/gdal2tiles_parallel.py

  4. Open OSGeo4W Shell, run gdal2tiles_parallel.py with the following parameters:

python gdal2tiles_parallel.py -p raster -z 3-11 -e full_image_0.png your_output_dir/0/
python gdal2tiles_parallel.py -p raster -z 3-11 -e full_image_1.png your_output_dir/1/
python gdal2tiles_parallel.py -p raster -z 3-11 -e full_image_2.png your_output_dir/2/
python gdal2tiles_parallel.py -p raster -z 3-11 -e full_image_3.png your_output_dir/3/
  1. Update the tile layer path in https://github.com/Explv/Explv.github.io/blob/master/js/map.js to point to your local dir where your tiles are stored (the following line)
map.tile_layer = L.tileLayer('https://raw.githubusercontent.com/Explv/osrs_map_full_20180601/master/' + map.plane + '/{z}/{x}/{y}.png'
  1. Test the map to ensure coordinates produced for a selection of OSRS tiles are correct, you can compare with the live version of https://explv.github.io/

explv.github.io's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.