Hi Steve,
You are right: for the OpenLayers Measure Control, displaySystem:
'english' is the way to change meters/kms to feet/miles.
There is a way to pass this parameter into the Heron measurelength tool.
It is a bit elaborate: you have to replace the entire instance of
OpenLayers.Control.Measure in the "options" config object with your own,
this will replace the default, :
options: {geodesic: true,
control: new
OpenLayers.Control.Measure(OpenLayers.Handler.Path, {
persist: true,
immediate: true,
displayClass: "olControlMeasureDistance", // css-Cursor
displaySystem: 'english',
handlerOptions: {
layerOptions: {styleMap: new OpenLayers.StyleMap({
"default": new OpenLayers.Style(null, {
rules: [new OpenLayers.Rule({
symbolizer: {
"Point": {
pointRadius: 10,
graphicName: "square",
fillColor: "white",
fillOpacity: 0.25,
strokeWidth: 1,
strokeOpacity: 1,
strokeColor: "#333333"
},
"Line": {
strokeWidth: 1,
strokeOpacity: 1,
strokeColor: "#FF0000",
strokeDashstyle: "solid"
}
}
})]
})
})
}
}
}),
.
},
(This also allows you to change other parameters like line and cursor
style). Hope this helps, best,
Just
> --
> --
> You received this message because you are subscribed to the Google
> Groups "geoext-viewer-devel" group.
> To post to this group, send email to
>
geoext-vi...@googlegroups.com
> To unsubscribe from this group, send email to
>
geoext-viewer-d...@googlegroups.com
> For more options, visit this group at
>
http://groups.google.com/group/geoext-viewer-devel?hl=en
>
> ---
> You received this message because you are subscribed to the Google
> Groups "Heron Mapping Client Development" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
geoext-viewer-d...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>