Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- info = new OpenLayers.Control.WMSGetFeatureInfo({
- url: 'http://localhost:8080/geoserver/wms',
- title: 'Identify features by clicking',
- queryVisible: true,
- eventListeners: {
- getfeatureinfo: function(event) {
- map.addPopup(new OpenLayers.Popup.FramedCloud(
- "chicken",
- map.getLonLatFromPixel(event.xy),
- null,
- event.text,
- null,
- true
- ));
- }
- }
- });
- map.addControl(info);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement