google maps scaleControlOptions changing position of scale on map

1k views Asked by At

I noticed that there was no option to change the position of the scale on google maps using scaleControlOptions (correct me if I'm wrong) and was wondering if there was any way to get around that and display the scale on the bottom left position.

2

There are 2 answers

1
not_a_bot On BEST ANSWER

According to the documentation:

scaleControl enables/disables the Scale control that provides a simple map scale. By default, this control is not visible. When enabled, it will always appear in the bottom right corner of the map.

So unfortunately, you won't be able to put it in the bottom left position.

0
Simon On

You can't do it with the built in options unfortunately, but you can do it with some simple CSS:

.gm-bundled-control-on-bottom {
    right: auto !important;
    left: 25px;
}

Not sure whether this goes against their TOS but it works.