Adding GoogleMaplayer inside WMS

1/16/2018 3:56:38 AM
Total Posts 51

Adding GoogleMaplayer inside WMS

Hi,

Is it possible to add Googlemaplayer inside WMS ?

I tried it but not work.

 

Public Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest
Dim wms As AspMap.Web.WmsService = New AspMap.Web.WmsService()

If wms.IsWmsRequest Then
Dim map As AspMap.Web.Map = New AspMap.Web.Map()
map.ImageOpacity=0.7

'AddMapLayers(map)
AddGoogleMapsLayer(map)

wms.ProcessRequest(map)
End If

End Sub

 

1/17/2018 2:59:32 AM
MVP
Total Posts 328

Re: Adding GoogleMaplayer inside WMS

No, Google Maps can be added only via Java Script in a web page.

The WmsService class generates am image, it is impossible to insert java script code into the image.