Last active
January 2, 2017 16:58
-
-
Save davidpett/afbe11c10568360006c5fbf23926aefd to your computer and use it in GitHub Desktop.
New Twiddle
This file contains hidden or 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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
tileId: 'wac_12758', | |
tileHeight: 2944, | |
tileSubdomains: ['', '0', '1', '2'], | |
tileWidth: 4000, | |
tileUrl: Ember.computed('tileId', function() { | |
return `http://cdn{s}.walkerart.org/public/collections-tiled/${this.get('tileId')}/{z}_{x}_{y}.jpg`; | |
}), | |
tileBounds: Ember.computed('tileHeight', 'tileWidth', function() { | |
let p1 = L.latLng(0, this.get('tileHeight')); | |
let p2 = L.latLng(this.get('tileWidth'), 0); | |
return L.latLngBounds(p1, p2); | |
}) | |
}); |
This file contains hidden or 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
{ | |
"version": "0.10.7", | |
"EmberENV": { | |
"FEATURES": {} | |
}, | |
"options": { | |
"use_pods": false, | |
"enable-testing": false | |
}, | |
"dependencies": { | |
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js", | |
"ember": "2.10.0", | |
"ember-data": "2.10.0", | |
"ember-template-compiler": "2.10.0", | |
"ember-testing": "2.10.0" | |
}, | |
"addons": { | |
"ember-leaflet": "3.0.7" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment