Google maps style is not applying on all maps in java document (Android studio) -


this activitymaps.java :

@override public void onmapready(googlemap googlemap) {     mapstyleoptions style = mapstyleoptions.loadrawresourcestyle(this, r.raw.style_json);     googlemap.setmapstyle(style);     mmap = tools.configbasicgooglemap(googlemap);     mmap.setmaptype(sharedpref.getmaptype());     mclustermanager = new clustermanager<>(this, mmap);     is_map_ready = true;     if (userloc != null) {         movecameratocurrentlocation();         loadnearbyplaces();     } 

and other file (fragmentfind.java) maps style not applied:

public void onresume() {     super.onresume();     if (mmap == null && mapfragment != null) {         mapfragment.getmapasync(new onmapreadycallback() {             @override             public void onmapready(googlemap googlemap) {                 mapstyleoptions style = mapstyleoptions.loadrawresourcestyle(this, r.raw.style_json);                 googlemap.setmapstyle(style);                 mmap = tools.configbasicgooglemap(googlemap);                 mmap.setmaptype(sharedpref.getmaptype());             }         });     } } 

can me this, don't understand what's going wrong here. know there onmapreadycall don't see why it's not loading styled maps.


Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -