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

Visible Feature querying #5869

Closed
ivovandongen opened this issue Aug 4, 2016 · 9 comments
Closed

Visible Feature querying #5869

ivovandongen opened this issue Aug 4, 2016 · 9 comments
Assignees
Labels
Android Mapbox Maps SDK for Android

Comments

@ivovandongen
Copy link
Contributor

This ticket is the android implementation of #352 or query rendered features.

In order to implement this we need to lay some groundwork, mostly because we already have a full geometry implementation in https://github.com/mapbox/mapbox-java/ that we will want to re-use. At first we resisted adding MAS as a dependency since it currently has a dependency on rxjava, which is quite big. However, work is underway as we speak to remove that dependency in: mapbox/mapbox-java#131.

This implementation will add methods to query the layers currently rendered (or a subset of layers) and retrieve the GeoJson Features present either for a point or area.

@ivovandongen
Copy link
Contributor Author

ivovandongen commented Aug 10, 2016

Little update: Initial querying is done:

  • point query -> returns features, incl:
    • id
    • properties as JsonObjects
    • geometry as MAS GeoJson types

Todo:

Beside the above. Do we need any other conversions from/to geojson in the sdk?

cc @zugaldia

@zugaldia
Copy link
Member

@ivovandongen Love it.

I can take care of the latest two items in that checklist.

@ivovandongen
Copy link
Contributor Author

@zugaldia @cammace prepared the second item on #5927

If you don't mind picking up mapbox/mapbox-java#171 that would be great!

@zugaldia
Copy link
Member

@ivovandongen
Copy link
Contributor Author

Squashed: #6012

Needs some testing on older devices to make sure were not using top many local references in conversion.

@ivovandongen
Copy link
Contributor Author

highlight-buildings

@ivovandongen
Copy link
Contributor Author

Merged

@mkv123
Copy link

mkv123 commented Aug 17, 2016

@ivovandongen: Is it intentional that using this feature requires pulling in mapbox services as a new dependancy? Or is there a plan/ticket to move the geojson classes this feature requires into the normal mapbox sdk?

@ivovandongen
Copy link
Contributor Author

@mkv123 Yes, this is intentional. If you're worried about apk size, proguard has you covered.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android
Projects
None yet
Development

No branches or pull requests

3 participants