Extends marker layers to support rotation
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
addon
app
blueprints
config
tests
vendor
.bowerrc
.editorconfig
.ember-cli
.gitignore
.jshintrc
.npmignore
.travis.yml
.watchmanconfig
LICENSE.md
README.md
bower.json
ember-cli-build.js
index.js
package.json
testem.json

README.md

ember-leaflet-rotated-marker Build Status Ember Observer Score npm version

This addon extends ember-leaflet 2.0. It extends the {{marker-layer}} component to support rotation. This uses this leaflet extension to accomplish that. Doesn't work on IE < 9.

Usage

{{#leaflet-map lat=51.512983 lng=-0.138289 zoom=12}}
  {{marker-layer lat=51.512983 lng=-0.138289 rotationAngle=90 rotationOrigin="25% 25%"}}
{{/leaflet-map}}
Option Type Default Description
rotationAngle Number 0 Rotation angle, in degrees, clockwise.
rotationOrigin String 'bottom center' The rotation center, as a transform-origin CSS rule.

Installation

Run:

ember install ember-leaflet-rotated-marker

Running

Running Tests

  • npm test (Runs ember try:testall to test your addon against multiple Ember versions)
  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit http://www.ember-cli.com/.