当前位置:网站首页>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
点击目录进入章节,可查看例子效果。
边栏推荐
- Based on R language geographic weighted regression, principal component analysis, discriminant analysis and other spatial heterogeneity data analysis
- Configure MMdetection environment and train
- 配置MMdetection环境并训练
- influxDB运维记录
- 常用损失函数(一):Focal Loss
- Biome-BGC 生态系统模型与应用
- 重磅揭晓!第十四届深创赛福田预选赛区暨华秋第八届硬创大赛华南分赛区晋
- 边境的悍匪—机器学习实战:第一章 机器学习的基础知识
- Self-augmented Unpaired Image Dehazing via Density and Depth Decomposition程序运行记录
- Rsync实现Win系统间的文件夹或数据同步
猜你喜欢

Configure MMdetection environment and train

昆仑通态屏幕制作(连载1)---接触篇

【正点原子】IIC的学习与使用(未完...)

Dropout原理及作用

华秋电子成为开放原子开源基金会openDACS捐赠人,共建 openDACS开源生态

jvm之方法区

"R Language + Remote Sensing" Comprehensive Evaluation Method of Water Environment

标准化(Normalization)知识点总结

常用损失函数(二):Dice Loss

Self-augmented Unpaired Image Dehazing via Density and Depth Decomposition program running record
随机推荐
Massive remote sensing data processing and application of GEE cloud computing technology [basic, advanced]
无人机生态环境监测、图像处理与GIS数据分析
求职准备知识点
Knowledge distillation method of target detection
昆仑通态屏幕制作(连载3)---基础篇(按钮串口发送)
边境的悍匪—机器学习实战:第十章 Keras人工神经网络简介
openssl 1.1.1编译语句
CLUE模型构建方法、模型验证及土地利用变化情景预测
TCP为什么要三次握手,握手过程中丢包会怎么样?
influxDB运维记录
Machine Learning, Deep Learning Based on MATLAB 2021b
写在公众号之前——QT,ARM,DSP,单片机,电力电子与传动!
常用损失函数(一):Focal Loss
【江科大自化协stm32F103c8t6】笔记之【入门32单片机及EXTI外部中断初始化参数配置】
多层板的层数,为啥选项都是偶数?就不能选奇数?
点云统计滤波理解
Basic application of XMLBean
Generalized Focal Loss 论文阅读笔记
生产力工具分享——简洁而不简单
1.03 original Acegi security mechanism