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

Option to increase geojson maxzoom? #1143

Open
omasback opened this issue Jan 13, 2023 · 0 comments
Open

Option to increase geojson maxzoom? #1143

omasback opened this issue Jan 13, 2023 · 0 comments

Comments

@omasback
Copy link

omasback commented Jan 13, 2023

I'm building a tool to draw features with millimeter precision. Unfortunately the default maxzoom of geoJson sources is 18, which equates to a rendering precision of about 10mm.

I believe the offending line is here:

ctx.map.addSource(Constants.sources.COLD, {
data: {
type: Constants.geojsonTypes.FEATURE_COLLECTION,
features: []
},
type: 'geojson'
});
// hot features style
ctx.map.addSource(Constants.sources.HOT, {
data: {
type: Constants.geojsonTypes.FEATURE_COLLECTION,
features: []
},
type: 'geojson'
});

Im pretty sure this could be fixed by setting maxzoom of geojson data source to >=24, or even making it an init option.

shushanyalida5124 added a commit to shushanyalida5124/mapbox-gl-draw that referenced this issue Apr 21, 2024
Add hotSourceOptions and coldSourceOptions to the options to pass to the drawing and drawn layers.
This could fix issue mapbox#858 and mapbox#1143.
shushanyalida5124 added a commit to shushanyalida5124/mapbox-gl-draw that referenced this issue Apr 21, 2024
Add hotSourceOptions and coldSourceOptions to the options to pass to the drawing and drawn layers.
This could fix issue [mapbox#858](mapbox#858) and [mapbox#1143](mapbox#1143).
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