[OpenLayers-Users] OpenLayers.Control.Scale Example
Rob Hyx
robhyx at gmail.com
Wed Dec 19 09:35:01 PST 2012
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
More information about the Users
mailing list