Advertisement
Guest User

Untitled

a guest
Oct 30th, 2014
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. info = new OpenLayers.Control.WMSGetFeatureInfo({
  2. url: 'http://localhost:8080/geoserver/wms',
  3. title: 'Identify features by clicking',
  4. queryVisible: true,
  5. eventListeners: {
  6. getfeatureinfo: function(event) {
  7. map.addPopup(new OpenLayers.Popup.FramedCloud(
  8. "chicken",
  9. map.getLonLatFromPixel(event.xy),
  10. null,
  11. event.text,
  12. null,
  13. true
  14. ));
  15. }
  16. }
  17. });
  18. map.addControl(info);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement