在页面https://openlayers.org/en/latest/examples/image-vector-layer.html我将HTML代码从地图下复制到/tmp/a.html并运行firefox /tmp/a.html.
最初有两个问题很容易解决:
要解决这个问题:
<script>为<script type="module"><meta charset="UTF-8">到<head></head>但是第三个错误怎么办?
TypeError: Error resolving module specifier: ol/Map.js
我有Firefox 60.0.1.
那么,示例中的HTML代码是否可以像我一样使用,或者我误解了什么?
我的代码需要import Map from ol/Map.js什么?
(我试图重新提出问题,但如果我仍然应该得到负面排名,请解释原因.谢谢)
openlayers ×1