warpech/static-openstreetmap


Displays a static map (using OpenStreetMap) of a provided address or a set of geographic coordinates

License: MIT


<static-openstreetmap>

<static-openstreetmap> is a Polymer Element that displays a static map (using OpenStreetMap) of a provided address or a set of geographic coordinates.

Maintained by Marcin Warpechowski, Tomek Wytrębowicz.

Usage Policy

Please note that by default we use OpenStreetMap API at donated servers. So you should consider API usage policy, and Nominatim usage policy.

Demo

Check it live.

Usage

  1. Import Web Components' polyfill:

    <script src="//cdnjs.cloudflare.com/ajax/libs/polymer/0.2.0/platform.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/polymer/0.2.0/polymer.js"></script>
  2. Import Custom Element:

    <link rel="import" href="src/static-openstreetmap.html">
  3. Start using it!

    <static-openstreetmap></static-openstreetmap>

Options

query or lat,lng set is required.

Attribute Options Default Description
query string Address to search for.
width int 500 Image width in px
height int 355 Image height in px
zoom int 1 Zoom
lat int 0 Latitude
lng int 0 Longitude

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

History

For detailed changelog, check Releases.

License

Cusom Element is distributed under MIT style LICENSE. Maps are provideded under Open Database License

Project Statistics

Sourcerank 4
Repository Size 164 KB
Stars 4
Forks 2
Watchers 3
Open issues 0
Dependencies 1
Contributors 2
Tags 4
Created
Last updated
Last pushed

Top Contributors See all

Tomek Wytrębowicz Marcin Warpechowski

Packages Referencing this Repo

static-openstreetmap
Polymer Element that displays a static map (using OpenStreetMap) of a provided address.
Latest release 0.0.4 - Published - 4 stars

Recent Tags See all

0.0.4 February 04, 2015
0.0.3 April 24, 2014
0.0.2 March 15, 2014
0.0.1 March 04, 2014

Interesting Forks See all

emersion/polymer-openstreetmap
Displays an interactive map (using OpenStreetMap) of a set of geographic coordinates
HTML - MIT - Last pushed - 1 stars - 1 forks

Something wrong with this page? Make a suggestion

Last synced: 2016-05-27 14:51:57 UTC

Login to resync this repository