-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Features are sub-divided are high zoom levels. #6854
Comments
Thanks for using Mapbox, and sorry to hear you're running into an issue. Can you verify if this issue persists in the current version, 0.46.0? If so could you please create a minimal self-contained example on jsbin.com that demonstrates the issue? |
The behavior in the animated gif is expected; see the documentation for 0.46.0 includes a new feature that makes this kind of use case easier -- |
@jfirebaugh Thanks for the quick reply. Reading the documentation on The problem with our specific use case is that what we need is to have is the polygon surrounding each parcel (coloring it is not much of a problem, setting opacity 1 in the example above does the trick). Even if visually we can color the whole parcel, underneath we have to deal with several polygons instead of one. From what I read about Now, regarding version Thus, If you guys feel that having a method that accepts a feature and returns its "source" (the one that it was sub-divided from) is a good addition, would love to have it, otherwise, you can close this issue and we'll find a way to compute the union of several polygons. Thank you for all your help. |
#5639 asks whether |
For anyone who ends up here with the problem at hand - there is really no need to reconstruct or calculate anything, just add a property with the original feature to 'properties' of the original features. Then when you get it from query*Features, you can access the original feature through feature.properties[whateveryounamedthepropertywithoriginalref]. |
Hey guys! First of all, thanks for such an amazing tool. We are using mapbox-gl-js version:
0.43.0
and we are encountering the following "strange" behavior:We are working with land parcels and we created a style using mapbox studio which adds a layer on top of the
streets-v9
. This new layer only includes for every feature (parcel)folio
,address
,zip code
and thegeometry
that in most cases is only one polygon. Now in our app, we want to highlight the parcels while the user moves the mouse over the map, but as you can see in thegif
below with higher zooms the feature gets sub-divided into smaller ones (not happening at lower zoom levels).Even more strange as you can see in the image below this "smaller" features overlap their geometries. (I put a 0.5 opacity so the overlapping areas look darker)
Now, we would like to know if this is expected behavior or could be something that we are doing wrong. In the case that this is the expected behavior would be nice to have some insights on the reasons behind it.
Thanks in advance.
The text was updated successfully, but these errors were encountered: