Skip to content

Instantly share code, notes, and snippets.

@pcambra
Created October 8, 2016 06:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pcambra/83c347902e181f2b6007231017328e6e to your computer and use it in GitHub Desktop.
Save pcambra/83c347902e181f2b6007231017328e6e to your computer and use it in GitHub Desktop.
// application.hbs
<div class="container">
{{partial 'navbar'}}
{{leaflet-map}}
{{outlet}}
</div>
// leaflet-map.hbs
{{#leaflet-map lat=lat lng=lng zoom=zoom}}
{{tile-layer url="http://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png"}}
{{/leaflet-map}}
// leaflet-map.js
import Ember from 'ember';
export default Ember.Component.extend({
lat: 45.519743,
lng: -122.680522,
zoom: 10
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment