【发布时间】:2018-10-19 14:49:31
【问题描述】:
我正在从 openlayers 2 迁移到 5。我已经下载了 distribution 以及缩小的 js 和源映射。然后我在 index.html 中包含了 js 文件:
<script src="bower_components/openlayers/ol.js"></script>
现在我想调试源。当我进入ol.js 时,会出现“检测到源地图”消息。问题是我在源映射文件的 chrome 开发控制台源中看不到:
【问题讨论】:
-
如果您点击“检测到源地图”旁边的“更多”会发生什么?
-
@geocodezip 我看到关注i.imgur.com/8aF8xxT.png,但如果我按
Ctrl + P- 看不到openlayers 源。我从 github repo 输入proj.js或其他文件名。
标签: google-chrome openlayers source-maps openlayers-5