angularjs - 在 openlayer Angular 指令缩放按钮不显示

标签 angularjs angularjs-directive openlayers openlayers-3 angular-openlayers

我在 map 上没有任何缩放按钮

i don't have any zoom button in map

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

我该如何展示它们?正负

我使用 angular openlayer 指令

最佳答案

你需要导入css文件

<link rel="stylesheet" href="https://openlayers.org/en/v4.6.5/css/ol.css" type="text/css">

关于angularjs - 在 openlayer Angular 指令缩放按钮不显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50847383/

相关文章:

javascript - 如何在 AngularJS 指令中对 Controller 进行单元测试?

gis - 从 OpenLayers 的新增功能中获取 LonLat

javascript - Mapstraction - 动态绘制多边形

css - OpenStreetMap 覆盖 map div 位置

javascript - 在悬停时显示全名 limitTo Content 使用 angularjs?

angularjs - 带有 ons-list 的 ons-carousel 无法使用初始索引 ="1"正确呈现

javascript - 如果没有用户交互,AngularJS 目录不会更新

angularjs - 在 Angular 指令中查找元素子元素

angularjs - Sass 不使用 angular-cli 编译

javascript - Angular : push data into nested array