Skip to content

fix: while three point in a line and the second point is in the dividing line of the tile will have problem#161

Open
DeZhao-Zhang wants to merge 1 commit intomapbox:mainfrom
DeZhao-Zhang:bug/point_lost
Open

fix: while three point in a line and the second point is in the dividing line of the tile will have problem#161
DeZhao-Zhang wants to merge 1 commit intomapbox:mainfrom
DeZhao-Zhang:bug/point_lost

Conversation

@DeZhao-Zhang
Copy link

@DeZhao-Zhang DeZhao-Zhang commented Nov 3, 2022

Bug Fix: while three point in a line and the second point is in the dividing line of the tile(with buffer), then the point will be lost in particular level.

…ing line of the tile(with buffer), then the point will be lost in particular level.
@DeZhao-Zhang DeZhao-Zhang changed the title fix fix: while three point in a line and the second point is in the dividing line of the tile will have problem Nov 3, 2022
@DeZhao-Zhang
Copy link
Author

Other data is ok, while the second point is in the dividing line of the tile(with buffer), this bug will happan

  1. while I use data as blow
{
	"type": "FeatureCollection",
	"features": [
		{
			"type": "Feature",
			"geometry": {
				"type": "Polygon",
				"coordinates": [
					[
						[20.0, 34.365234375],
						[80.0, 4.34326171875],
						[45.0, 4.34326171875],
						[20.0, 4.34326171875],
						[20.0, 34.365234375]
					]
				]
			},
			"properties": {
				"title": "路线一",
				"kind": 1
			}
		}
	]
}
  1. set buffer to 0
    image

  2. the point of this triangle will lost in particular level

6abaf1931b23a7dad83c7b4dd6f7c4a

439bd6486ea6e24dfe27a3c2fff9ab5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant