open-street-map

WebJar for open-street-map

License

License

MIT
Categories

Categories

OpenStreetMap Business Logic Libraries Geospatial
GroupId

GroupId

org.webjars.bowergithub.emersion
ArtifactId

ArtifactId

polymer-openstreetmap
Last Version

Last Version

0.0.4
Release Date

Release Date

Type

Type

jar
Description

Description

open-street-map
WebJar for open-street-map
Project URL

Project URL

http://webjars.org

Download polymer-openstreetmap

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bowergithub.emersion/polymer-openstreetmap/ -->
<dependency>
    <groupId>org.webjars.bowergithub.emersion</groupId>
    <artifactId>polymer-openstreetmap</artifactId>
    <version>0.0.4</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bowergithub.emersion/polymer-openstreetmap/
implementation 'org.webjars.bowergithub.emersion:polymer-openstreetmap:0.0.4'
// https://jarcasting.com/artifacts/org.webjars.bowergithub.emersion/polymer-openstreetmap/
implementation ("org.webjars.bowergithub.emersion:polymer-openstreetmap:0.0.4")
'org.webjars.bowergithub.emersion:polymer-openstreetmap:jar:0.0.4'
<dependency org="org.webjars.bowergithub.emersion" name="polymer-openstreetmap" rev="0.0.4">
  <artifact name="polymer-openstreetmap" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bowergithub.emersion', module='polymer-openstreetmap', version='0.0.4')
)
libraryDependencies += "org.webjars.bowergithub.emersion" % "polymer-openstreetmap" % "0.0.4"
[org.webjars.bowergithub.emersion/polymer-openstreetmap "0.0.4"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.bowergithub.polymer : polymer jar [0,)

Project Modules

There are no modules declared in this project.

<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

Versions

Version
0.0.4