VDS Technologies


WMSService and WMSlayer

6/11/2012 12:39:50 PM
Total Posts 51

WMSService and WMSlayer

What is different WMSService and WMSlayer?

Can we do create/edit/update on WMSService?

I tried to create WMSService but problem on :

Dim feature As AspMap.Feature
Dim renderer As AspMap.FeatureRenderer

Is it Feature and renderer class unable to include on WMSService?


mycode like this:

Protected Sub AddMapLayers(ByVal map As AspMap.Web.Map)
Dim LayerFolder As String = HttpContext.Current.Server.MapPath("MAPS/ATB/ASSET/MI/")
Dim layerImageFolder2010 As String = HttpContext.Current.Server.MapPath("MAPS/Images/2010/")

map.AddLayer(layerImageFolder2010 & "QB_2010_LL.ecw")
map.AddLayer(LayerFolder & "DMZ.Tab")

Dim layer As AspMap.Layer
Dim feature As AspMap.Feature
Dim renderer As AspMap.FeatureRenderer

layer = map("DMZ")
layer.LabelField = "DMano1"
layer.LabelFont.Name = "Verdana"
layer.LabelFont.Size = 12
layer.LabelStyle = AspMap.LabelStyle.PolygonCenter
layer.Symbol.LineColor = Color.Crimson
layer.Symbol.Size = 3
'layer.Opacity = 0.2
layer.Symbol.FillStyle = False

End Sub

Public ReadOnly Property IsReusable() As Boolean Implements IHttpHandler.IsReusable
Return False
End Get
End Property
End Class


6/13/2012 8:37:53 AM
Total Posts 329

Re: WMSService and WMSlayer

These classes are fully described in the documentation at 'Using Online Mapping Services/Web Map Services'.

Any AspMap classes can be used. Provide more information.

6/13/2012 11:22:41 AM
Total Posts 51

Re: WMSService and WMSlayer

Yes, now all feature is OK. I have tried it.