This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
## 项目概述
为地图类网页app添加底图支持,目前仅支持加载web墨卡托的瓦片底图
暂时选择的是gaode的普通底图,可无缝切换为openstreetmap底图服务
## Features
将屏幕坐标系映射到投影平面,为坐标转化提供支持,见viewport
将viewport和底图加载的逻辑分离开
事件和绘制逻辑在basemap中,对外直接使用basemap挂载到canvas就行 (参考index.js)
支持设置初始位置,和记忆上次查看位置
## tips
坐标转化 是直接进行像素级的映射
缩放在瓦片地图那一层已经定义好了,不需要再额外转化