tangram-es icon indicating copy to clipboard operation
tangram-es copied to clipboard

Point "changes" place at zooming out

Open vilinet opened this issue 5 years ago • 3 comments

I attached the scene and MainActivity to reproduce the issue. Correct/At zoom level 16: image

At Zoom level 15: image

You can see the upper-left point moves to another position somewhy and one point is missing as well.

PointGlich.zip

vilinet avatar May 13 '19 14:05 vilinet

Hi @vilinet - thanks for the report. I peeked at the example file you sent and noticed that these points are encoded in GeoJSON as a linestring. Have you tried encoding them as a MultiPoint geometry or just as separate Point features? The reason I ask is that GeoJSON layers like this have their LineString and Polygon geometries split into separate tiles and, in some cases, simplified for rendering.

matteblair avatar May 13 '19 19:05 matteblair

With MultiPoint it works. But i want to show a line and the points the line made of. I can achieve that with LineString, but MultiPoint/Point does not support line styles.

vilinet avatar May 14 '19 06:05 vilinet

Aha, that's good to know! I think for now you should encode both a LineString and a MultiPoint, even though it is somewhat redundant.

However, I would expect point rendering with LineString data to work in this scenario. I'll look into this behavior. It will be easier to figure out what's going on now that I know it works with MultiPoint data.

matteblair avatar May 14 '19 18:05 matteblair