< 172021-02-18⋎19 >

farmOS (farmos.org) is a free and open source, web-based farm management system. User guide: farmos.org/guide/ - Feature requests and bug reports: github.com/farmOS/farmOS/issuesSet by ChanServ on 2018-08-16 at 14:32
00:06*DirtyG has quit (Quit: Leaving)
03:26*farmBOT has joined
10:20*farmtech[m] has joined
14:13*ludwig_ has joined
14:16*ludwig_ has quit (Quit: Leaving)
19:15*svenn_ has quit (Remote host closed the connection)
19:53*svenn_ has joined
20:33*localisticepicur has joined
21:05*svenn_ has quit (Remote host closed the connection)
21:20*svenn_ has joined
21:49zedrckr[m]Hi mstenta , can you help me with some questions about farm-map.js?
21:50mstenta[m]Hi zedrckr - I'm just headed out! But feel free to post the questions and I'll get back as soon as I can!
21:51zedrckr[m]Ok thank you
21:53zedrckr[m]I need to load a polygon from WKT, and when it is available on the map edit or delete it. Is there any function in farm-map.js?
21:53zedrckr[m]I can already load it from the string, but I can't edit or delete it.
21:54*uploaded an image: image.png (44KiB) < matrix.org/_matrix/media/r0/download/mat >
21:54symbioquine[m]Are you using farmOS-map inside farmOS or in a custom web application?
21:55symbioquine[m]ah, I see
21:55zedrckr[m]Use this code from your documentation to load the polygon
21:55mstenta[m]zedrckr: github.com/farmOS/farmOS-map#drawing-con
21:55mstenta[m]You may just need to add the `edit` behavior
21:56symbioquine[m]```javascript
21:56symbioquine[m]myMap.addBehavior('edit', { layer: wktLayer });
21:56symbioquine[m]```
22:00zedrckr[m]Ok, it worked

< 172021-02-18⋏19 >