How do I display "level" value tool tip on Zoom bar as it is scrolled? It can be done on WPF component but no ready property available on
Regards,
Anil
PanZoomBarMapTool.
How do I display "level" value tool tip on Zoom bar as it is scrolled? It can be done on WPF component but no ready property available on
Regards,
Anil
PanZoomBarMapTool.
Anil,
I think that's a intresting idea. Please check the code as following and pay attation to the comments:
<script language="javascript" type="text/javascript">
OnMapCreated = function (map) {
var panzoomBar = map.getControlsByClass("OpenLayers.Control.PanZoomBar")[0];
// Find the slider of PanZoomBar
panzoomBar.slider.onmousemove = function (event) {
// Get the zoom level of the map.
var title = map.getZoom();
// Add the tooltip of the slider
panzoomBar.slider.title = title;
};
}
script>
Any questions please let us know. Thanks
Johnny