Hello all, I'm trying to find an example of using the scale control,
because I want to display the scale in a div off of the map. I tried
extending the control by using OpenLayers.Util.extend and overriding
notice, but nothing ever happens. Are there any examples of this
online? All I can find are ScaleBar examples.
Code:
var scaleControl = new OpenLayers.Control.Scale();
OpenLayers.Util.extend(scaleControl,{
draw:function(){},
notice:function(){
console.log('Notice!');
}
});
map.addControl(scaleControl);
Thanks in advance!
--
HYX
http://hyx-music.com
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users