MvScaleBar() To Show Just The Metric (KM) Bar Or Just Miles Bar Not Both (Doc ID 1089152.1)

Last updated on FEBRUARY 08, 2017

Applies to:

Oracle 9iAS MapViewer - Version: 11.1.1.1 and later   [Release: and later ]
Information in this document applies to any platform.

Symptoms


Using the following code for a scale bar:

/********************************************************************
* Add a Scale bar on the bottom left corner of the map *
********************************************************************/

scaleBar = new MVMapDecoration(new MVScaleBar(),0, 1, null, null, 4, -45);
mapview.addMapDecoration(scaleBar);

The visualization of the scale bar is:

20 Miles
20 km

Request:
Make it to show just the metric bar or just the miles bar not both.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms