LineString Layer type when reading all layer #1118
Replies: 3 comments 1 reply
-
Can you please create a demo? https://jsfiddle.net/o1dwu2vg/ |
Beta Was this translation helpful? Give feedback.
-
I just noticed that you are using a different method to retrieve the drawn shaped i was using the folliwing loop in my code: mainMapInstance.eachLayer(function (layer) { ///save shape is your the getShape method screen throught those layer automatically ? Im working ona feddle with both options... but wante to know in advance... |
Beta Was this translation helpful? Give feedback.
-
FYI, i found the bug on my end -- apparently, getShapes screen temporary Line String Layers intenally created by Geoman ? so running it will actually nor return any Line String layers. However using the following loop to retrive the layers: Actually gets all the temporary items. Just though ppl would like to know that especailly when trying ot save shapes to a DB . |
Beta Was this translation helpful? Give feedback.
-
Helo,
We have a flow where we add shapes via the editor than loop the shapes to save to DB.
We are using the Uril in geoman to read all the layers.
When reading polygon lines -- In addition to the Polygon feature type we sometime get a LineString feature type in addition to the polygon (so we get 2 layers when there is only 1 on the screen) is that something internal to gEoman when creating poylygon with borders ?
Beta Was this translation helpful? Give feedback.
All reactions