Hi there good people,
I have need to have the panzoombar placed on the right of the map.
I can do this with jquery, but it doesn’t seem to work when i do an async callback with an updatepanel.
For some reason the panzoombar can’t be found after the async callback, even when i try to delay the call.
Is there no way of setting the default css on it. The styles seem to be built into the element itself so you can’t override with css.
Please, any help will be appreciated.
Align PanZoomBar to the right
Hi Eugene,
Please try to the below codes:
<script type=
<code style="color: blue;">"text/javascript"<code style="color: #000000;">>
OnMapCreating =
function
() {
OpenLayers.Control.PanZoom.X = 400;
OpenLayers.Control.PanZoom.Y = 4;
}
</script>
Just set the x value based on your requirement.
Thanks,
Johnny
You, sir, have saved my bacon!
Thanks so very much. Works exactly as advertised!
Hi Eugene,
You are so welcome and good to hear it works. :)
Any other questions, please don’t hesitate to let us know.
Johnny