[OpenLayers-Users] z order of pan zoom controls

bradleyspencer brad at cubewerx.com.au
Thu Sep 27 18:28:01 EDT 2007


Michael,

I position the zoom controls 'off map' so that I get maximum map
real-estate.

I do this with a Div and I presume you can do the same and also set a
z-index in the styles for that Div (I have not done it though).

map.addControl(new OpenLayers.Control.PanZoomBar({div:$('zoomControl')}));

Anyway, see my example at http://demo.cubewerx.com.au/retirement.html

Hope this helps.

Cheers,


Brad Spencer


-----Original Message-----
From: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org]On
Behalf Of Michael Quentel
Sent: Friday, 28 September 2007 12:38 AM
To: users at openlayers.org
Subject: [OpenLayers-Users] z order of pan zoom controls

Please, where do I change the z order of the pan zoom controls?  I
developed a custom client that consumes a proprietary map service (in a
WMS-like manner, based on the WMS Untiled code--thank you for this
example), but the map image seems to be getting drawn on top of the pan
zoom controls.  I think this is happening because I briefly see the
controls appear just before the map appears.

Thank you.

Mike Quentel


---------------------------------------------------------------------
This transmission (including any attachments) may contain confidential
information, privileged material (including material protected by the
solicitor-client or other applicable privileges), or constitute non-public
information. Any use of this information by anyone other than the intended
recipient is prohibited. If you have received this transmission in error,
please immediately reply to the sender and delete this information from your
system. Use, dissemination, distribution, or reproduction of this
transmission by unintended recipients is not authorized and may be unlawful.
_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users




More information about the Users mailing list