revilosun / WmsMapKit_Swift

MIT License
7 stars 2 forks source link

Multiple overlays #2

Open dneykov opened 8 years ago

dneykov commented 8 years ago

Hi, your WMS Class is doing great job, but I was wondering is it possible to show/hide multiple wms overlays? Thanks

dneykov commented 8 years ago

I figured it out. If some one need something like this. I'm storing each layer in array of type [String: WMSTileOverlay]

and show/hide the particular overlay self.map.addOverlay(mapOverlays[overlayId]!) self.map.removeOverlay(mapOverlays[overlayId]!)

revilosun commented 8 years ago

Great! Good solution.