Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Add expression within #198

Merged
merged 4 commits into from
Mar 4, 2020
Merged

Add expression within #198

merged 4 commits into from
Mar 4, 2020

Conversation

Chaoba
Copy link
Contributor

@Chaoba Chaoba commented Feb 26, 2020

Resolves #191

This expression will cause error:
E/Mbgl: {pboxsdk.testapp}[JNI]: Error setting property: text-size [1]: 'within' expression requires valid geojson source that contains polygon geometry type.

The error is triggered by isObject method return false in this line https://github.com/mapbox/mapbox-gl-native/blob/9aefd2f2faf0e66afc263e96e3cff4cc03295e64/src/mbgl/style/expression/within.cpp#L111

The geojson passed into core is {“type”:“Polygon”,“coordinates”:[[[-13.359375,67.6092206],[-14.0625,36.1733569],[43.59375,36.456636],[-13.359375,67.6092206]]]} and @zmiao already confirmed that this geojson could pass glfw test.

@mapbox/maps-android any idea about this error?

@Chaoba
Copy link
Contributor Author

Chaoba commented Feb 28, 2020

Change country label opacity.
device-2020-02-28-181404

@Chaoba Chaoba force-pushed the kl-within branch 2 times, most recently from d19bc09 to 52f3d20 Compare March 2, 2020 03:04
@Chaoba Chaoba merged commit b976545 into master Mar 4, 2020
@Chaoba Chaoba deleted the kl-within branch March 4, 2020 10:19
@Chaoba Chaoba mentioned this pull request Mar 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Platform bindings for within expression
2 participants