Skip to content

prtksxna/leaflet-map-component

Repository files navigation

leaflet-map-component

Make leaflet maps using declarative Polymer web components. To get started read the documentation or checkout the demo.

Quickstart Guide

Install this web component using Bower:

bower install leaflet-map-component

Import the main component and start creating your map:

  <head>
    <script src="../platform/platform.js"></script>
    <link rel="import" href="leaflet-map-component.html">
    <style>
      html, body {
        margin: 0;
        height: 100%;
      }
      leaflet-map {
        height: 100%;
      }
    </style>
  </head>
  <body unresolved>
    <leaflet-map longitude="77.2" latitude="28.4" zoom="12">
      <leaflet-marker longitude="77.2" latitude="28.4">
        Marker I
      </leaflet-marker>
      <leaflet-circle longitude="77.2" latitude="28.4" radius="300">
        Round
      </leaflet-circle>
    </leaflet-map>
  </body>

Contribute

Want to contribute? Resolve an issue and send a pull request.

Read the quick guide on how to start contributing.

##License

MIT license - http://www.opensource.org/licenses/mit-license.php