Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get openlayers 3 zoom control to show up on right side?

Tags:

openlayers-3

By default the openlayers 3 zoom controls are on the top left. How can I move it to the top right? The API appears to return a broken link when going into options.

like image 234
Rolando Avatar asked Dec 27 '13 22:12

Rolando


2 Answers

Use cascading style sheets. You need to unset the previous "left" value.

  .ol-zoom {
     left: unset;
     right: 8px;
  }
like image 172
Matt Avatar answered Oct 18 '22 02:10

Matt


Using casading style sheets.

.ol-zoom {
   right: 8px
}
like image 43
Jachym Avatar answered Oct 18 '22 03:10

Jachym