Skip to main content
 首页 » 编程设计

OpenLayers教程1

2022年09月06日79落叶无声

官网:https://openlayers.org/

下载:https://openlayers.org/download/

The recommended way to use OpenLayers is to work with the ol package(link). You can install the latest with npm:

建议使用方式为ol包。你可以使用npm来安装最新的:

npm install ol

Hosted builds for development

If you want to try out OpenLayers without downloading anything (not recommended for production), include the following in the head of your html page:

如果你不想下载任何东西,只是想尝试一下OpenLayers(不建议生产环境下这样做),包含如下内容在你的html网页的头部:

<script src="https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en/v6.4.3/build/ol.js"></script> <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en/v6.4.3/css/ol.css">

Downloads for the v6.4.3 release

Archive Description
v6.4.3-dist.zip Includes a full build of the library (ol.js), a source map (ol.js.map), and library CSS (ol.css with source map ol.css.map).
v6.4.3.zip Includes all of the above plus examples, API docs, and sources.

See the v6.4.3 release page for a changelog and any special upgrade notes.

For archives of previous releases, see the complete list of releases.


本文参考链接:https://www.cnblogs.com/2008nmj/p/13783020.html