From cb95e9c389e77cd7998ba196bc30d2851338e816 Mon Sep 17 00:00:00 2001 From: Amr Hossam Date: Thu, 29 Feb 2024 16:06:31 +0200 Subject: [PATCH] Fixed #892 - Added map style to remove POI --- .../onebusaway/android/map/googlemapsv2/BaseMapFragment.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/onebusaway-android/src/google/java/org/onebusaway/android/map/googlemapsv2/BaseMapFragment.java b/onebusaway-android/src/google/java/org/onebusaway/android/map/googlemapsv2/BaseMapFragment.java index db3b4f3ea..23b6778c3 100644 --- a/onebusaway-android/src/google/java/org/onebusaway/android/map/googlemapsv2/BaseMapFragment.java +++ b/onebusaway-android/src/google/java/org/onebusaway/android/map/googlemapsv2/BaseMapFragment.java @@ -378,6 +378,10 @@ private void initMap(Bundle savedInstanceState) { } initMapState(args); } + + // Remove All POI from the map + String removePOIStyle = "[{\"featureType\":\"poi\",\"elementType\":\"all\",\"stylers\":[{\"visibility\":\"off\"}]}]"; + mMap.setMapStyle(new MapStyleOptions(removePOIStyle)); } private void initMapState(Bundle args) {