Mapbox-gl-js v0.22.0-dev 发布了,MapBox 是 iOS 上 MapKit 的一个开源实现。
本次发布改进如下:
The
GeoJSONSource
,VideoSource
,ImageSource
constructors are now private. Please usemap.addSource({...})
to create sources andmap.getSource(...).setData(...)
to update GeoJSON sources. #2667Map#onError
has been removed. You may catch errors by listening for theerror
event. If no listeners are bound toerror
, error messages will be printed to the console. #2852
新特性 & 增强:
Increase max glyph atlas size to accomodate alphabets with large numbers of characters #2930
Add support for filtering features on GeoJSON / vector tile
$id
#2888Update geolocate icon #2973
Add a
close
event toPopup
s #2953Add a
offset
option toMarker
#2885Print
error
events without any listeners to the console #2852Refactored
Source
interface to prepare for custom source types #2667
Bug 修复:
Fix opacity property-functions for fill layers #2971
Fix
DataCloneError
in Firefox and IE11 #2559Fix bug preventing camera animations from being triggered in
moveend
listeners #2944Fix bug preventing
fill-outline-color
from being unset #2964Fix webpack support #2887
Prevent buttons in controls from acting like form submit buttons #2935
Fix bug preventing map interactions near two controls in the same corner #2932
Fix crash resulting for large style batch queue #2926
下载地址: