googlemaps:turning the GPolyline cursor to pointer

I have a GPolyline , which pops up an info window when it is clicked. I would like to turn the default cursor when hovered over, from a hand to a pointer . Is there a way to access the GPolyline style? here is my function


//add graph to point
function addGraph(data, x, y, color, desc) {
    //get map width and height in lat lon
    var d = map.getBounds().toSpan();
    var height = d.lng();
    var width = d.lat();
    var maxsize = 0.9;
    var pointpair = [];
    var increment = (parseFloat(height) / 10.0) / 100;
    var start = new GPoint(parseFloat(x), parseFloat(y));
    var volume = parseInt((parseFloat(data) * 100) / maxsize);

    pointpair.push(start);
    //draw the graph as an overlay
    pointpair.push(new GPoint(parseFloat(x + increment), parseFloat(y + increment)));
    var line = new GPolyline(pointpair, color, volume);


    var label = new Label(new GLatLng(parseFloat(y), parseFloat(x)), parseInt(data * 100) + "%", "f", new GSize(-15, 0));

    map.addOverlay(label);
    map.addOverlay(line);
    GEvent.addListener(line,'click',function(para)
        {map.openInfoWindowHtml(para,desc )});

}

Answers


got it working :D

 GEvent.addListener(line, "mouseover", function() {
        $('#map').css("cursor" ,"pointer");
    });


Need Your Help

Starts static's life time realy on programm execution?

c static c99 undefined-behavior

Does an static variable realy exists for the whole programm execution?

Should I create my AsyncCallback as a new object and is EndInvoke optional?

c# asynchronous

I am trying to use asynchronous calls to save a database and I have realised my understanding of how things work may be incorrect. I have done a number of google searches but it hasn't helped to re...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.