1

My unfinished app is:

"http://190.5.81.197/MAPA_OL/mapa/matricula.html#"

I just want to know why I can't change mouse icon when the mouse is over a marker on a WMS layer. I am using GeoServer to create the WMS layer.

1
  • A WMS layer is an image, there are no individual features
    – nmtoken
    Commented Jun 4, 2017 at 16:34

1 Answer 1

1

if you have extjs, you can do it with this way:

        info = new OpenLayers.Control.WMSGetFeatureInfo({
            url: 'http://demo.opengeo.org/geoserver/wms', 
            title: 'Identify features by hover',
            layers: [layer],
            hover: true,              
            formatOptions: {
                typeName: 'layer', 
                featureNS: 'http://www.openplans.org/topp'
            },
            queryVisible: true
        });

        map.addControl(info);
        info.activate();


        info.events.register("getfeatureinfo", this, showWaitCursor);

        function showWaitCursor(){
            Ext.util.CSS.updateRule('div.olMap', 'cursor', 'wait')
        };

i hope it helps you....

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.