Improvements::

give  your URL<input id="url"></input>
give a Layer<input id="layer"></input>
Make map visible <a onclick = map();>make visible</a>
Function map () {
      wms =  new ol.layer.Tile({
          extent: [-13884991, 2870341, -7455066, 6338219],
          source: new ol.source.TileWMS({
            url: document.getElementById('url').innerHTML,
            params: {'LAYERS': document.getElementById('layer').innerHTML, 
'TILED': true},
            serverType: 'geoserver'
          })
        })
      map.addLayer(wms)
}

-- 
You received this message because you are subscribed to the Google Groups "OL3 
Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/ol3-dev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ol3-dev/a03162ae-4848-4996-a913-eda977876171%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to