Skip to content

Commit

Permalink
export Leaflet object, public components and toLatLng macro (#141)
Browse files Browse the repository at this point in the history
* export Leaflet classes from addon

* changelog: add entry for #141
  • Loading branch information
buschtoens authored and miguelcobain committed Mar 24, 2017
1 parent e04c3d2 commit ad5611f
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
### master
- [ENHANCEMENT] leaflet-map: pass more options and observe `minZoom`, `maxZoom` ([#142](https://github.com/miguelcobain/ember-leaflet/pull/142), [#144](https://github.com/miguelcobain/ember-leaflet/pull/144))
- [DEPRECATION] [ENHANCEMENT] image-layer: `imageUrl` attribute is deprecated in favor of the observed `url` attribute ([#143](https://github.com/miguelcobain/ember-leaflet/pull/143))
- [ENHANCEMENT] Public components, the `toLatLng` macro and the `Leaflet` library itself are now exported by this addon ([#141](https://github.com/miguelcobain/ember-leaflet/pull/141))

### 3.0.10
- [BUGFIX] Allow `rootURL` to be an empty string. Try to mimic the same defaults as ember-cli.
Expand Down
28 changes: 28 additions & 0 deletions addon/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
const L = window.L || {};
export { L, L as Leaflet };

export { default as CircleLayer } from 'ember-leaflet/components/circle-layer';

export { default as CircleMarkerLayer } from 'ember-leaflet/components/circle-marker-layer';

export { default as GeojsonLayer } from 'ember-leaflet/components/geojson-layer';

export { default as ImageLayer } from 'ember-leaflet/components/image-layer';

export { default as LeafletMap } from 'ember-leaflet/components/leaflet-map';

export { default as MarkerLayer } from 'ember-leaflet/components/marker-layer';

export { default as PolygonLayer } from 'ember-leaflet/components/polygon-layer';

export { default as PolylineLayer } from 'ember-leaflet/components/polyline-layer';

export { default as PopupLayer } from 'ember-leaflet/components/popup-layer';

export { default as TileLayer } from 'ember-leaflet/components/tile-layer';

export { default as TooltipLayer } from 'ember-leaflet/components/tooltip-layer';

export { default as WmsTileLayer } from 'ember-leaflet/components/wms-tile-layer';

export { default as toLatLng } from 'ember-leaflet/macros/to-lat-lng';

0 comments on commit ad5611f

Please sign in to comment.