ember-leaflet-polyline-decorator

0.4.0 • Public • Published

Ember-leaflet-polyline-decorator

Build Status

Ember Observer Score

npm version

An Ember-CLI addon for using the Leaflet Polyline Decorator plugin in Ember Leaflet.

Installation

ember install ember-leaflet-polyline-decorator

Updates

See CHANGELOG for the list of all changes.

Basic Usage

polylineLocations: [
    L.latLng(latitude,longitude),
    L.latLng(latitude,longitude),
    L.latLng(latitude,longitude)
],
polylinePatterns: [
    {offset: 0, repeat: 50, symbol: L.Symbol.arrowHead({pixelSize: 15, headAngle: 30, pathOptions: {stroke: false, fillOpacity:1.0, weight:1, color:'red'}})}
]
{{polyline-decorator latlngs=polylineLocations patterns=polylinePatterns}}

or

    <LeafletMap @zoom={{10}} @center={{latlng}} @maxZoom={{25}} as |layers|>
        <layers.polyline @locations={{polylineLocations}} />
        <layers.polyline-decorator @latlngs={{polylineLocations}} @patterns={{patterns}} />
    </LeafletMap>

For more comprehensive examples and usage, see the Leaflet Polyline Decorator plugin

Package Sidebar

Install

npm i ember-leaflet-polyline-decorator

Weekly Downloads

1

Version

0.4.0

License

MIT

Unpacked Size

11 kB

Total Files

14

Last publish

Collaborators

  • boverton
  • doublestranded
  • drewda