javascript - googlemaps:turning the GPolyline cursor to pointer -
i have gpolyline , pops info window when clicked. turn default cursor when hovered over, hand pointer . there way access gpolyline style? here function
//add graph point function addgraph(data, x, y, color, desc) { //get map width , 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 graph 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 )}); }
got working :d
gevent.addlistener(line, "mouseover", function() { $('#map').css("cursor" ,"pointer"); });
Comments
Post a Comment