[OpenLayers-Users] style: Set cursor

Ricardo Bayley ricardo.bayley at gmail.com
Mon Jun 6 19:27:10 EDT 2011


I am having trouble to set the cursor to pointer.

This is my code:

    var myStyle2 = new OpenLayers.StyleMap({
        "default": new OpenLayers.Style({
         rotation:45,
         graphicName: "square",
         cursor:"pointer",
                fillColor: "#5781FC",
                strokeColor: "#000000",
                strokeWidth: "1",
                pointRadius: 4

        }),
        "select":new OpenLayers.Style({
            graphicZIndex: 101,
            cursor:'pointer'
        })
    });

neither cursor nor graphicName are taken into account when drwaing the
features.
Cursor wont work and feature is render to default value "circle".

Any ideas ?

regards

Ricardo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20110606/0d6fae92/attachment.html


More information about the Users mailing list