Giter Site home page Giter Site logo

straup / mapzen-slippy-map Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thisisaaronland/mapzen-slippy-map

0.0 0.0 0.0 7.98 MB

Mapzen maps. In a browser. Full-screen. With the ability to screenshot themselves.

Makefile 0.14% CSS 0.31% HTML 0.05% JavaScript 99.50%

mapzen-slippy-map's Introduction

mapzen-slippy-map

Moscow

Mapzen maps. In a browser. Full-screen. With the ability to screenshot themselves.

Caveats

This doesn't do a bunch of things that any normal map does, yet.

How to use this thing

Put it on a web server. Or: Use the handy slippy target in the included Makefile.

Like this:

make slippy

This will start a small local web server that you can visit in your web browser by going to http://localhost:8080

If you don't know what a "Makefile" is or don't make the make program installed on your computer you can start mapzen-slippy-map by hand, from the command-line, like this:

./utils/PLATFORM/www-server -path ./www

Where PLATFORM should be one of the following:

  • darwin (as in Mac OS X)
  • linux
  • windows

Keyboard controls

Shift-B

Load the bubble-wrap style.

Shift-C

Load the cinnabar style.

Shift-L

Toggles between labeled and unlabeled versions of the current style. This is still a bit clunky and does not apply to the bubble-wrap style.

Shift-R

Load the refill style.

Shift-Z

Load the zinc style.

Screenshots

Shift-S

This will create a screenshot of the current map view and open it up in another browser tab.

Ctrl-Shift-S

This will create a screenshot of the current map view and try to save it to the place your browser saves downloads. Filenames are generated as follows:

"slippy-map-" + MAP STYLE + "-" + UNIX TIMESTAMP + "-" GEOHASH(SW lat,lon) + "-" + GEOHASH(NE lat,lon) + ".png"

Updating the map styles

Run the handy make mapzen target in the included Makefile to update all map styles (and their assets) from source.

Things that mapzen-slippy-map still needs to learn how to do

  • Search
  • Geolocation
  • Maybe GetLatLon style coordinate display?
  • Screenshot controls for touch devices

See also

mapzen-slippy-map's People

Contributors

thisisaaronland 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.