[Users] Error "Is not a constructor"

Francesc Cañas kikocanas at gmail.com
Fri Feb 17 11:27:30 CET 2012


What I have in css is:

.Zoom_in{
background-image:url(/OpenLayers/theme/default/img/drag-rectangle-on.png)!important;
width:22px !important;
height:22px !important;
}

But still adding .x-btn. doesn't work.

I link the .css with <link rel="stylesheet" type="text/css"
href="IconCls.css"></link> and the file is at the same folder as html. The
OpenLayers folder is there too.

The code of the control is

action = new GeoExt.Action({
control: new OpenLayers.Control.ZoomToMaxExtent(),
       map: map,
       //text: "max_extent",
*iconCls: "Zoom_extent",*
        tooltip: "zoom to max extent"
});
actions["Zoom_extent"] = action;
toolbarItems.push(action);

When I've added the .x-btn. and it doesn't work I've tried to add at
IconCls ".x-btn.Zomm_extent" but neither works.


-- 
http://kikocanas.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20120217/19a779a6/attachment.htm 


More information about the Users mailing list