Hi I am testing out Google maps and have the map working with ground overlays and UrlTileProvider but cant seem to get it to show a CustomTileProvider
I have this code in B4XPage_Created
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
CustomTileProvider1.IsInitialized returnsTrue and TileOverlay1.IsVisible returns True but the
the Get Tile sub doesnt seem to be reached as it wont log as below.
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
Anyone had the same problem.
Thanks
			
			I have this code in B4XPage_Created
			
				B4X:
			
		
		
		    Wait For (InitializeMap) Complete (Success As Boolean)
    MapReady = Success
    If MapReady Then
CustomTileProvider1.Initialize(Null, "Get_Tile")  
        TileOverlayOptions1.Initialize
        TileOverlayOptions1.SetTileProvider(CustomTileProvider1)
        TileOverlay1 = GoogleMapsExtras1.AddTileOverlay(GoogleMap1, TileOverlayOptions1)
        Log("CustomTileProvider1.IsInitialized " & CustomTileProvider1.IsInitialized)
        Log(TileOverlay1.IsVisible)
end ifCustomTileProvider1.IsInitialized returnsTrue and TileOverlay1.IsVisible returns True but the
the Get Tile sub doesnt seem to be reached as it wont log as below.
			
				B4X:
			
		
		
		Sub Get_Tile(TileX As Int, TileY As Int, Zoom As Int) As Tile
    Log("GetTile X="&TileX&", Y"&TileY&", Zoom="&Zoom)...Anyone had the same problem.
Thanks
 
				 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		