[OpenLayers-Users] Scale on the map in nautical miles
Mike Adair
madair at dmsolutions.ca
Tue Aug 25 14:00:12 EDT 2009
Markus,
Do you mean the scale line control? I have one working for Nautical
miles and meters like so:
map.addControl(new OpenLayers.Control.ScaleLine({topOutUnits:
'nmi', topInUnits: 'm'}) );
Mike
Markus wrote:
> Dear OL-Specialists,
>
> For www.OpenSeaMap.org I would like to have a map scale in nautical
> miles and kilometers (instead of kilometers and feet):
>
> Upper side: nautical miles and down to 0.001 nautical miles
> Lower side: kilometers and if less than 1 km meters.
>
> Where can I find a scale like this?
>
> If not:
> Who can help us and would like to script a such scale?
>
> Thanks a lot!
> Markus
>
> PS: 1 nm = 1.852 km
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>
--
Michael Adair
Senior Software Architect
DM Solutions Group Inc.
Office: (613) 565-5056 x26
madair at dmsolutions.ca
http://www.dmsolutions.ca
http://research.dmsolutions.ca
More information about the Users
mailing list