Opened 17 years ago
Closed 15 years ago
#377 closed defect (wontfix)
.NET API: Switching MgLayerGroup visibility on/off doesn't work
Reported by: | MaksimS | Owned by: | |
---|---|---|---|
Priority: | medium | Milestone: | |
Component: | Resource Service | Version: | 1.2.0 |
Severity: | major | Keywords: | |
Cc: | External ID: |
Description
This won't switch on/off targeted MgLayerGroup, but it should. When I issue:
Dim map As MgMap = ...get runtime Map... Dim layerGroup As MgLayerGroup = map.GetLayerGroups.GetItem(layerGroupName) layerGroup.SetVisible(True) map.Save(...ResourceService...)
and then call JavaScript function parent.parent.Refresh(); from Task Pane, base layer group gets switched on only in legend pane, but map representation won't change. MgLayerGroup doesn't have ForceRefresh() method like MgLayer.
If user zooms in/out after above code runs, base layer gets refreshed as expected. Ivan Milicevic proposed to perform a slight zoom in/out (e.g. for a pixel), but this workaround is not applicable for maps with preset scale range.
Change History (2)
comment:1 by , 17 years ago
Component: | Web API → Resource Service |
---|
comment:2 by , 15 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Old ticket; closing. If still a concern, please retest at version 2.1 and re-open.