Thanks Christopher I feel stupid for forgetting about it, but I needed the ItemActive and ItemInactive class after the "measuretool"
i.e a css class for MeasureToolItemActive and another one for MeasureToolItemInactive. So In my CSS it is like so: .olControlPanel .MeasureToolItemInactive { background-image: url("img/measure_off.png"); background-repeat: no-repeat; } .olControlPanel .MeasureToolItemActive { background-image: url("img/measure_on.png"); background-repeat: no-repeat; Cheers Andrew -----Original Message----- From: Christopher Schmidt [mailto:[EMAIL PROTECTED] Sent: 06 December 2007 10:59 PM To: Andrew de Klerk Cc: users@openlayers.org Subject: Re: [OpenLayers-Users] Control Panel Multiple Tools with different icons On Thu, Dec 06, 2007 at 10:45:49PM +0200, Andrew de Klerk wrote: > The measure tool will be implemented using the "DrawFeaturePath" and the > Delete feature using the "SelectFeature". I can successfully assign the > appropriate function to each tool, but cannot seem to get it right in > assigning an appropriate icon through the stylesheet - i.e Measure icon > always defaults to the DrawFeaturePathItemActive/Inactive icons regardless > of trying to assign it different classes. If you look in firebug, is your displayClass being applied? This would show up as the class name being "MeasureTool" on the control.panel div. > What do I need to do to assign it a different icon? Also, How do you assign > the default control to your panel? I think my syntax must be incorrect below > for "defaultControl". Below is my code I have implemented: Control.Panel only takes on arg. Put 'em all together. Regards, -- Christopher Schmidt MetaCarta No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.503 / Virus Database: 269.16.15/1173 - Release Date: 2007/12/05 09:29 PM _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users