[19:06:28] | * DirtyG has quit (Quit: Leaving) |
[22:26:03] | * farmBOT has joined #farmos |
[05:20:13] | * farmtech[m] has joined #farmos |
[09:13:05] | * ludwig_ has joined #farmos |
[09:16:22] | * ludwig_ has quit (Quit: Leaving) |
[14:15:07] | * svenn_ has quit (Remote host closed the connection) |
[14:53:59] | * svenn_ has joined #farmos |
[15:33:03] | * localisticepicur has joined #farmos |
[16:05:54] | * svenn_ has quit (Remote host closed the connection) |
[16:20:20] | * svenn_ has joined #farmos |
[16:49:04] | <zedrckr[m]> | Hi mstenta , can you help me with some questions about farm-map.js? |
[16:50:05] | <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! |
[16:51:24] | <zedrckr[m]> | Ok thank you |
[16:53:40] | <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? |
[16:53:40] | <zedrckr[m]> | I can already load it from the string, but I can't edit or delete it. |
[16:54:28] | <zedrckr[m]> | ACTION uploaded an image: image.png (44KiB) < https://matrix.org/_matrix/media/r0/download/matrix.org/yETEEznvWqDRoksW... > |
[16:54:41] | <symbioquine[m]> | Are you using farmOS-map inside farmOS or in a custom web application? |
[16:55:00] | <symbioquine[m]> | ah, I see |
[16:55:07] | <zedrckr[m]> | Use this code from your documentation to load the polygon |
[16:55:11] | <mstenta[m]> | zedrckr: https://github.com/farmOS/farmOS-map#drawing-controls |
[16:55:28] | <mstenta[m]> | You may just need to add the `edit` behavior |
[16:56:32] | <symbioquine[m]> | ```javascript |
[16:56:32] | <symbioquine[m]> | myMap.addBehavior('edit', { layer: wktLayer }); |
[16:56:32] | <symbioquine[m]> | ``` |
[17:00:37] | <zedrckr[m]> | Ok, it worked |