Vue+OpenLayers中文教程推薦,不同于OpenLayers官方文檔使用html+js原生原生教程,博主專欄包含大量vue整合案例和實(shí)際開發(fā)案例,非常適合地圖開發(fā)小白快速入門。
OpenLayers6教程
- vue整合OpenLayers6入門教程: 《Vue+OpenLayers6入門教程》
- vue整合OpenLayers6實(shí)戰(zhàn)中文教程,包含大量OpenLayers官方文檔沒有涉及到的實(shí)際開發(fā)案例: 《Vue+OpenLayers6實(shí)戰(zhàn)進(jìn)階專欄目錄》
OpenLayers7教程
3. Vue+OpenLayers7入門到實(shí)戰(zhàn)教程文章來源:http://www.zghlxwxcb.cn/news/detail-856320.html
文章來源地址http://www.zghlxwxcb.cn/news/detail-856320.html
前言
OpenLayers9.1.0版本正式發(fā)布,最近兩年OpenLayers更新頻率很高 ,最近OpenLayers大版本迭代很快,但是幾乎沒有什么重大的功能更新。
比如這次的OpenLayers9.1.0幾乎都是修修補(bǔ)補(bǔ),沒有功能更改和升級(jí)。
OpenLayers9相較于OpenLayers8更新了哪些內(nèi)容
OpenLayers9.0.0版本相比OpenLayers8也就新增了一個(gè)Google
地圖源和一些WebGL樣式擴(kuò)展,并刪除原有的flushDeclutterItems()
方法,其他也沒有什么實(shí)質(zhì)性的重大更新。
總而言之,沒有必要升級(jí),除非有特別需要,可以繼續(xù)使用之前OpenLayers版本。
OpenLayers9兩個(gè)版本更新內(nèi)容
下面是OpenLayers9.1.0版本和OpenLayers9.0.0版本的發(fā)布的更新內(nèi)容
OpenLayers9.1.0版本更新內(nèi)容
The 9.1 release fixes a few rendering regressions introduced in v9.0.
It introduces bulk feature removal in Vector sources, addresses
attribution consistency, includes new style operators, and adds the
Alidade Satellite style to the Stamen source. Moreover, it ensures
compliance with Google's terms of use for attribution handling of the
Google source.
翻譯:
9.1 版本修復(fù)了 v9.0 中引入的一些渲染回歸。它在矢量源中引入了批量特征刪除,解決了歸因一致性問題,包括新的樣式運(yùn)算符,并將 Alidade Satellite 樣式添加到 Stamen 源中。此外,它還確保遵守 Google 關(guān)于 Google 來源歸因處理的使用條款。
OpenLayers9.0.0版本更新內(nèi)容
The 9.0 release adds several new features, including a Google Maps
source (finally!), improved WebGL line rendering, and a new symbol and
text decluttering implementation. We also improved and broadened flat
styles support for both WebGL and Canvas 2D renderers. For better
developer experience, we made more types generic and fixed some issues
with types.Backwards incompatible changes
- Improved render order of decluttered
items Decluttered items in Vector and VectorTile layers now maintain
the render order of the layers and within a layer. They do not get
lifted to a higher place in the stack any more.For most use cases, this is the desired behavior. If, however, you've
been relying on the previous behavior, you now have to create separate
layers above the layer stack, with just the styles for the declutter
items.
- Removal of Map#
flushDeclutterItems()
It is no longer necessary to call this function to put layers above decluttered symbols and text,
because decluttering no longer lifts elements above the layer stack.To upgrade, simply remove the code where you use the
flushDeclutterItems()
method.
Changes in
ol/style
- Removed the ol/style/RegularShape's radius1
property. Use radius for regular polygons or radius and radius2 for
stars.
- Removed the shape-radius1 property from
ol/style/flat~FlatShape
. Use shape-radius instead.GeometryCollection constructor
ol/geom/GeometryCollection
can no longer be created
without providing a Geometry array. Empty arrays are still valid.
ol/interaction/Draw
The finishDrawing() method now returns the drawn
feature or null if no drawing could be finished. Previously it
returned undefined.
翻譯
9.0 版本增加了一些新功能,包括 Google 地圖源(終于?。?、改進(jìn)的 WebGL 線渲染以及新的符號(hào)和文本整理實(shí)現(xiàn)。我們還改進(jìn)并擴(kuò)展了對(duì) WebGL 和 Canvas 2D 渲染器的平面樣式支持。為了獲得更好的開發(fā)人員體驗(yàn),我們使更多類型通用,并修復(fù)了類型的一些問題。
向后不兼容的更改
改進(jìn)了整理項(xiàng)的渲染順序
Vector 和 VectorTile 圖層中的整理項(xiàng)目現(xiàn)在保持圖層和圖層內(nèi)的渲染順序。它們不再被提升到堆棧中的更高位置。
對(duì)于大多數(shù)用例,這是所需的行為。但是,如果您一直依賴以前的行為,則現(xiàn)在必須在圖層堆棧上方創(chuàng)建單獨(dú)的圖層,并且僅使用整理項(xiàng)的樣式。刪除 Map#
flushDeclutterItems()
不再需要調(diào)用此函數(shù)來將圖層放在整理的符號(hào)和文本上方,因?yàn)檎聿辉賹⒃靥嵘綀D層堆棧上方。
如果要升級(jí)到新版本,只需刪除使用flushDeclutterItems()
方法的代碼。
ol/style
的變化
- 刪除了
ol/style/RegularShape
的 radius1 屬性。對(duì)正多邊形使用半徑,對(duì)星星使用半徑和半徑2。
- 從
ol/style/flat~FlatShape
中刪除了 shape-radius1 屬性。請(qǐng)改用 shape-radius。GeometryCollection 構(gòu)造函數(shù)
如果不提供GeometryCollection
,則無法再創(chuàng)建ol/geom/GeometryCollection
。空數(shù)組仍然有效。
ol/interaction/Draw
finishDrawing()
方法現(xiàn)在返回繪制的特征,如果無法完成繪制,則返回null。以前,它返回 undefined。
end
Vue+OpenLayers中文教程推薦,不同于OpenLayers官方文檔使用html+js原生原生教程,博主專欄包含大量vue整合案例和實(shí)際開發(fā)案例,非常適合地圖開發(fā)小白快速入門。
OpenLayers6教程
- vue整合OpenLayers6入門教程: 《Vue+OpenLayers6入門教程》
- vue整合OpenLayers6實(shí)戰(zhàn)中文教程,包含大量OpenLayers官方文檔沒有涉及到的實(shí)際開發(fā)案例: 《Vue+OpenLayers6實(shí)戰(zhàn)進(jìn)階專欄目錄》
OpenLayers7教程
3. Vue+OpenLayers7入門到實(shí)戰(zhàn)教程
到了這里,關(guān)于OpenLayers9.1.0版本正式發(fā)布,OpenLayers9.1.0值得升級(jí)嗎?9.1.0版相比9.0.0版本又更新了哪些內(nèi)容?OpenLayers9相較于OpenLayers8更新了哪些內(nèi)容?的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!