小编Bea*_*ear的帖子

OpenLayers v 5.3.0 - 找回归因行为

在新版本 v 5.3.0(ol 地图库)中更改了行为归因。在我有图标“i”之前,在它下面显示图层的所有属性。

在此处输入图片说明

在此处输入图片说明

现在我有一些扁平化的信息。

开发者给出了使用之前行为的说明:

归因不可折叠 ol/source/OSM

当地图包含来自ol/source/OSM源的图层时, ol/control/Attribution控件将显示为“可折叠:假”行为。

要获得以前的行为,请ol/control/Attribution 使用 collapsible: true.

但如何实现这一目标?

openlayers openlayers-5

1
推荐指数
1
解决办法
1440
查看次数

javascript - 在 vuejs2 模板中将链接打开为新窗口

我需要打开一个具有一定高度和宽度的新窗口。

在 vuejs2 中我有这样的东西:

<el-table-column label="Link" width="80">
  <template scope="props">
    <a v-bind:href="''+props.row.link+''" target="chart"> Link to chart </a>
  </template>
</el-table-column>
Run Code Online (Sandbox Code Playgroud)

在 props.row.link 中有:http://host/charts/index.php?par=sth 所以这个 href 在新选项卡中打开,但没有高度和宽度,也不在新窗口中打开。

在 html 中就这么简单:

<a href="http://host/charts/index.php?par=1" onclick="window.open('http://host/charts/index.php?par=1', 'chart', 'width=1225, height=770'); return false;">Link to chart</a>
Run Code Online (Sandbox Code Playgroud)

如何在 vue js 2 中实现这一点,也许作为点击方法?

vuejs2 element-ui

0
推荐指数
1
解决办法
1万
查看次数

标签 统计

element-ui ×1

openlayers ×1

openlayers-5 ×1

vuejs2 ×1