Created
October 8, 2016 06:39
-
-
Save pcambra/83c347902e181f2b6007231017328e6e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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