openlayers
Q.J.Sama
这个作者很懒,什么都没留下…
展开
-
openlayers源码阅读笔记(四)—— 图层渲染器ol.renderer.canvas.TileLayer
openlayers源码阅读笔记(四)—— 图层渲染器 ol.renderer.canvas.TileLayerrenderFrame()完整代码+注释 /** * Render the layer. * @param {import("../../PluggableMap.js").FrameState} frameState Frame state. * @param {HTMLElement} target Target that may be used to render原创 2022-01-03 21:10:47 · 1670 阅读 · 0 评论 -
openlayers源码阅读笔记(三)—— 图层ol.Layer
openlayers源码阅读笔记(三)—— 图层ol.Layer原创 2022-01-03 20:53:14 · 769 阅读 · 0 评论 -
openlayers源码阅读笔记(二)—— 地图渲染器ol.CompositeMapRenderer
从官网入门案例阅读openlayers源码(二)—— 地图渲染器ol.CompositeMapRenderer上一节中讲到地图渲染是调用了渲染器的renderFrame方法,这一节我们来看地图渲染器CompositeMapRenderer类,直译过来就是复合地图渲染器。1. 创建div.ol-layers元素构造函数很简单,就是创建了div.ol-layers,并插入到viewport中。/** * @classdesc * Canvas map renderer. * @api */cl原创 2021-12-19 17:07:37 · 776 阅读 · 0 评论 -
openlayers源码阅读笔记(一)—— 地图ol.Map
openlayers源码阅读笔记(一)—— 地图ol.Map2. ol/Map类class Map extends PluggableMap { /** * @param {import("./PluggableMap.js").MapOptions} options Map options. */ constructor(options) { options = assign({}, options); if (!options.controls) {原创 2021-12-18 23:41:58 · 1925 阅读 · 0 评论