Giter VIP home page Giter VIP logo

multimap's Introduction

##Multiple basemap viewer by Nelson Minar <[email protected]>

A web view for slippy miles of tiled maps, designed for quickly comparing multiple base layers. Designed to support projects like Mike Migurski's OSM terrain layer, to make it easy to quickly view, bookmark, and compare map views.

For a live demo, see http://www.somebits.com/multimap/map.html

##Usage

The map works like a typical slippy map. Compass, mouse, and touch controls all pan and zoom. Note the URL auto-updates as you pan and zoom; you can copy and paste a link at any time and get the current view. Buttons on the right toggle what base layer is active. You can hide the purple graticules with the button, and you can collapse the buttons themselves by clicking the "Basemaps" title.

The code is designed to make it as simple as possible to add extra basemaps. If you want to add a map, simply add an entry to basemaps.js and then modify the openmaps() function in map.js to include it. See the Polymaps docs for more information on how the URL templates work.

Installation is as simple as copying all the files to a web directory and serving them statically. No server code is required.

##Contents

###Original code

  • map.html: HTML and style sheets for the map
  • map.js: Main javascript for the map
  • basemaps.js: defines specific raster base layers for polymaps
  • Graticules.js: latitude / longitude guides, derived from Polymaps' Grid.js

###Third party code:

multimap's People

Contributors

nelsonminar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

chayapan

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.