红联Linux门户
Linux帮助

MapBox-gl-js v0.40.0发布,MapKit开源实现

发布时间:2017-09-14 09:57:46来源:红联作者:baihuo
MapBox-gl-js v0.40.0 发布了,MapBox 是 iOS 上 MapKit 的一个开源实现。

主要更新内容:

改变

Map#addImage now requires the image as an HTMLImageElement, ImageData, or object with width, height, and data properties with the same format as ImageData. It no longer accepts a raw ArrayBufferView in the second argument and width and height options in the third argument.

canvas sources now require a contextType option specifying the drawing context associated with the source canvas.

Bug 修复

Add missing documentation for mouseenter, mouseover, mouseleave events

Add missing documentation for Marker#getElement() method

Fix bug wherein removing canvas source with animate=true leaves map in render loop

提升

Added nautical miles unit to ScaleControl

Add data-driven styling support for

text-max-width

text-letter-spacing

line-join

软件详情:https://github.com/mapbox/mapbox-gl-js/releases/tag/v0.40.0

下载地址:https://github.com/mapbox/mapbox-gl-js/archive/v0.40.0.zip

来自:开源中国社区
文章评论

共有 0 条评论