Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-leaflet-openweathermap

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-leaflet-openweathermap

The default blueprint for ember-cli addons.

  • 0.1.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Ember-leaflet-openweathermap

Build Status npm version

An ember addon for including OpenWeatherMap's layers and OWM's current city/station data in ember-leaflet based maps without hassle.

OpenWeatherMap is a service for providion weather related data for use on an OpenLayers based map

Installation

  • ember install ember-leaflet-openweathermap

Basic Usage

{{#leaflet-map lat=51.512983 lng=-0.138289 zoom=12}}
	{{owm-layer "wind" opacity=0.5}}
{{/leaflet-map}}

Paramaters

Layer type ( positional, must be first )

The OWM layer type to display

Types
  • clouds
  • cloudscls
  • precipitation
  • precipitationcls
  • rain
  • raincls
  • snow
  • pressure
  • pressurecntr
  • temp
  • wind
Example
{{#leaflet-map lat=51.512983 lng=-0.138289 zoom=12}}
	{{owm-layer "pressure"}}
{{/leaflet-map}}
Added Options
  • showLegend: true or false. If true and option 'legendImagePath' is set there will be a legend image on the map.
Example
{{#leaflet-map lat=51.512983 lng=-0.138289 zoom=12}}
	{{owm-layer "pressure" showLegend=true}}
{{/leaflet-map}}
  • legendImagePath: URL (is set to a default image for some layers, null for others, see below). URL or relative path to an image which is a legend to this layer.
Example
{{#leaflet-map lat=51.512983 lng=-0.138289 zoom=12}}
	{{owm-layer "pressure" legendImagePath=true}}
{{/leaflet-map}}
  • legendPosition: 'bottomleft'. Position of the legend images on the map. Available are standard positions for Leaflet controls ('topright', 'topleft', 'bottomright', 'bottomleft').
Example
{{#leaflet-map lat=51.512983 lng=-0.138289 zoom=12}}
	{{owm-layer "pressure" legendPosition=true}}
{{/leaflet-map}}

For more information and usage example see leaflet-openweathermap

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://ember-cli.com/.

Keywords

FAQs

Package last updated on 11 Apr 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc