Mar 4, 2020 Replies: 1 Hi, to set the googlemap view minZoom and maxZoom values . Usage : B4X: Copy Sub SetMapMinAndMaxZoom(gMapView As GoogleMap,gMin As Float,gMax As Float) Dim NO As NativeObject = Me NO.RunMethod("setMapMinAndMaxZoom:::", Array As Object(gMapView,gMin,gMax)) End Sub B4X: Copy #If OBJC - (void) setMapMinAndMaxZoom:(GMSMapView *)gMapView :(float)gMin :(float)gMax { [gMapView setMinZoom:gMin maxZoom:gMax]; } #End If Click to expand...
Hi, to set the googlemap view minZoom and maxZoom values . Usage : B4X: Copy Sub SetMapMinAndMaxZoom(gMapView As GoogleMap,gMin As Float,gMax As Float) Dim NO As NativeObject = Me NO.RunMethod("setMapMinAndMaxZoom:::", Array As Object(gMapView,gMin,gMax)) End Sub B4X: Copy #If OBJC - (void) setMapMinAndMaxZoom:(GMSMapView *)gMapView :(float)gMin :(float)gMax { [gMapView setMinZoom:gMin maxZoom:gMax]; } #End If
Erel B4X founder Staff member Licensed User Longtime User Mar 4, 2020 #2 The inline code is not needed here: Code: Copy Sub SetMapMinAndMaxZoom(gMapView As GoogleMap,gMin As Float,gMax As Float) Dim NO As NativeObject = gMapView NO.RunMethod("setMinZoom:maxZoom:", Array(gMin,gMax)) End Sub
The inline code is not needed here: Code: Copy Sub SetMapMinAndMaxZoom(gMapView As GoogleMap,gMin As Float,gMax As Float) Dim NO As NativeObject = gMapView NO.RunMethod("setMinZoom:maxZoom:", Array(gMin,gMax)) End Sub