Discussion:
[mapguide-users] Mapguide 3.0 layer permissions
Kajar
2017-05-17 06:20:41 UTC
Permalink
I'm little confused how permission management working for Mapguide.
What I want to do is setup user rights to view or not to view some layers.
When user logs in then some layers are not accessible.
When I specify users who can have right to view specific layer then for them
application opens, but for those users which is not in the list to view
specific layer the application not opening at all.
I adding or removing rights using layer Properties and Permission tab for
that.
How is the correct way to get this working?




--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Mapguide-3-0-layer-permissions-tp5320761.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
Liglio
2017-05-18 14:35:44 UTC
Permalink
You must know which layers is visible for the user before opening the map,
and then set these layers visible. First you must set all layers not visible
at start up in the map library.



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Mapguide-3-0-layer-permissions-tp5320761p5320961.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
Kajar
2017-05-21 18:59:26 UTC
Permalink
So when map loads all layers must be turned off? But I need some rights based
layers initially be visible for users who can have rights to view it.
Its good to have that those layers not visible at all also in legend, when
user have not right to view those layers.






--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Mapguide-3-0-layer-permissions-tp5320761p5321202.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
Liglio
2017-05-23 02:03:12 UTC
Permalink
In maestro in map configuration you set layers initially not visible. When
you will show the map you set the layers that you want to be visible, based
on the user permissions.
Do you know how to set a layer visible in your code ?



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Mapguide-3-0-layer-permissions-tp5320761p5321368.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
Kajar
2017-05-23 16:32:11 UTC
Permalink
I just thought this layer rights management is done using only maestro or
AIMS Studio.
But as I understood there is need to go to code level to set layers visible
or not when map loads.
Actually I dont know how to set layers visibility in code based user rights
;).
I just use predefined web templates without any additional coding.
If you can point me a right way how to add this layers visibility in code,
I'll be really thankful.
Does this coding means changing template index.html?

Kajar






--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Mapguide-3-0-layer-permissions-tp5320761p5321515.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
Liglio
2017-05-23 18:40:19 UTC
Permalink
When you install mapguide open source, some examples and a help is installed.
See the example "C:\Program
Files\OSGeo\MapGuide\Web\www\dotnetsamples\modifying_maps_and_layers". The
help is "http://localhost/mapguide/help/webapi/" and
"http://localhost/mapguide/help/viewerapi/". You have to code to control
layer visibility for each user.



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Mapguide-3-0-layer-permissions-tp5320761p5321531.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

Loading...