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

[android] Update toGeoJSON in android_conversion.hpp - #16243

Merged
Chaoba merged 3 commits into
masterfrom
kl-within-geojson
Mar 4, 2020
Merged

Chaoba merged 3 commits into
masterfrom
kl-within-geojson

Conversation

@Chaoba

@Chaoba Chaoba commented Feb 28, 2020 •

Copy link
Copy Markdown
Contributor

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

@pozdnyakov pozdnyakov left a comment

Copy link
Copy Markdown
Contributor

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?

Comment thread CHANGELOG.md Resolved
@Chaoba

Chaoba commented Feb 28, 2020

Copy link
Copy Markdown
Contributor Author

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

@Chaoba
Chaoba force-pushed the kl-within-geojson branch from 006c915 to b9a7ffb Compare March 4, 2020 03:17
@Chaoba
Chaoba merged commit efc605b into master Mar 4, 2020
@Chaoba
Chaoba deleted the kl-within-geojson branch March 4, 2020 06:15
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