[OpenLayers-Users] how to query wms, like wfs?

zach cruise zachc1980 at gmail.com
Mon Feb 24 15:43:24 PST 2014


i got a line (via wfs) over a polygon (via wms). when a user clicks on
the line, i want just the wfs to return. when the user clicks on the
polygon, i want just the wms to return. right now, when a user clicks
on the line, both return.

the two functions:
1. function fwfs(feature){	... }
2. function fwms(evt){ ... }

the two triggers:
1. ...callbacks: { 'click' : fwfs }...
2. ...query[i].events.register('getfeatureinfo', this, fwms);...

this design seemed unavoidable because i thought i had to add and
activate wfs and wms separately, but i am open to other suggestions.


More information about the Users mailing list