<div>Hi,</div><div><br></div><div>Some of OpenLayers.Controls makes error, firebugs says Is not a constructor...</div><div><br></div><div>I put them in the map with:</div><div><br></div><div>action = new GeoExt.Action({</div>
<div>control: new OpenLayers.Control.ZoomToMaxExtent(),</div><div> map: map,</div><div> //text: "max_extent",</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>iconCls: "zoom_extent",</div>
<div> tooltip: "zoom to max extent"</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>});</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>actions["zoom_extent"] = action;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>toolbarItems.push(action);</div><div><br></div><div>I add ZoomBox and DragPan and both works, but ZoomTo MaxExtent, NavigationHistory and some else doesn't. Why is it?</div>
<div>If I try to put them on the var map:</div><div><br></div><div>var map = new OpenLayers.Map({</div><div><span class="Apple-tab-span" style="white-space:pre">                                        </span>div:"map_id", </div><div><span class="Apple-tab-span" style="white-space:pre">                                        </span>maxResolution: 'auto',</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                        </span>projection: "EPSG:4326",</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>controls: [</div><div><span class="Apple-tab-span" style="white-space:pre">                                                        </span>new OpenLayers.Control.Navigation(),</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                                                                                        </span></div><div><span class="Apple-tab-span" style="white-space:pre">                                                </span>],</div><div><span class="Apple-tab-span" style="white-space:pre">                                        </span>});</div>
<div><br></div><div>The same thing happen, some of them works and others doesn't...</div><div><br></div><div>Thanks!!</div><div><div><br></div><div><br></div>-- <br><a href="http://kikocanas.blogspot.com" target="_blank">http://kikocanas.blogspot.com</a><br>
</div>