MapBox-gl-js v0.39.0 发布了,MapBox 是 iOS 上 MapKit 的一个开源实现。
本次更新内容如下:
GeolocateControl breaking changes
The option watchPosition has been replaced with trackUserLocation
The camera operation has changed from jumpTo (not animated) to fitBounds (animated). An effect of this is the map pitch is no longer reset, although the bearing is still reset to 0.
The accuracy of the geolocation provided by the device is used to set the view (previously it was fixed at zoom level 17). The maxZoom can be controlled via the new fitBoundsOptions option (defaults to 15).
Anchor Markers at their center by default
Increase significantRotateThreshold for the TouchZoomRotateHandler
软件详情:https://github.com/mapbox/mapbox-gl-js/releases
下载地址:https://github.com/mapbox/mapbox-gl-js/archive/v0.39.0.zip
来自:开源中国社区

