mf-geoadmin3 icon indicating copy to clipboard operation
mf-geoadmin3 copied to clipboard

Drawing can not be edited

Open davidoesch opened this issue 4 years ago • 5 comments

ALL OS ALL BROWSERS

reproduce open https://s.geo.admin.ch/8d6aa5274c

drwaing mode add a feature like text

result

image

"Teilen" is greyed out

Expected result

after adding a feature, teilen is possible

no work around

davidoesch avatar Dec 18 '20 07:12 davidoesch

Hm, the new service has a max size for KML of 2 * 1024 * 1024 = 2'097'152 bytes.

The KML in question has a size of 2'097'023 bytes, which is smaller than the maximum size allowed by the service, but saving this file fails with an HTTP 413 Payload too large. Payload is now 2'100'255 bytes. I think we switch the content type from application/vnd.google-earth.kml+xml to multipart/form-data

procrastinatio avatar Apr 13 '22 10:04 procrastinatio

The issue of payload too large has been fixed. In order to share the drawing you need either to modify it or select a feature, that's how the drawing is designed. @davidoesch if you want to be able to share a copy of a drawing without having to select/modify a feature then this needs to be addressed in the new viewer and need a new ticket for the new viewer project.

ltshb avatar Apr 21 '22 11:04 ltshb

A simple fix would be to add a dummy feature, and then remove it. This should create a copy of the current drawing (as no adminId is present), and now you are the owner of this copy

But that is essentially what seems at fault here, no copy was made?

pakb avatar Apr 21 '22 11:04 pakb

@ltshb @pakb : since there are Workflows of user out in the wild (vbs) which are based on :” if I get a link with a drawing and I open it in edit mode it creates a copy” we should have this for the current viewer. What is the effort to have the original behavior back?

davidoesch avatar Apr 21 '22 12:04 davidoesch

See comment above: estimate to have the original function back?

davidoesch avatar Apr 21 '22 12:04 davidoesch