Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drawing can not be edited #5213

Open
davidoesch opened this issue Dec 18, 2020 · 5 comments
Open

Drawing can not be edited #5213

davidoesch opened this issue Dec 18, 2020 · 5 comments
Assignees

Comments

@davidoesch
Copy link
Contributor

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

@procrastinatio
Copy link
Contributor

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

@ltshb
Copy link
Contributor

ltshb commented Apr 21, 2022

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 ltshb closed this as completed Apr 21, 2022
@pakb
Copy link
Contributor

pakb commented Apr 21, 2022

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?

@davidoesch
Copy link
Contributor Author

@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
Copy link
Contributor Author

davidoesch commented Apr 21, 2022

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

@davidoesch davidoesch reopened this Apr 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants