Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tiles fail to render for certain geometries #57

Open
outlandnish opened this issue Feb 24, 2016 · 3 comments
Open

Tiles fail to render for certain geometries #57

outlandnish opened this issue Feb 24, 2016 · 3 comments

Comments

@outlandnish
Copy link

I get the following error on tiles that fail:

typeof this._tiles[canvasId] === 'undefined'

I haven't dived too far into the source code, but I suspect there's a race condition here. I think the tile isn't downloaded by the time it tries loading it and as a result, it fails to load the geometry. Any way to ensure the tile is downloaded before a render event happens?

EDIT: To ensure this wasn't a data problem, I used MapBox GL JS with the same tile service and it was able to load the geometry properly for all tiles.

@fxi
Copy link

fxi commented Feb 24, 2016

Maybe this undocumented event could help: config.onTilesLoaded : function() {}

@reyemtm
Copy link

reyemtm commented May 31, 2016

Same issue, rendering tiles with this geoserver vector tile plugin that seems to work fine with OL3. I'm not sure if the issue is with the geoserver render plugin or this plugin. Looks like it has something to do with the getIDForLayerFeature function. When that is removed the tiles render fine, of course the click events do not work properly.

@tim-lan
Copy link

tim-lan commented Jun 14, 2016

Same issue here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants