Skip to content

Add Android POI filter mapping and styling#82

Closed
dacoto wants to merge 2 commits into
lugg:mainfrom
dacoto:android-poi-filter
Closed

Add Android POI filter mapping and styling#82
dacoto wants to merge 2 commits into
lugg:mainfrom
dacoto:android-poi-filter

Conversation

@dacoto

@dacoto dacoto commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Summary

Refactor Android POI handling by replacing applyPoiEnabled with applyPoiStyle which applies Google Maps style JSON based on poiEnabled, poiFilterCategories and poiFilterMode. Introduce POI_CATEGORY_TO_FEATURE_TYPE mapping and POI_STYLE_HIDE_ALL constant, and support both including and excluding modes (hide all then re-enable selected or hide selected feature types). Update MAPVIEW docs to clarify that Android maps POI categories to Google Maps feature types (coarser granularity). Remove duplicate companion object.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Test Plan

Screenshots / Videos

Checklist

  • I tested on iOS
  • I tested on Android
  • I tested on Web
  • I updated the documentation (if needed)

dacoto added 2 commits June 9, 2026 22:16
Implement poiEnabled handling for Android: add state and setter, call applyPoiEnabled during map setup, and apply a MapStyleOptions that hides POI and transit when poiEnabled is false. Import MapStyleOptions and keep default=true. Update MAPVIEW.md to clarify that poiEnabled on Android hides POIs and transit stops via map styling.
Refactor Android POI handling by replacing applyPoiEnabled with applyPoiStyle which applies Google Maps style JSON based on poiEnabled, poiFilterCategories and poiFilterMode. Introduce POI_CATEGORY_TO_FEATURE_TYPE mapping and POI_STYLE_HIDE_ALL constant, and support both including and excluding modes (hide all then re-enable selected or hide selected feature types). Update MAPVIEW docs to clarify that Android maps POI categories to Google Maps feature types (coarser granularity). Remove duplicate companion object.
@lodev09

lodev09 commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

Similar to #81, this can be done using the mapId. Not needed here to manually set the style.
Closing.

@lodev09 lodev09 closed this Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants