BGDIINF_SB-2716: Don't allow to edit legacy kml files#328
Conversation
096ba52 to
9886d09
Compare
9886d09 to
95b11c8
Compare
5548495 to
800cc20
Compare
procrastinatio
left a comment
There was a problem hiding this comment.
Did only perform high level tests with
https://sys-map.dev.bgdi.ch/preview/feat-bgdiinf_sb-2716-kml-protect/index.html#/map?lang=fr&lat=47.21326&lon=7.504516&z=8.656&bgLayer=ch.swisstopo.leichte-basiskarte_world.vt&topic=ech&layers=KML|https://public.geo.admin.ch/api/kml/files/jNzproCvRcefLCiL1jFoHg|Dessin,,1
Looks OK to me, but I'm not familiar with the whole KML story (nice, editing is forbidden only for the old KML,even if many KMLs). Warning text is not translated?
800cc20 to
7b2e701
Compare
95b11c8 to
e24b190
Compare
@procrastinatio I did not translate the text, because this feature is only for the MVP, once we are live with the new viewer this will be removed and we will allow to edit legacy drawing. @davidoesch do you think we should translate the kml protection warning ? |
e24b190 to
ee2eb82
Compare
ee2eb82 to
d0c3bcf
Compare
pakb
left a comment
There was a problem hiding this comment.
I can add this disclaimer text to the translation file with in the section specific to the new viewer if we want to translate it.
Not to disable the drawing menu we need to use the click:header event instead of click. The click event will be fired even if disabled while the click:header not.
As long as we are not live on `map.geo.admin.ch` don't allow to edit kml files created by the legacy viewer
…with new translation
e654963 to
336a140
Compare
As long as we are not live on
map.geo.admin.chdon't allow to editkml files created by the legacy viewer
This PR requires first #326
Test link
Test link with legacy kml
Test link