This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Umap Disable editing on public map

1
1

Morning people

I had some good advice on creating personal maps an am using Umaps, so thanks for that.

I can view other users maps which appear to have disabled the pencil icon

On his map the Edit button has been disabled because I assume he's managed to disable it form the public view, similar for all of the others.

For the life of me I can't see how to disable the 'pencil' icon. Any help would be appreciate.

Supplementary: This is the map iframe on a test site: http://submarine.gg/map/ Note when you 'see full screen' the pencil appears. Ideally I'd like to just hide that pencil as the functions are disabled.

Thanks in advance

asked 05 Nov '13, 09:27

Submarine's gravatar image

Submarine
1314413
accept rate: 0%

edited 05 Nov '13, 09:34

perhaps, you, as the owner of the map, will always see the edit mode ?

(05 Nov '13, 18:15) escada

I have the same problem. Maybe someone can help me please? How can i disable the edit pen in the public version?

With the iframe this is possible, but everyone can change the parameter.

(16 Jun '14, 23:16) lust-auf-dra...

3 Answers:

2

All hope this is useful. I've mailed the owner and he's come back with the following. Append "?allowEdit=0" to the shared map - this gets rid of the 'pencil' icon.

answered 06 Nov '13, 10:28

Submarine's gravatar image

Submarine
1314413
accept rate: 0%

1

On the website of uMap there is a button called "Feedback" which contains an email address of the author ... maybe you can ask him direktly?

or see the OSM wiki about UMap

answered 05 Nov '13, 17:12

stephan75's gravatar image

stephan75
12.6k556210
accept rate: 6%

edited 05 Nov '13, 17:16

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866

0

On the right hand side of your map:

Click pencil Click key icon Set Edit Status to 'only owner can edit'

answered 17 Jun '14, 09:18

Submarine's gravatar image

Submarine
1314413
accept rate: 0%

Thanks Submarine! I've tried. But it doesn't work. The icon is still there, only changes could not be saved.

Yesterday i've opened your map ( http://umap.openstreetmap.fr/en/map/visitguernsey_2486 ) and there was no pencil icon. Today there is also one. I don't understand.

(17 Jun '14, 09:32) lust-auf-dra...

To hide the pencil when embedding the map as an iframe, I added “allowEdit=0&editInOSMControl=0” to the query string. Basically everything after the “?” sets a property on the embedded map.

(17 Jun '14, 10:30) Submarine

Yes, that's right. But everyone can change the URL parameter. So everyone can clone/copy each map.

(17 Jun '14, 10:36) lust-auf-dra...

Ok, I've closed a map for you to try. http://u.osmfr.org/m/10864/ Try and edit it it. Set to only me can edit. Relatively sure you can't save your changes

(17 Jun '14, 10:46) Submarine

Source code available on GitHub .