[OpenLayers-Users] Add custom control, possible?
Planet)x
andrew.stewart at reddeer.ca
Tue Aug 10 12:51:15 EDT 2010
Ok I was also able to figure this out -
for the CSS style I did this
.olControlPanel .olControlButtonHomeItemActive {
background-image:
url("OpenLayers-2.9.1/theme/default/img/home.gif");
}
.olControlPanel .olControlButtonHomeItemInActive {
background-image:
url("OpenLayers-2.9.1/theme/default/img/home.gif");
and for my button I did this -
var btn = new OpenLayers.Control.Button({trigger: onTrigger, title: "Reload
Website", displayClass: 'olControlButtonHome'});
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Add-custom-control-possible-tp5393642p5393884.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list