1.07 anywheresoftware.b4j.googlemaps.GoogleMapWrapper GoogleMap Uses GoogleMap JavaScript V3 API to show a map inside WebView. GoogleMap.AsPane returns a Pane which should be added to the nodes tree. The map is only ready after Ready event is raised. process Ready CameraChange (Position As CameraPosition) Click (Point As LatLng) CircleClick (SelectedCircle As MapCircle) MarkerClick (SelectedMarker As Marker) PolygonClick (SelectedPolygon As MapPolygon) PolylineClick (SelectedPolyline As MapPolyline) AddMarker2 Adds a marker to the map with a custom icon. The IconUri must point to an online image or an image from the assets folder. <b>In the later case the custom icon will only appear in Release mode.</b> Example: <code> gmap.AddMarker2(10, 10, "This is a test", _ File.GetUri(File.DirAssets, "SomeIcon.png"))</code> anywheresoftware.b4j.googlemaps.GoogleMapWrapper.MarkerWrapper Lat double Lon double Title java.lang.String IconUri java.lang.String AddInfoWindow2 Opens an info window with the given HTML content at the specified position. It cannot be larger than MaxWidth (in pixels). anywheresoftware.b4j.googlemaps.GoogleMapWrapper.InfoWindowWrapper Content java.lang.String Position anywheresoftware.b4j.googlemaps.GoogleMapWrapper.LatLngWrapper MaxWidth int AddPolygon Adds a polygon to the map. Points - A list or array of LatLng points. StrokeWidth - Stroke width. StrokeColor - Stroke color. FillColor - Inner color. Opacity - Inner color opacity. Value between 0 to 1. anywheresoftware.b4j.googlemaps.GoogleMapWrapper.PolygonWrapper Points anywheresoftware.b4a.objects.collections.List StrokeWidth float StrokeColor javafx.scene.paint.Paint FillColor javafx.scene.paint.Paint Opacity double MoveCamera2 Moves the camera position. void NewPosition anywheresoftware.b4j.googlemaps.GoogleMapWrapper.LatLngWrapper AddCircle Adds a circle to the map. Center - Position of the circle center. Radius - Circle radius. StrokeWidth - Stroke width. StrokeColor - Stroke color. FillColor - Inner color. Opacity - Inner color opacity. Value between 0 to 1. anywheresoftware.b4j.googlemaps.GoogleMapWrapper.CircleWrapper Center anywheresoftware.b4j.googlemaps.GoogleMapWrapper.LatLngWrapper Radius double StrokeWidth float StrokeColor javafx.scene.paint.Paint FillColor javafx.scene.paint.Paint Opacity double AddInfoWindow Opens an info window with the given HTML content at the specified position. anywheresoftware.b4j.googlemaps.GoogleMapWrapper.InfoWindowWrapper Content java.lang.String Position anywheresoftware.b4j.googlemaps.GoogleMapWrapper.LatLngWrapper Initialize Initializes the map. The Ready event will be raised when the map is ready. EventName - Sets the subs that will handle the events. Options - MapOptions object. Pass Null for the default options. void ba anywheresoftware.b4a.BA EventName java.lang.String Options anywheresoftware.b4j.googlemaps.GoogleMapWrapper.MapOptionsWrapper AddMarker Adds a marker to the map. anywheresoftware.b4j.googlemaps.GoogleMapWrapper.MarkerWrapper Lat double Lon double Title java.lang.String IsReady Returns True when the map is ready. boolean RemoveCircle Removes the specified circle from the map. void Circle anywheresoftware.b4j.googlemaps.GoogleMapWrapper.CircleWrapper FitBounds Moves the map to ensure the given bounds fit within the viewport. Note that the Google Maps API will add a margin around these bounds. void bounds anywheresoftware.b4j.googlemaps.GoogleMapWrapper.LatLongBoundsWrapper PanToBounds Pans the map by the minimum amount necessary to contain the given LatLongBounds. It makes no guarantee where on the map the bounds will be, except that as much of the bounds as possible will be visible. void bounds anywheresoftware.b4j.googlemaps.GoogleMapWrapper.LatLongBoundsWrapper AddPolyline Adds a polyline to the map. Points - A list or array of LatLng points. Width - Line width. Color - Line color. anywheresoftware.b4j.googlemaps.GoogleMapWrapper.PolylineWrapper Points anywheresoftware.b4a.objects.collections.List Width float Color javafx.scene.paint.Paint Initialize2 Similar to Initialize. Allows setting the <link>api key|https://developers.google.com/maps/documentation/javascript/get-api-key#key</link>. Example: <code>map.Initialize2("map", Null, "AIzattttttt_tttttttthGujrM")</code> void ba anywheresoftware.b4a.BA EventName java.lang.String Options anywheresoftware.b4j.googlemaps.GoogleMapWrapper.MapOptionsWrapper ApiKey java.lang.String MoveCamera Moves the camera position. void NewPosition anywheresoftware.b4j.googlemaps.GoogleMapWrapper.CameraPositionWrapper AddInfoWindowToMarker Opens an info window with the given HTML content above the specified marker. anywheresoftware.b4j.googlemaps.GoogleMapWrapper.InfoWindowWrapper Content java.lang.String Marker anywheresoftware.b4j.googlemaps.GoogleMapWrapper.MarkerWrapper RemovePolygon Removes the specified polygon from the map. void Polygon anywheresoftware.b4j.googlemaps.GoogleMapWrapper.PolygonWrapper RemoveMarker Removes the specified marker from the map. void Marker anywheresoftware.b4j.googlemaps.GoogleMapWrapper.MarkerWrapper CloseInfoWindow Closes the specified info window. void InfoWindow anywheresoftware.b4j.googlemaps.GoogleMapWrapper.InfoWindowWrapper RemovePolyline Removes the specified polyline from the map. void Polyline anywheresoftware.b4j.googlemaps.GoogleMapWrapper.PolylineWrapper CameraPosition anywheresoftware.b4j.googlemaps.GoogleMapWrapper.CameraPositionWrapper Returns the current camera position. Bounds anywheresoftware.b4j.googlemaps.GoogleMapWrapper.LatLongBoundsWrapper Returns the LatLongBounds of the visual area. It is recommended to read Bounds only inside the CameraChange event because its values may be incorrect otherwise. Zoom zoom int Sets the zoom level. MapType v java.lang.Object Sets the map type. The value should be one of the MAP_TYPE constants. AsPane anywheresoftware.b4j.objects.PaneWrapper.ConcretePaneWrapper Returns the pane that holds the map. MAP_TYPE_SATELLITE com.lynden.gmapsfx.javascript.object.MapTypeIdEnum MAP_TYPE_NORMAL com.lynden.gmapsfx.javascript.object.MapTypeIdEnum MAP_TYPE_HYBRID com.lynden.gmapsfx.javascript.object.MapTypeIdEnum MAP_TYPE_TERRAIN com.lynden.gmapsfx.javascript.object.MapTypeIdEnum anywheresoftware.b4j.googlemaps.GoogleMapWrapper.MapOptionsWrapper MapOptions MapOptions is passed to GoogleMap.Initialize method. It allows you to choose which controls will be available. process ScrollWheel boolean ZoomControl boolean PanControl boolean OverviewMapControl boolean StreetViewControl boolean MapTypeControl boolean anywheresoftware.b4j.googlemaps.GoogleMapWrapper.LatLngWrapper LatLng Holds latitude and longitude values. com.lynden.gmapsfx.javascript.object.LatLong process IsInitialized boolean Initialize Initializes a new object. void Latitude double Longitude double Latitude double Returns the latitude value. Longitude double Returns the longitude value. anywheresoftware.b4j.googlemaps.GoogleMapWrapper.CameraPositionWrapper CameraPosition The map view is modeled as a camera looking down on a flat plane. See this <link>link|https://developers.google.com/maps/documentation/android/views#the_camera_position</link> for more information about the possible values. process toString java.lang.String Initialize Initializes the camera position with the given latitude, longitude and zoom. void Lat double Lng double Zoom int Target anywheresoftware.b4j.googlemaps.GoogleMapWrapper.LatLngWrapper Returns the location that the camera is pointing at. Zoom float Returns the zoom level. anywheresoftware.b4j.googlemaps.GoogleMapWrapper.LatLongBoundsWrapper LatLongBounds com.lynden.gmapsfx.javascript.object.LatLongBounds process IsInitialized boolean Initialize void NorthEast anywheresoftware.b4j.googlemaps.GoogleMapWrapper.LatLngWrapper SouthWest anywheresoftware.b4j.googlemaps.GoogleMapWrapper.LatLngWrapper SouthWest anywheresoftware.b4j.googlemaps.GoogleMapWrapper.LatLngWrapper NorthEast anywheresoftware.b4j.googlemaps.GoogleMapWrapper.LatLngWrapper anywheresoftware.b4j.googlemaps.GoogleMapWrapper.MarkerWrapper Marker com.lynden.gmapsfx.javascript.object.Marker process IsInitialized boolean Position anywheresoftware.b4j.googlemaps.GoogleMapWrapper.LatLngWrapper value anywheresoftware.b4j.googlemaps.GoogleMapWrapper.LatLngWrapper Get or sets the marker position. Visible boolean v boolean Gets or sets whether the marker is visible. Title v java.lang.String Sets the marker title. anywheresoftware.b4j.googlemaps.GoogleMapWrapper.InfoWindowWrapper MapInfoWindow com.lynden.gmapsfx.javascript.object.InfoWindow process IsInitialized boolean Position anywheresoftware.b4j.googlemaps.GoogleMapWrapper.LatLngWrapper Position anywheresoftware.b4j.googlemaps.GoogleMapWrapper.LatLngWrapper Gets or sets the position of this info window. Content java.lang.String Content java.lang.String Gets or sets the HTML content of this info window. anywheresoftware.b4j.googlemaps.GoogleMapWrapper.PolylineWrapper MapPolyline com.lynden.gmapsfx.shapes.Polyline process IsInitialized boolean Visible boolean v boolean Gets or sets whether this polyline is visible. anywheresoftware.b4j.googlemaps.GoogleMapWrapper.PolygonWrapper MapPolygon com.lynden.gmapsfx.shapes.Polygon process IsInitialized boolean Visible boolean v boolean Gets or sets whether this polygon is visible. anywheresoftware.b4j.googlemaps.GoogleMapWrapper.CircleWrapper MapCircle com.lynden.gmapsfx.shapes.Circle process IsInitialized boolean Radius double Radius double Gets or sets the circle radius. Center anywheresoftware.b4j.googlemaps.GoogleMapWrapper.LatLngWrapper Center anywheresoftware.b4j.googlemaps.GoogleMapWrapper.LatLngWrapper Gets or sets the circle center. Bounds anywheresoftware.b4j.googlemaps.GoogleMapWrapper.LatLongBoundsWrapper Gets the circle bounds. Visible boolean v boolean Gets or sets whether this circle is visible. 2.0