3

我在地图上没有任何缩放按钮

我在地图上没有任何缩放按钮

<openlayers ol-center="center" height="345px" width="560px">
    <ol-marker ol-marker-properties="coords"><ol-marker>
</openlayers>

我怎样才能给他们看?加号和减号

我使用角度 openlayer 指令

4

1 回答 1

2

你需要导入css文件

<link rel="stylesheet" href="https://openlayers.org/en/v4.6.5/css/ol.css" type="text/css">
于 2018-06-14T10:28:05.943 回答