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.

  • A WMS layer is an image, there are no individual features – nmtoken Jun 4 '17 at 16:34
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, privacy policy and cookie policy

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