[OpenLayers-Users] assigning custom mouse cursor to StyleMap

Imran Rajjad rajjad at gmail.com
Mon Jul 12 07:50:00 EDT 2010


Hi,

I`m trying to assign a custom mouse cursor to a styleMap.

this is how im trying to do it

var highlighted = new OpenLayers.Style({
																		  'strokeWidth': 1,
  																		'strokeColor': '#ff0000',
  																		'fillColor': '#ff0000',
  																		'fillOpacity':0.4,
  																		'cursor': 'url('openlayers/theme/default/img/pan.gif')'
  																		
																		}); // style for vector layer to be highlighted


but the cursor wont change, although it works for default built in cursors ,

regards,
Imran--
I.R



More information about the Users mailing list