I haven't been able to get a variation of that code working either. When I try to create report
var report = function(e) ... I get a this.map is null js error. But layers have been added that is how it set userLayer. ------- With my old code I get multiple js errors when I move the mouse over the map. Error: this.layer.getFeatureFromEvent is not a function Source File: http://biomap.wisc.edu/Biofuels_dev/OpenLayers27/lib/OpenLayers/Handler/Feature.js Line: 225 userHoverControl = new OpenLayers.Control.SelectFeature( userLayer, { hover: true, highlightOnly: true, clickout: false, toggle: false, multiple: false, overFeature: function(feature) { alert(feature.attributes.site_name); }, outFeature: function(feature) { console.log('hover out: ' + feature.attributes.site_name); }, } ); map.addControl(userHoverControl); userHoverControl.activate(); -- View this message in context: http://n2.nabble.com/Hover-over-point-Display-name-tp4897211p4898287.html Sent from the OpenLayers Dev mailing list archive at Nabble.com. _______________________________________________ Dev mailing list Dev@openlayers.org http://openlayers.org/mailman/listinfo/dev