Thursday, August 18, 2011

[Google Maps API v2] Poly Line Set Color Option Not Working API V 2 Code attached

i am trying to change the color of polyline on click but it color
option not working resukting in error ... .

GEvent.addListener(polyline, "click", function()
{PolylineOptions({ strokeStyle: new StrokeStyle({color: 0xFF0000})});


i also try this,

GEvent.addListener(polyline, "click", function()
{polyline.setOptions(options: { strokeColor: 'blue' })};

Hopes for your suggestions..

--
You received this message because you are subscribed to the Google Groups "Google Maps API V2" group.
To post to this group, send email to google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate