Ticket #2509 (closed feature: wontfix)
MeasureToolbar: New toolbar to measure length, areas and shapes.
| Reported by: | jorix | Owned by: | jorix |
|---|---|---|---|
| Priority: | minor | Milestone: | Addins |
| Component: | Control | Version: | SVN |
| Keywords: | Cc: | ||
| State: |
Description
To measure with OpenLayers is necessary use measure control, but work with it requires some API user effort. I think this ticket simplify API use to measure.
MeasureToolbar is a toolbar to measure. It is easy to use for end user. It displays a toolbar with buttons and the measure value.
Characterized by:
- Show the data in a div into the Panel, the developer may forget to make a div for this.
- Shows the area and perimeter length simultaneously for polygons.
- Allows measurement of features in vectors layers and also reports the name of the feature.
Other features:
- Measures are not rounded to a fixed number of decimals, are showing only the significant digits (default 4, shows for example: 134.2 m, 3.437km or 453,500 km)
- Can copy the text of the measure obtained. Some mouse events on the div of measure value are disabled.
- The vector layers are automatically detected to measure features option, see measureLayers option.
- The buttons have title (currently only in English, Spanish and Catalan [my native language])
This require ticket #2501. They are necessary for to give length and area simultaneously, and also to allow for measuring a geometry from a vector layer.
Also uses the #2508, but is not required to work.
For better appearance, in non quirks mode on can add this in CSS:
.olControlMeasureToolbar {width: auto;}
NOTE: The attached patch also contains an example of using.
Work ok in IE8, FF35 and CH4.
SVN Revision Number: 10094

