[mapguide-users] SetVisible from a BaseLayer or MgLayerGroupType=BaseMap

Zac Spitzer zac.spitzer at gmail.com
Tue May 7 00:09:24 PDT 2013


Hi Emma,

when posting please always state which version of MapGuide, which Viewer
etc you are using

Regards

Zac


On Tue, May 7, 2013 at 5:07 PM, Emma Schmidt <emma.25 at gmx.net> wrote:

>  Hi all,
>
> I would like to change the visibility of a LayerGroupType: BaseMap. It's
> not working as I accepted. My Legend works fine, if I change the visibility
> of the BasMap Group nothing happen until I zoom to a different Scale using
> the statusbar. If I do, the BaseMapGroup visibility is like it should be.
> But I need this after changing the visibility not after another step of
> zooming.
> Zooming to a different Scale using the viewer api doesn't work…..
>
> I can't find something in the web api, which says that is not possible to
> change the visibility at all.
> I also tried to change the visibility by using the web api, but that’s not
> a valid request
>
> Dim layer_base As MgLayerBase = map.GetLayers.Item(51)
>         layer_base.SetVisible(False)
>
>
> Thanks for all replies
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>


-- 
Zac Spitzer
Solution Architect / Director
Ennoble Consultancy Australia
+61 405 847 168
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapguide-users/attachments/20130507/76a60323/attachment.html>


More information about the mapguide-users mailing list