First try seting all layers invisible in Mapguide maestro. Second set showLayers to CSV string of layers to disly Third: is objectId a string?
On Mon, Mar 1, 2010 at 6:13 PM, durrrr <[email protected]> wrote: > > Hi, > > I have added hideLayers: "Layer ObjectId", into my parameters but the layer > is still visible... here is what i have: > > var params = { > mapdefinition: 'Library://Map/View/TestMap.MapDefinition', > hideLayers: objectId, > } > > > var options = { > singleTile: true, > isBaseLayer: false, > } > > > var layer = new OpenLayers.Layer.MapGuide("Test layer", url, params, > options); > > -- > View this message in context: > http://n2.nabble.com/Using-Mapguide-OS-with-OpenLayers-Setting-Layer-Visibility-tp4638383p4655553.html > Sent from the MapGuide Users mailing list archive at Nabble.com. > _______________________________________________ > mapguide-users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/mapguide-users > -- Clausola di riservatezza: Le informazioni contenute in questo messaggio di posta elettronica e gli eventuali documenti allegati sono riservate e confidenziali ad uso esclusivo del destinatario e ne è vietata la diffusione e la riproduzione in qualunque modo eseguita. Qualora Lei non fosse la persona a cui il presente messaggio è destinato, La invito ad eliminarlo ed a non leggerlo, dandone gentilmente comunicazione al mittente. I Dati sono trattati in accordo al D.lgs n° 196 del 30.06.2003 “Codice in materia dei dati personali”
_______________________________________________ mapguide-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapguide-users
