Skip to content
Displays an interactive map (using OpenStreetMap) of a set of geographic coordinates
HTML
Branch: master
Clone or download
Pull request Compare This branch is 10 commits ahead, 4 commits behind warpech:master.
Latest commit 9289403 Jan 31, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Fixes some various bugs. Jun 28, 2014
.bowerrc initial commit Mar 4, 2014
.gitignore initial commit Mar 4, 2014
LICENSE initial commit Mar 4, 2014
README.md Updates README.md. Jun 28, 2014
bower.json Update bower.json Jan 31, 2016
demo.html Fixes some various bugs. Jun 28, 2014

README.md

<open-street-map>

<open-street-map> is a Polymer Element that displays an interactive map (using OpenStreetMap) of a provided address or a set of geographic coordinates.

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.

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/open-street-map.html">
  3. Start using it!

    <open-street-map></open-street-map>

Options

query or lat,lng set is required.

Attribute Options Default Description
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

You can’t perform that action at this time.