| 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:49 | zedrckr[m] | Hi mstenta , can you help me with some questions about farm-map.js? |
| 21:50 | mstenta[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:51 | zedrckr[m] | Ok thank you |
| 21:53 | zedrckr[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:53 | zedrckr[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:54 | symbioquine[m] | Are you using farmOS-map inside farmOS or in a custom web application? |
| 21:55 | symbioquine[m] | ah, I see |
| 21:55 | zedrckr[m] | Use this code from your documentation to load the polygon |
| 21:55 | mstenta[m] | zedrckr: github.com/farmOS/farmOS-map#drawing-con |
| 21:55 | mstenta[m] | You may just need to add the `edit` behavior |
| 21:56 | symbioquine[m] | ```javascript |
| 21:56 | symbioquine[m] | myMap.addBehavior('edit', { layer: wktLayer }); |
| 21:56 | symbioquine[m] | ``` |
| 22:00 | zedrckr[m] | Ok, it worked |