分析每个模块需要的时间
- leaflet 是啥
- 创建一个项目,fork GitHub repo; 两人一组,结对编程
- 项目里包含: 基础脚手架,publish.sh,leaflet map demo
- 切个人分支
- 能够跑起来
- 提出需求
- 在地图上用 svg 画一条曲线, 有起始点,终止点
- 曲线函数 svg curve 找一下
- 始末点为圆形, 样式不一致
- 可以定制曲线颜色, 可以改变颜色
- 可以添加覆盖物,删除覆盖物,修改覆盖物样式
- 编写 gh-pages
- Push 到远程仓库
- 完善 readme 文档
- 发布到 npmjs
- 最后结果展现总结
附录:
- layer api: https://leafletjs.com/reference-1.5.0.html#layer-onadd
- map api: https://leafletjs.com/reference-1.5.0.html#map-overlaypane
- plugin guide: https://github.com/Leaflet/Leaflet/blob/master/PLUGIN-GUIDE.md#plugin-api
- L.Layer Extension methods: https://leafletjs.com/reference-1.5.0.html#layer-onadd