[mapguide-users] Invoke URL
madhurchanana
madhurchanana92 at gmail.com
Mon Dec 5 01:59:09 PST 2016
Thanks Jackie, i was able to resolve that issue.
However, i am trying to get a WMS layer on button click event from the
widget. the fuction to be called is
function render_layer()
{
var map = parent.Fusion.getWidgetById('Map');
var olmap = map.oMapOL;
alert(olmap);
var new_layer = new parent.Openlayers.Layer.Image({
source: new Openlayers.source.ImageWMS({
url: 'http://localhost:8080/geoserver/wms?',
params: {'LAYERS': 'Mapguide_data:Indo_land'},
serverType: 'geoserver'
})
})
olmap.addLayer(new_layer);
}
i get the following error in FusionSF.js
SCRIPT5007: Unable to set property 'className' of undefined or null
reference
File: fusionSF-compressed.js, Line: 1291, Column: 456
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Invoke-URL-tp5297362p5298585.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list