[OpenLayers-Users] inconsistency in control syntax
P Kishor
punk.kish at gmail.com
Sun Aug 29 01:00:13 EDT 2010
// the following works
var cs = new OpenLayers.Control.Scale();
cs.div = document.getElementById("scale");
this.map.addControl(cs);
// The following also works
this.map.addControl(new OpenLayers.Control.MousePosition({div:
document.getElementById("coords")}));
// The following does not work. Why?
this.map.addControl(new OpenLayers.Control.Scale({div:
document.getElementById("scale")}));
--
Puneet Kishor
More information about the Users
mailing list