cuulee / leaflet-map-component

A <leaflet-map> polymer web component

Home Page:http://prtksxna.github.io/leaflet-map-component/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A <leaflet-map> polymer web component

http://prtksxna.github.io/leaflet-map-component/

License:MIT License


Languages

Language:HTML 95.6%Language:CSS 4.4%