我如何在开放日子中隐藏国家的标签?
我正在尝试制作一个网络游戏,在那里您必须命名尽可能多的国家,但首先我需要隐藏标签。可以做到吗?如果是这样,我在与隐藏标签有关的文档中什么也没有找到。 提前致谢
import './style.css';
import {Map, View} from 'ol';
import TileLayer from 'ol/layer/Tile';
import OSM from 'ol/source/OSM';
const map = new Map({
target: 'map',
layers: [
new TileLayer({
source: new OSM()
})
],
view: new View({
center: [0, 0],
zoom: 0
})
});
I am attempting to make a web game where you have to name as many countries as you can but first I need to hide the labels. Can this be done? If so how I have found nothing in the documentation relating to hiding labels.
Thanks in advance
import './style.css';
import {Map, View} from 'ol';
import TileLayer from 'ol/layer/Tile';
import OSM from 'ol/source/OSM';
const map = new Map({
target: 'map',
layers: [
new TileLayer({
source: new OSM()
})
],
view: new View({
center: [0, 0],
zoom: 0
})
});
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论