|
AI2 Component
(Version nb184)
|
Go to the documentation of this file.
6 package com.google.appinventor.components.runtime.util;
8 import java.util.Iterator;
16 import org.locationtech.jts.geom.Geometry;
17 import org.osmdroid.api.IGeoPoint;
18 import org.osmdroid.util.GeoPoint;
21 import android.os.Build;
22 import android.view.View;
65 void onSingleTap(
double latitude,
double longitude);
74 void onDoubleTap(
double latitude,
double longitude);
83 void onLongPress(
double latitude,
double longitude);
162 void setCenter(
double latitude,
double longitude);
292 void panTo(
double latitude,
double longitude,
int zoom,
double seconds);
626 void Title(String title);
983 void Source(String source);
1019 void LoadError(String url,
int code, String message);
1035 void Radius(
double radius);
1079 void SetLocation(
double latitude,
double longitude);
1182 void SetCenter(
double latitude,
double longitude);
1196 void updateBounds(
double north,
double west,
double south,
double east);
1213 @SuppressWarnings(
"squid:S00100")
1221 @SuppressWarnings(
"squid:S00100")
1229 @SuppressWarnings(
"squid:S00100")
1237 @SuppressWarnings(
"squid:S00100")
1245 @SuppressWarnings(
"squid:S00100")
1253 @SuppressWarnings(
"squid:S00100")
1262 @SuppressWarnings(
"squid:S00100")
1270 @SuppressWarnings(
"squid:S00100")
1279 @SuppressWarnings(
"squid:S00100")
1287 @SuppressWarnings(
"squid:S00100")
1297 @SuppressWarnings(
"squid:S00100")
1305 @SuppressWarnings(
"squid:S00100")
1312 @SuppressWarnings(
"squid:S00100")
1313 void Width(
int width);
1319 @SuppressWarnings(
"squid:S00100")
1326 @SuppressWarnings(
"squid:S00100")
1333 @SuppressWarnings(
"squid:S00100")
1345 @SuppressWarnings(
"squid:S00100")
1346 void SetLocation(
double latitude,
double longitude);
1483 public static final class MapFeatureType {
1484 private MapFeatureType() {}
1489 public static final String TYPE_MARKER =
"Marker";
1494 public static final String TYPE_CIRCLE =
"Circle";
1499 public static final String TYPE_RECTANGLE =
"Rectangle";
1506 public static final String TYPE_POINT =
"Point";
1511 public static final String TYPE_LINESTRING =
"LineString";
1516 public static final String TYPE_POLYGON =
"Polygon";
1521 @SuppressWarnings(
"unused")
1522 public static final String TYPE_MULTIPOINT = "MultiPoint";
1527 @SuppressWarnings("unused")
1528 public static final String TYPE_MULTILINESTRING = "MultiLineString";
1533 public static final String TYPE_MULTIPOLYGON = "MultiPolygon";
1598 if (Build.VERSION.SDK_INT < 8) {
1599 return new DummyMapController();
1601 return new NativeOpenStreetMapController(form);
void setZoomControlEnabled(boolean enable)
void hideFeature(MapFeature feature)
void setFeatureCollectionVisible(MapFeatureCollection collection, boolean visible)
LocationSensor.LocationSensorListener getLocationListener()
void addFeature(MapFeature feature)
boolean isFeatureVisible(MapFeature feature)
void updateFeaturePosition(MapMarker marker)
void removeFeature(MapFeature feature)
void updateFeatureHoles(MapPolygon polygon)
void FeatureLongClick(MapFeature feature)
void updateFeatureFill(HasFill feature)
void updateCenter(double latitude, double longitude)
void updateFeatureStroke(HasStroke feature)
List< List< GeoPoint > > getPoints()
void onFeatureStopDrag(MapFeature feature)
BoundingBox getBoundingBox()
void LoadFromURL(String url)
void setRotation(float Rotation)
static MapController newMap(Form form)
void onFeatureClick(MapFeature feature)
void FeatureStopDrag(MapFeature feature)
< T > T accept(MapFeatureVisitor< T > visitor, Object... arguments)
void updateFeatureDraggable(MapFeature feature)
void setScaleVisible(boolean show)
void SetCenter(double latitude, double longitude)
void onReady(MapController map)
List< List< List< GeoPoint > > > getHolePoints()
void onLongPress(double latitude, double longitude)
void onFeatureStartDrag(MapFeature feature)
boolean isCompassEnabled()
void setMap(MapFeatureContainer map)
T visit(MapMarker marker, Object... arguments)
boolean isRotationEnabled()
void updateFeatureSize(MapMarker marker)
MapScaleUnits getScaleUnits()
Iterator< MapFeature > iterator()
void SetLocation(double latitude, double longitude)
void setScaleUnits(MapScaleUnits units)
void SetLocation(double latitude, double longitude)
void updateHolePoints(List< List< List< GeoPoint >>> points)
void panTo(double latitude, double longitude, int zoom, double seconds)
void onFeatureLongPress(MapFeature feature)
void GotFeatures(String url, YailList features)
void FeatureDrag(MapFeature feature)
void showFeature(MapFeature feature)
void onDoubleTap(double latitude, double longitude)
void hideInfobox(MapFeature feature)
void setCenter(double latitude, double longitude)
void setShowUserEnabled(boolean enable)
void setBoundingBox(BoundingBox bbox)
void FeatureClick(MapFeature feature)
void updateFeatureText(MapFeature feature)
void setCompassEnabled(boolean enable)
void FeatureStartDrag(MapFeature feature)
List< GeoPoint > getPoints()
Copyright 2009-2011 Google, All Rights reserved.
void showInfobox(MapFeature feature)
void setMapType(MapType type)
void BoundingBox(YailList boundingbox)
boolean isFeatureCollectionVisible(MapFeatureCollection collection)
void updatePoints(List< GeoPoint > points)
void updateFeatureImage(MapMarker marker)
void addEventListener(MapEventListener listener)
void updateLocation(double latitude, double longitude)
void onFeatureDrag(MapFeature feature)
boolean isShowUserEnabled()
boolean isInfoboxVisible(MapFeature feature)
void addFeature(MapMarker marker)
void setRotationEnabled(boolean enable)
void onSingleTap(double latitude, double longitude)
boolean isZoomControlEnabled()
void setPanEnabled(boolean enable)
void setZoomEnabled(boolean enable)
void updatePoints(List< List< GeoPoint >> points)
void updateBounds(double north, double west, double south, double east)
void LoadError(String url, int code, String message)
void removeFeature(MapFeature feature)