huafu / ember-google-map

An Ember addon to include a google-map Ember friendly component in your apps.
http://huafu.github.io/#/ember?name=ember-google-map
MIT License
87 stars 34 forks source link

[feature request] google.maps.Polyline support #5

Closed davidpaulsson closed 9 years ago

davidpaulsson commented 9 years ago

Would it be hard to implement passing an array of long / lat to draw a polyline over the map? Like https://developers.google.com/maps/documentation/javascript/examples/polyline-simple

Thoughts?

huafu commented 9 years ago

I am planning on implementing that next week, since I've made some helpers to map back and forth any Google MVCObject properties/events to/from Ember.Object it won't be too hard. Tho I still not have any unit test implemented and it begins to get very urgent too

huafu commented 9 years ago

Oh I see one point that might slow down the whole thing, doing this mapping I've made between Ember and Google object, but for arrays...

davidpaulsson commented 9 years ago

Can I help somehow?

(Edit: sorry for closing/reopening. Small fingers + mobile typing …)

huafu commented 9 years ago

The problem is not to pass the array. The thing is that it has to listen for that array change and trigger the google events for it, as well as it has to trigger the ember events when you move a spot or add a point on the line and move it with the mouse ;)

Huafu Gandon Head of Tech, Sovolve, LLC Skype: pedroleouf www.sovolve.com Social Evolution, Accelerated

Try Panomira.
You'll never look at yourself the same way again.

On 3 déc. 2014, at 19:31, David Paulsson notifications@github.com wrote:

Reopened #5.

— Reply to this email directly or view it on GitHub.

huafu commented 9 years ago

I began some work there. Need some debugging and fixing but it's almost there.

huafu commented 9 years ago

@davidpaulsson done in 0.0.10 #7 ;-)

davidpaulsson commented 9 years ago

awesome, thanks!