I have updated your example based on 0.17. https://github.com/farmio/elm-google-maps
Am Sonntag, 22. Mai 2016 20:10:16 UTC+2 schrieb Simon: > > Here's a very simple example, albeit still based on 0.16 code and ports > http://simonh1000.github.io/2015/10/elm-architecture-ports/ > > > On Sunday, 22 May 2016 17:51:04 UTC+2, Laszlo Pandy wrote: >> >> Yes, 0.17 has just been released. It introduces effect modules which are >> designed for interacting with stateful things like google maps. >> Unfortunately since the release is brand new, there is little documentation >> on effect modules. The best way to try it is probably to checkout the >> websocket example: >> https://github.com/elm-lang/websocket/blob/master/src/WebSocket.elm >> >> The Cmd type would correspond to methods you want to call into the google >> maps library, and Sub type would correspond to the callbacks that you need >> to get from the library. >> >> On Sun, May 22, 2016 at 5:17 PM, <[email protected]> wrote: >> >>> Hello team, >>> >>> We are evaluating Elm usage in our project and before we get our hands >>> dirty with the syntax I want to ask whether are there any conceptual >>> problems with Google Maps integration? >>> The interface we are looking forward to implementing in the Elm is >>> similar to the Airbnb's search page: >>> >>> * there is a filter panel on top, details panel on the left and map on >>> the right >>> * we have a map movement hook: after user moves a map we send >>> coordinates of the newly displayed area to the server >>> * in response server sends the updated set of the markers to display >>> * markers that ended up outside of visible area are removed and new >>> markers are added >>> >>> Is that kind of interconnectivity possible? Does anyone have an >>> experience of implementing JS callbacks in Elm? >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Elm Discuss" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
