问题标签 [mapkit-js]
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.
leaflet - Puppeteer + Leaflet JS 与 Apple MapKit PDF 创建问题
使用 Apple MapKit 磁贴时,我在正确导出 PDF 时遇到问题。它适用于 Google 地图或 Bing 磁贴。
预期输出:
实际输出:
请注意图块缩放不正确。
如何重现该问题:
对本地 Puppeteer 服务器使用以下 curl 命令:
您可以在浏览器中访问该页面:https ://en.mycoursewalk.com/coursewalks/18624/print?unlisted_id=e61d9b86d7
包.json
应用程序.js
更新
- 问题只发生在最终以分数缩放级别结束的地图上。我允许 0.25 的缩放步长。
- 该问题仅发生在 Apple MapKit 磁贴上。它适用于谷歌地图或必应。
- 上面的预期输出屏幕截图是通过从 Google Chrome 浏览器打印到 PDF 获得的。地图也在浏览器中正确显示。该问题仅在使用 Puppeteer 生成 PDF 时发生
mapkit-js - 如何在苹果 mapkit JS 中在完整地图上添加图层
我正在尝试在网络上自定义我的苹果地图(Mapkit JS)。我知道您可以设置地图colorScheme
(浅色或深色)。但是有没有更好的方法来定制更多颜色呢?
javascript - Blazor 调用构建 UI 的 JSInterop 脚本无法正确呈现
我试图让它按照微软的文档工作。
下面的脚本代码在现有的 React 应用程序中完美运行,我正在尝试将该应用程序移植到 Blazor。脚本加载并初始化 - 我可以看到 Iframe 已正确加载到浏览器 DOM 中。然而,脚本(Apple 的 mapkit.js 脚本)Attempted to assign to readonly property
在migrateStateTo
函数中出错,试图设置t.tint = this.node.tint
.
MapkitHelper.js
MapkitRenderer.razor
mapkit - 使用 mapkit-js 在页面加载时打开注释标注
我正在使用 mapkit-js。如何在页面加载时以编程方式打开注释自定义标注?我已经看到了 mapkit 的示例How to programmatically set the "selected with callout" state for a MapKit marker pin but nothing for mapkit-js