harp.gl - 将 harp.gl geojson 点渲染为相对于陆地区域而不是屏幕区域的大小
问题描述
我有一个样式集,如下所示:
styles: {
markerStyleSet: [{
when: "$geometryType == 'point'",
technique: "circles",
renderOrder: 1000, // Render the markers above other objects on the map
color: "#7ED321",
size: 500
}]
}
technique
设置为时"squares"
,无论缩放如何,每个点覆盖的陆地区域都保持不变。但是,我想将这些点呈现为圆形而不是正方形。
当我technique
设置为"circle"
如上面的片段所示时,就会出现问题。这样做会导致我的点根据缩放级别覆盖不同数量的地理区域。如何以类似的样式渲染一个点,SquaresTechnique
但将它们显示为圆圈?
解决方案
推荐阅读
- mysql - MySQL:选择 2 列和第 3 列的最大组合
- javascript - React / Preact 中令人惊讶的缓慢点击事件
- ios - Swift - App Tracking Transparency - 如何显示非个性化 AdMob 内容?
- python - 在 python Numpy 中追加和格式化多维数组
- c# - 试图做一个壁架。问题:transform.position 总是返回vector(0, 0)
- python - 勇敢地不使用 Python Selenium 打开
- docker-compose - 如何在 Dockerfile RUN 中使用环境变量
- javascript - 插入光标js的位置
- azure - 使用 Terraform,如何在 Azure 上创建使用现有托管磁盘的 VM?
- python - 将表单信息导出为 Excel 中的行