gabesmed / ember-leaflet

Ember + Leaflet = Fun with maps
gabesmed.github.io/ember-leaflet
MIT License
164 stars 35 forks source link

Initializing map with bounds instead of zoom+center? #125

Closed mjanda closed 9 years ago

mjanda commented 9 years ago

Right now, I think the only (sane) way is to override whole _createLayer(). What about moving setView() into separate function so you could override just that.

Can I send PR?

miguelcobain commented 9 years ago

You need to call fitBounds instead of setView?

Sure, a PR would be great.