发布于 2015-08-22 23:58:22 | 211 次阅读 | 评论: 0 | 来源: 网友投递

这里有新鲜出炉的精品教程,程序狗速度看过来!

Mapbox GL 基于 WebGL 的矢量地图

Mapbox GL 是基于 WebGL 的客户端矢量地图,也是个 JavaScript 库。


Mapbox GL 是基于 WebGL 的客户端矢量地图,也是个 JavaScript 库。

Mapbox GL 0.10.0 发布,此版本更新内容如下:

重大改进

  • Switched to [longitude, latitude] coordinate order, matching GeoJSON. We anticipate that mapbox-gl-js will be widely used with GeoJSON, and in the long term having a coordinate order that is consistent with GeoJSON will lead to less confusion and impedence mismatch than will a [latitude, longitude] order.

    The following APIs were renamed:

    The following APIs now expect array coordinates in [longitude, latitude] order:

    • LngLat.convert

    • LngLatBounds.convert

    • Popup#setLngLat

    • The center and maxBounds options of the Map constructor

    • The arguments to Map#setCenter, Map#fitBounds, Map#panTo, and Map#project

    • The center option of Map#jumpTo, Map#easeTo, and Map#flyTo

    • The around option of Map#zoomTo, Map#rotateTo, and Map#easeTo

    • The coordinates properties of video and image sources

    • LatLng was renamed to LngLat

    • LatLngBounds was renamed to LngLatBounds

    • Popup#setLatLng was renamed to Popup#setLngLat

    • Popup#getLatLng was renamed to Popup#getLngLat

    • The latLng property of Map events was renamed lngLat

  • Updated to mapbox-gl-style-spec v8.0.0 (Changelog). Styles are now expected to be version 8. You can use the gl-style-migrateutility to update existing styles.

  • The format for mapbox:// style and glyphs URLs has changed. For style URLs, you should now use the formatmapbox://styles/:username/:style. The :style portion of the URL no longer contains a username. For font URLs, you should now use the format mapbox://fonts/:username/{fontstack}/{range}.pbf.

  • Mapbox default styles are now hosted via the Styles API rather than www.mapbox.com. You can make use of the Styles API with a mapbox:// style URL pointing to a v8 style, e.g. mapbox://styles/mapbox/streets-v8.

  • The v8 satellite style (mapbox://styles/mapbox/satellite-v8) is now a plain satellite style, and not longer supports labels or countour lines via classes. For a labeled satellite style, use mapbox://styles/mapbox/satellite-hybrid.

  • Removed mbgl.config.HTTP_URL and mbgl.config.FORCE_HTTPS; https is always used when connecting to the Mapbox API.

  • Renamed mbgl.config.HTTPS_URL to mbgl.config.API_URL.

Bug 修复

  • Don't draw halo when halo-width is 0 (#1381)

  • Reverted shader changes that degraded performance on IE

API 改进

  • You can now unset layout and paint properties via the setLayoutProperty and setPaintProperty APIs by passing undefined as a property value.

  • The layer option of featuresAt now supports an array of layers.

下载:https://github.com/mapbox/mapbox-gl-js/archive/v0.10.0.zip



历史版本 :
Mapbox GL JS 0.40.1 发布,WebGL 矢量地图
Mapbox GL v0.12.4 发布,WebGL 矢量地图
Mapbox GL 0.12.3 发布,WebGL 矢量地图
Mapbox GL 0.12.2 发布,WebGL 矢量地图
Mapbox GL 0.12.0 发布,WebGL 矢量地图
Mapbox GL 0.11.5 发布,WebGL 矢量地图
Mapbox GL 0.11.4 发布,WebGL 矢量地图
Mapbox GL 0.11.3 发布,WebGL 矢量地图
Mapbox GL 0.11.1 发布,WebGL 矢量地图
Mapbox GL 0.11.0 发布,基于 WebGL 的矢量地图
Mapbox GL 0.10.0 发布,基于 WebGL 的矢量地图
Mapbox GL 0.9.0 发布,基于 WebGL 的矢量地图
最新网友评论  共有(0)条评论 发布评论 返回顶部

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务