简体   繁体   中英

Trying to style openlayers3

How am I supposed to style openlayers3 in the best way possible? I'm really struggling with this. The easiest way for me is to change the original ol.css, but that is not good practice.

For example, changing the placement of the control buttons to the right took me quite a while.

Should I do this with CSS or in JavaSCript?

I'm currently having issues with removing the tool-tip when hovering the buttons. How do I do that?

The tooltip has the class:

.ol-has-tooltip [role=tooltip]

How do I hide it?

display:hidden

does not work.

Thanks for any advice and help.

this will do

display:none;

try to use !important to overide already existed css property

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM