当前位置:网站首页>OpenLayers 初学者指南,源码测试可用
OpenLayers 初学者指南,源码测试可用
2022-07-30 05:45:00 【Nashomon】
系统学习还是看书比较快。初学不建议看官网在线文档,无重点,缺少主线,不适合初学。本书用的openlayers虽然不是最新版,但对入门来说够用了。
书名是从博文 http://linwei.xyz/ol3-primer/index.html 里看到的,在此致谢。
OpenLayers 3: Beginner’s Guide
内容很详细,有源码,对相关概念来龙去脉都有交待,很好的入门书。强烈推荐。
在线书:http://openlayersbook.github.io/
下载源码
该书有源码下载,全部例子经测试可用,便于初学练习。
源码下载地址:https://github.com/openlayersbook/openlayersbook.git
克隆源码到本地:
E:\dev\map>git clone https://github.com/openlayersbook/openlayersbook.git
Cloning into 'openlayersbook'...
remote: Enumerating objects: 1847, done.
remote: Total 1847 (delta 0), reused 0 (delta 0), pack-reused 1847
Receiving objects: 100% (1847/1847), 44.53 MiB | 1.36 MiB/s, done.
Resolving deltas: 100% (49/49), done.
安装依赖
需要已安装node,并安装了cnpm。
E:\dev\map>cd openlayersbook
E:\dev\map\openlayersbook>cnpm install
√ Installed 8 packages
√ Linked 56 latest versions
√ Run 0 scripts
√ All packages installed (70 packages installed from npm registry, used 2s(network 2s), speed 460.03KB/s, json 56(260.64KB), tarball 711.4KB)
运行例子演示
需要已安装Node。
E:\dev\map\openlayersbook>node index.js
body-parser deprecated bodyParser: use individual json/urlencoded middlewares index.js:19:9
body-parser deprecated undefined extended: provide extended option node_modules\[email protected]@body-parser\index.js:105:29
listening on port 3000
显示效果
在浏览器地址栏输入:localhost:3000
点击目录进入章节,可查看例子效果。
边栏推荐
猜你喜欢

2021年软考中级过关

目标检测中的知识蒸馏方法

QT每周技巧(3)~~~~~~~~~串口添加
![[Punctuality Atom] Simple application of sys.c, sys.h bit-band operations](/img/7f/d9f480ab9a1e542e4fa1fda7978e4c.png)
[Punctuality Atom] Simple application of sys.c, sys.h bit-band operations

三种内核结构---宏内核、微内核、混合内核

遥感、GIS和GPS技术在水文、气象、灾害、生态、环境及卫生等应用

Atmospheric particulate matter PMF source analysis

i++与 ++i 的区别

求职准备知识点

How does MATLAB display nii file slice information in the image?
随机推荐
生产力工具分享——简洁而不简单
Machine Learning, Deep Learning Based on MATLAB 2021b
配置MMdetection环境并训练
遥感、GIS和GPS技术在水文、气象、灾害、生态、环境及卫生等应用
边境的悍匪—机器学习实战:第一章 机器学习的基础知识
昆仑通态屏幕制作(连载1)---接触篇
边境的悍匪—机器学习实战:第六章 决策树
openssl 1.1.1 compile statement
ipconfig Command Guide
经典排序之插入排序
openssl1.1.1ARM双编译
QT每周技巧(3)~~~~~~~~~串口添加
QT串口动态实时显示大量数据波形曲线(五)========“最终完美解决版”
QT连载1:readyRead()函数,数据分包不完整解决办法
电子工程师怎么才能规范设计标准、提高设计效率?
抽象工厂模式(Swift 实现)
Atmospheric particulate matter PMF source analysis
QT连载3:基于QT和STM32H750的LORA试验平台(2)
HSPF model application
高交会重要活动之一|2020中国硬件创新大赛全国总决赛