geosolutions-it / MapStore2

The solution to create and share maps, dashboards, geostories with 3D support on the web. And it is open-source too!
https://mapstore.geosolutionsgroup.com/
Other
512 stars 399 forks source link

Add true bearing to measure tool #5180

Closed offtherailz closed 4 years ago

offtherailz commented 4 years ago

Description

Adding to "cfg" of the Measure plugin ( in a context) this:

"defaultOptions": {
    "trueBearing": {
        "measureTrueBearing": true,
       "fractionDigits": 2
       }
}

The format of the bearing will result thanged as for the specs, and the label of the button "bearing" will indicate "true bearing"

What kind of improvement you want to add? (check one with "x", remove the others)

Other useful information

ISO specs https://www.sis.se/api/document/preview/905247/

ElenaGallo commented 4 years ago
"defaultOptions": {
    "trueBearing": {
        "measureTrueBearing": true,
       "fractionDigits": 2
       }
}

@dsuren1 The above configuration has not been added to the "cfg" of the Measure plug-in (in a third step of the context wizard)

measure_cfg

offtherailz commented 4 years ago

@ElenaGallo This configuration should be added only in customer's installation. By default MapStore should continue to use the default one (without configuration). Make you sure only that adding this configuration to a specific context works.


"cfg": {
"defaultOptions": {
    "trueBearing": {
        "measureTrueBearing": true,
       "fractionDigits": 2
       }
}
}