[Users] Error "Is not a constructor"
Francesc Cañas
kikocanas at gmail.com
Thu Feb 16 11:04:18 CET 2012
Hi,
Some of OpenLayers.Controls makes error, firebugs says Is not a
constructor...
I put them in the map with:
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);
I add ZoomBox and DragPan and both works, but ZoomTo MaxExtent,
NavigationHistory and some else doesn't. Why is it?
If I try to put them on the var map:
var map = new OpenLayers.Map({
div:"map_id",
maxResolution: 'auto',
projection: "EPSG:4326",
controls: [
new OpenLayers.Control.Navigation(),
],
});
The same thing happen, some of them works and others doesn't...
Thanks!!
--
http://kikocanas.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20120216/6d0776a3/attachment.htm
More information about the Users
mailing list