public class LeafletWebViewMapFragment extends WebViewMapFragment
WebViewMapFragment.GeoWebChromeClientmarkers, webViewCIRCLE_BORDER_COLOR, CIRCLE_BORDER_WIDTH, CIRCLE_FILL_COLOR| Constructor and Description |
|---|
LeafletWebViewMapFragment() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMarker(AirMapMarker<?> marker)
Add the given marker to the map
|
void |
animateCenter(LatLng latLng)
Animate the map to center the given
LatLng. |
void |
animateCenterZoom(LatLng latLng,
int zoom)
Animate the center of the map to the given location and zoom level
|
static LeafletWebViewMapFragment |
newInstance(AirMapType mapType) |
void |
setMapType(MapType type)
Sets the type of map tiles that should be displayed
|
addPolygon, addPolyline, clearGeoJsonLayer, clearMarkers, drawCircle, drawCircle, drawCircle, drawCircle, getCenter, getMapScreenBounds, getScreenLocation, getSnapshot, getZoom, highlightMarker, isChinaMode, isInitialized, isMyLocationEnabled, moveMarker, onCreateView, onLocationPermissionsGranted, onRequestPermissionsResult, removeMarker, removePolygon, removePolyline, setArguments, setCenter, setCenter, setCenterZoom, setGeoJsonLayer, setInfoWindowCreator, setMapToolbarEnabled, setMyLocationButtonEnabled, setMyLocationEnabled, setOnCameraChangeListener, setOnInfoWindowClickListener, setOnMapClickListener, setOnMapLoadedListener, setOnMarkerClickListener, setOnMarkerDragListener, setPadding, setZoom, unhighlightMarkerpublic static LeafletWebViewMapFragment newInstance(AirMapType mapType)
public void setMapType(MapType type)
AirMapInterfacepublic void addMarker(AirMapMarker<?> marker)
AirMapInterfaceaddMarker in interface AirMapInterfaceaddMarker in class WebViewMapFragmentmarker - AirMapMarker instance to addpublic void animateCenter(LatLng latLng)
AirMapInterfaceLatLng. Web maps will currently only center the map
(no animation).animateCenter in interface AirMapInterfaceanimateCenter in class WebViewMapFragmentpublic void animateCenterZoom(LatLng latLng,
int zoom)
AirMapInterfaceanimateCenterZoom in interface AirMapInterfaceanimateCenterZoom in class WebViewMapFragmentlatLng - the LatLng to animate to centerzoom - the zoom level