问题标签 [tilesets]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
api - 在 Mapbox 中将数据集转换为瓦片集
我有一张地图,它从 Mapbox 中获取数据(作为瓦片集)以将它们绘制在地图上。然后,人们必须能够注册并更新地图,因此 Mapbox 中还有一个数据集,用作可以添加新点的数据库。
现在,为了显示地图中的变化,我需要将数据集转换为瓦片集。根据文档,这是通过 Uploads API 完成的。
我想在前端触发这个过程,我有这个代码:
{username} 和 {a_new_tileset_name} 已被替换。dataset_id 是我使用 Datasets API 创建数据集时得到的字符串 id。
控制台日志显示一条消息说“未经授权”,但是,此代码中使用的 private_token 已激活 uploads:read、uploads:write 和 uploads:list 范围(以及数据集和瓦片集的相同范围)。
该文档没有很好地解释这部分,我无法在任何地方找到除此之外的任何信息。我假设 POST 请求负载中的 tileset、url 或 name 键可能存在一些错误,但我没有看到有关 Mapbox 的更多详细信息。
swift - 在 Xcode 中使用 Tile Map Editor 剔除图块
我在 Xcode Tile Map Editor 中创建了一个 skTileMapNode,我以编程方式将其移至左侧。然而,似乎有时瓷砖在离开屏幕之前被移除/剔除,如此处链接的视频所示:
我试过设置 shouldCullNonVisibleNodes = false 但没有效果。
在 xcode 中是否有某种我不知道的垃圾收集?
godot - Problems with godot tileset bitmaps
Im trying to create tileset, using autotiles. I used it a lot before, and it worked well, but now it doesn't.
Here's a bitmap:
And here is how in works:
I have absolutely no ideas what im doing wrong. I checked my old project and there was almost same tileset with same bitmap and it worked well.
Here it is:
UPD: I checked project with working tilemap, created new absolutely same tilemap with the same tileset and same bitmaps and old tilemap works, but new one doesn't. Now I am absolutely confused
javascript - 在代码 HTML 中添加来自 Mapbox Studio Tileset 的弹出窗口
我想将两个 Mapbox Studio 图块集中的弹出窗口(movemouse)添加到 HTML 代码中。此图块集在同一张地图中:
*图块集 1:https ://studio.mapbox.com/tilesets/mapanaval.1ogp366t/#10.95/-34.6229/-58.4428 ,属性[Nombre,Tipo] *图块集 2:https:/ /studio.mapbox.com/tilesets/mapanaval.5f95hcr9/#0.86/0/-58.4,属性[CALLE,TIPO]
¿ 将弹出窗口添加到下一个 html 的正确代码是什么?
谢谢!
javascript - 使用矢量瓦片集在 Mapbox 中进行实时地图可视化
我想通过USGS api提供的数据在世界地图上绘制实时地震,并且我想在不同的图层之间切换(比如 - 过去一个小时、过去一天、过去一周、过去一个月)。Mapbox矢量瓦片集支持这种逐层排列,但这仅适用于Mapbox 瓦片集中上传的数据。
应用程序.js
如何将USGS api 响应绘制为Mapbox 矢量瓦片集?任何帮助将不胜感激。