HSLayers.Control.MeasureΒΆ

HSLayers.Control.Measure is cover control for line length and polygon area measurements.

var measure = new HSLayers.Control.Measure({layer:vector_layer});
map.addControl(this.measure);

// add the controls to map
mapToolBar.addControls([measure.distance, measure.area]);

Another interesting parameter could be renderTo, which expects either Ext.Panel or HTML DIV id.

Previous topic

HSLayers.Control.LayerSwitcher

Next topic

HSLayres.Control.ProjectionSwitcher

This Page