Opened 13 years ago

Closed 7 years ago

# Improve ticks for scale slider

Reported by: Owned by: jstein team normal Core latest

there are 5 ticks at the scale

```|--,--|--,--|
0       249m
```

why is the 3rd and the 5th tick larger?

The value "249m" is centered below the 4th tick. It should nominate the whole length.

Is it possible, to draw a individual bar with more human readable values?

```Zoom A

|--,--|--,--|
0     50    100 m

Zoom B

|---,---|---,---|
0       .5      1 km
```

### comment:1 Changed 13 years ago by stoecker

Resolution: → fixed new → closed

(In [3234]) fixed #4889 - map scale middle line was too long

### comment:2 Changed 13 years ago by anonymous

Resolution: fixed closed → reopened

it looks if only the Line was fixed:
g.drawLine(49, 3, 49, 7);

the ticks should partition the distance in parts that make sense:

1/4 of 249m = ?

NICE:
1/4 of 100m = 25 m

### comment:3 Changed 13 years ago by stoecker

Resolution: → wontfix reopened → closed

Well, we have no real fine zoom steps, so there would be lots of work involved to have nice parts. Also it would confuse users when the scale changes verytime.

### comment:4 follow-up:  5 Changed 13 years ago by jstein

Resolution: wontfix closed → reopened scale in josm editor area unclear → ticks make no sense Example: (29m /4 Ticks) enhancement → defect

it would only need to find the next matching scale.

at least each tick should represent an integer value of meter, else the ticks dont make any sense.

its confusion to divide 29 m in quarters, not to change the length of a bar.
There is nothing bad to change this bar to fit the scale of the map.

one could plot
length mod (4 * 10x) = 0 for values (0.. 32) * 10x
length mod (4 * 5 * 10x) = 0 for values (32..100) * 10x

where x is a factor to fit on all scales.

That should be easy to code and the ticks make sense then.

### comment:5 in reply to:  4 ; follow-up:  7 Changed 13 years ago by bastiK

That should be easy to code and the ticks make sense then.

Currently we have too many requests for too view developers. Your suggestion makes sense, but maybe it'll take a while till someone does it.

### comment:6 Changed 12 years ago by stoecker

Summary: ticks make no sense Example: (29m /4 Ticks) → Improve ticks for scale slider defect → enhancement

### comment:7 in reply to:  5 Changed 7 years ago by Don-vip

Description: modified (diff) → duplicate reopened → closed

Closed as duplicate of #12644.

maybe it'll take a while till someone does it.

6 years :)

### Modify Ticket

Change Properties