I'm trying to change the fill colour of an existing  jGoogleMaps polygon, when it is clicked.
By studying the GmapsFX api documentation here I tried this code - but it failed to work:
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
Where have I gone wrong?
Best regards,
Ralph
			
			By studying the GmapsFX api documentation here I tried this code - but it failed to work:
			
				B4X:
			
		
		
		Private Sub GMap_PolygonClick (SelectedPolygon As MapPolygon)
    'change fill colour to green when the user clicks
    Private joFillColor = SelectedPolygon As JavaObject
    joFillColor = joFillColor.InitializeNewInstance("com.lynden.gmapsfx.shapes.Polygon", Null)
    joFillColor = joFillColor.RunMethod("setProperty", Array As Object("fillColor", Array As Object(fx.Colors.Green)))
End SubWhere have I gone wrong?
Best regards,
Ralph
 
				 
 
		 
 
		 
 
		 
						
					 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		