Query PB Spectrum WMS with Openlayers3

المشرف العام

Administrator
طاقم الإدارة
I want to get tiles with CQL_FILTER on spectrum server. There are many examples on geo server but i cant find spectrum example.

There is code block:

WMSLayer = new ol.layer.Tile({ source: new ol.source.TileWMS(({ url: serverLink + 'http://10.0.0.49:8686/rest/Spatial/WMS', params: { 'LAYERS': 'Iller', 'CQL_FILTER': 'TUIK_IL_KODU = 43' //'CQL_FILTER': "PLAKANO = '43'" }, transitionEffect: null, format: 'image/png' }))});map.addLayer(WMSLayer);
  • PlakaNo --> String Field
  • Tuik_Il_Kodu --> Double Field
It gets all tiles from Iller layer.

How can i get Spectrum WMSTile with query via Openlayers3?

Thanks...



أكثر...
 
أعلى