05-18-2020 05:47 AM
Hi,
I'm using GMSC2020.
Our customer needs a solution that gives possibility to edit geometry on map. The problem is, that it should work on web browser (so GMSC java application can't be used here). I've found, that GMSC2020 gives possibility to show layers on map by Public maps function. But I can only view layers and cannot find a way how to edit geometry. Is it possible to do that? If not, is there any other possibility to edit geometry using web browser?
Solved! Go to Solution.
05-18-2020 07:48 AM
hi,
please check this post:
Stefano
05-19-2020 06:21 AM
I've checked the link and it looks very promising.
But I need to create more advanced tools for creating geometry. Are there any other functions apart from activatePointDraw() ?
05-20-2020 12:21 AM
the only available method is to capture a point, it is not intended to be used as geometry capturing tool.
05-20-2020 01:04 AM
So I can draw new point/line/polygon but cannot edit existing geometry - is that what You mean?
If so, ale there any other functions except for those three below?
activatePointDraw()
activateLineDraw()
activatePolygonDraw()
05-20-2020 02:38 AM
You can check the mapviewer.js file for functions list. All of the functions are pretty simple and just wrap OpenLayers functions. All mentioned functions will create a geometry that should be possible to save in the session (but I haven't tried with others than points).
05-20-2020 02:41 AM
You can also check this eTraining video:
05-20-2020 03:55 AM
I should also outline, that only the point geometries were tested with GMSC. There's no guarantee that other geometry types will work, but you can try them.