json - Android MapView hide labels on roads not working -


i want remove street names on mapview. got groundoverlay on mapview can see on link.

https://www.dropbox.com/s/oz0qwf49fwwa9hc/screenshot_20170815-134120.png?dl=0

i used website: https://mapstyle.withgoogle.com/ generate json mapview

this json file:

[   {     "elementtype": "labels",     "stylers": [       {         "visibility": "off"       }     ]   },   {     "featuretype": "administrative",     "elementtype": "geometry",     "stylers": [       {         "visibility": "off"       }     ]   },   {     "featuretype": "administrative.land_parcel",     "stylers": [       {         "visibility": "off"       }     ]   },   {     "featuretype": "administrative.neighborhood",     "stylers": [       {         "visibility": "off"       }     ]   },   {     "featuretype": "poi",     "stylers": [       {         "visibility": "off"       }     ]   },   {     "featuretype": "road",     "elementtype": "labels.icon",     "stylers": [       {         "visibility": "off"       }     ]   },   {     "featuretype": "transit",     "stylers": [       {         "visibility": "off"       }     ]   } ] 

in activity loading json files success:

@override     public void onmapready(googlemap googlemap) {     mgooglemap = googlemap;              try {                 boolean success = mgooglemap.setmapstyle(                         mapstyleoptions.loadrawresourcestyle(                                this, r.raw.googlemapsstyle));                  if (!success) {                     log.wtf(tag, "style parsing failed.:");                 } else {                     log.wtf(tag, "style parsing success.:");                 }             } catch (resources.notfoundexception e) {                 log.wtf(tag, "can't find style. error: ", e);             } } 

but street names still there. on ios app, street names removed correctly. ideas?


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -