[OpenLayers-Users] Why are my controls not showing up?
Christopher Schmidt
crschmidt at metacarta.com
Thu Dec 13 13:27:48 EST 2007
On Thu, Dec 13, 2007 at 11:20:57AM -0700, Gregor Mosheh wrote:
> Hey, all.
> Some of my controls aren't showing up. Any ideas why?
>
> http://69.59.158.15/spraywatch2/sprayview/?parcelids=6541125,3302275,3302270,3266584,3302273
> Specifically, map.php in the iframe.
>
> I have a ZoomBox() and a ZoomToMaxExtent() declared in controls[] and
> then passed to the Map constructor. All of the other controls on the
> list are operating just fine.
>
> Do these two require additional configuration?
These controls have no visual impact on the map. They are meant to be
used within a control panel only. SEe the NavToolbar for an example.
(You probably want to just create a NavToolbar and then add the
ZoomToMaxExtent -- or possibly even just use the
http://dev.openlayers.org/docs/files/OpenLayers/Control/PanZoomBar-js.html#OpenLayers.Control.PanZoomBar.zoomWorldIcon
zoomWorldIcon option in the panzoombar instead.
Regards,
--
Christopher Schmidt
MetaCarta
More information about the Users
mailing list