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

Slow rendering of points #107

Open
mghildiy opened this issue Jul 18, 2018 · 2 comments
Open

Slow rendering of points #107

mghildiy opened this issue Jul 18, 2018 · 2 comments

Comments

@mghildiy
Copy link

Hi,

I am making use of VTS browser to render around 9k 3D points by reading GeoJSON data from a rest service. Every point is a Point feature. And I am defining my style icon as:

    'bitmaps': {
        'icons': 'http://maps.google.com/mapfiles/kml/shapes/placemark_circle.png'

Rendering is quite slow.

Is it down to use of .png or because all of the points are Point feature?

@davidmtech
Copy link
Member

Hi,

.png does not affect rendering speed in any way. Its more difficult to determine cause without seeing application, but in general terms, rendering of large amount of points can be slow. We usually try to render as many features in one rendering call as possible, but in case of points it is more difficult and we usually render each point separately and that can be slow for large amount of points. You can speed up rendering by rendering only those points which are up to certain distance from the camera. You can do it by "visibility", property in the styles. More about styles can be found there:

https://github.com/Melown/vts-browser-js/wiki/VTS-Geodata-Format#geo-layer-styles-structure

@mghildiy
Copy link
Author

mghildiy commented Jul 18, 2018

May be using MultiPoint instead of Point feature would help...

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

2 participants