question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is your feature request related to a problem? Please describe. in openlayers 4.6 i use

var _replayGroup = new ol.render.canvas.ReplayGroup(0, extent, 8,true,100);

but the ReplayGroup disapear in ol5 ? is there other method instead of ReplayGroup ?

thanks?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:17 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
ParnDeedlitcommented, Feb 17, 2019

thanks for all of you, english is not my home language, my english description will easy.

Result

  • BuilderGroup to create the instructions;
  • ExecutorGroup to run them.

acroding your help i finish my base work. thank you,

Where I use it?

Intent Cesium VectorTile

Due to Cesium don not support mapbox vectortile , i deside to work it out.

Inspiration

First i use the leaflet.vectorgrid & ol.vectortile. when i compare the two method of vectortile. I think both of two are very hard to transfrom to cesium.

Until i find this ol-mapbox-style && ol-cesium

The ol-mapbox-style is so cool, I think it the best unfical (mapbox) way to draw vectortile. Perfect display effect & smooth load process

When i see these code, I find i can use the ol-mapbox-style as vt-parse to draw canvas. And I use the code to draw vt in canvas tile.

var replayGroup = new ReplayGroup(0, extent, buffer, true, 100);

for(...){
    // loop vector tile styles to every feature to draw 
    renderFeature(_replayGroup, feature, styles[j], 16);
}

replayGroup.finish();
replayGroup.replay(canvas, transform, ratote, hash,replays); 

when draw over the tile, then take this to cesium tile ImageProvider, then finish the all method.

this is my first test to conbine openlayers & cesium & vectortile, i see the source code stylefunction is perfect to render vectortile in canvas. other code to translate mvt-style is simple to convert font/width/color, but this code conside very deep to detail sush as filter & source-layer & font & sprite (especially sprite, these show the high level code)

viewfile

Bug & Disavantage

I use Cesium-ImageProvider & ol-mapbox-style/stylefunction to render vectortile, It indeed to draw the vectortile in cesium. but when some tile is on loading , some tile is over load, the mouse slide process is hard or delay.

i find ol-mapbox-style show me a new method to translate mapbox vectortile style to ol-vectortile-style, and this code avoid slide process block.

I will try to use the idea to deal with the block, thank you again。 you help me a lot, this code ol-mapbox-style/stylefunction is so cool.

1reaction
ParnDeedlitcommented, Feb 17, 2019

Hi @ParnDeedlit, the replay group mechanism was split:

  • BuilderGroup to create the instructions;
  • ExecutorGroup to run them.

Thank you , it works

Read more comments on GitHub >

github_iconTop Results From Across the Web

What we do - THE REPLAY GROUP
Full-Service Agency and management ... With our in-house team of creatives as well as marketing and PR-specialists, we plan, design and produce bold...
Read more >
openlayers setSource获取渲染结果 - CSDN
我们正在尝试将OL5映射迁移为OL6映射。 当我们使用OL6时,地图根本不会渲染,在DevTools中,如果我们为地图div设置了高度,则缩放工具和徽标会很好 ...
Read more >
The Replay Group | LinkedIn
The Replay Group is a Digital Agency that specialises in the creation, distribution and marketing of digital media for Artists, Record Labels, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found