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

[android] Update toGeoJSON in android_conversion.hpp #16243

Merged
merged 3 commits into from
Mar 4, 2020
Merged

Conversation

Chaoba
Copy link
Contributor

@Chaoba Chaoba commented Feb 28, 2020

The within expression need its parameter be an Object(map in android) and then convert it to a Geojon object.

toGeoJSON method in android_conversion.hpp can't handle Object before and it seems not easy to convert an Object to string and then convert the string to GeoJSON object. So I put the whole json body of Polygon into the Object with key json. Maybe this's not a good idea, it will be nice if a better solution could be brought up。

Related pr in android sdk: mapbox/mapbox-gl-native-android#198

Copy link
Contributor

@pozdnyakov pozdnyakov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this change have a test?

CHANGELOG.md Outdated Show resolved Hide resolved
platform/android/src/style/android_conversion.hpp Outdated Show resolved Hide resolved
platform/android/src/style/android_conversion.hpp Outdated Show resolved Hide resolved
@Chaoba
Copy link
Contributor Author

Chaoba commented Feb 28, 2020

Does this change have a test?

We don't have test for this part yet. Now test it with demo app in android repo mapbox/mapbox-gl-native-android#198

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.

3 participants