Code Monkey home page Code Monkey logo

cacheview's Introduction

cacheview

A simple node.js web server application for viewing local tile caches in Leaflet. This application was developed to assist in visual QA for tile cache production jobs.

The application makes use of a configuration file that contains the following parameters

folder - the local path to root of the tile cache template - a tokenized template to be used by Leaflet to call tiles. Note: folder + template should form a complete path to a tile. initX, initY - longitude and latitude, respectively of the center coordinate of the map initZoom - zoom level (0 - 19) of the map at startup maxZoom - highest zoom level number to which the map can zoom

The "folder" parameter is used by node.js to direct calls to the proper location on the local filesystem. All other parameters are used by Leaflet for map construction.

This application makes use of the mime module determine content type. Without it, the html will not render properly. I was having path resolution issues on my Windows machine so I included mime here. Mime can be retrieved via npm but the current version of static.js looks for it in the same folder. This will be addressed in future updates.

usage:

  1. From command line: node static.js (the viewer will automatically load in the default browser)

cacheview's People

Contributors

geobabbler avatar

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.