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

Improve the shape of a chart bundle in the overview #1

Open
aAXEe opened this issue Nov 3, 2017 · 0 comments
Open

Improve the shape of a chart bundle in the overview #1

aAXEe opened this issue Nov 3, 2017 · 0 comments

Comments

@aAXEe
Copy link
Collaborator

aAXEe commented Nov 3, 2017

Currently the bounding box from each chart is used as rectangle in the generated overview.json to show the coverage of this bundle. This is a rough estimation.

As the metadata contain the shapes of all contained tiles the coverage polygon should be generated from the tiles eg. at zoom level 15.

For implmentation change the handling here:

const n = bundle.bbox[3]
const s = bundle.bbox[1]
const e = bundle.bbox[0]
const w = bundle.bbox[2]
const featureOverview = {
type: 'Feature',
geometry: {
type: 'Polygon',
coordinates: [[
[e, n], [w, n], [w, s], [e, s], [e, n]
]]
},
properties: properties
}

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

1 participant