回答

-1

创建资源/原材料,打了个比方

style_json.txt在文件中的JSON文件,提出:

[ 
    { 
    "featureType": "poi", 
    "stylers": [ 
     { "visibility": "off" } 
    ] 
    } 
] 

,然后在onMapReady:

@Override 
    public void onMapReady(GoogleMap googleMap) { 
     //your code 
     try { 
      boolean success = googleMap.setMapStyle(MapStyleOptions.loadRawResourceStyle(
          this, R.raw.style_json)); 

      if (!success) { 
       Log.e(TAG, "Style parsing failed."); 
      } 
     } catch (Resources.NotFoundException e) { 
      Log.e(TAG, "Can't find style. Error: ", e); 
     } 
     //your code 
    } 

来源:https://developers.google.com/maps/documentation/android-api/poi 和:https://developers.google.com/maps/documentation/android-api/hiding-features

+0

@BaummitAugen是更好的? –

+0

现在看起来好多了,谢谢。 (不是我的downvote顺便说一句,我缺乏领域知识投票在此。) –

相关问题