AI2 Component  (Version nb184)
MapFactory.java
Go to the documentation of this file.
1 // -*- mode: java; c-basic-offset: 2; -*-
2 // Copyright 2016-2017 MIT, All rights reserved
3 // Released under the Apache License, Version 2.0
4 // http://www.apache.org/licenses/LICENSE-2.0
5 
6 package com.google.appinventor.components.runtime.util;
7 
8 import java.util.Iterator;
9 import java.util.List;
10 
16 import org.locationtech.jts.geom.Geometry;
17 import org.osmdroid.api.IGeoPoint;
18 import org.osmdroid.util.GeoPoint;
19 import org.osmdroid.util.BoundingBox;
20 
21 import android.os.Build;
22 import android.view.View;
23 
30 public final class MapFactory {
37  public interface MapEventListener {
38  // Map events
44  void onReady(MapController map);
45 
50  void onBoundsChanged();
51 
56  void onZoom();
57 
65  void onSingleTap(double latitude, double longitude);
66 
74  void onDoubleTap(double latitude, double longitude);
75 
83  void onLongPress(double latitude, double longitude);
84 
85  // Feature events
91  void onFeatureClick(MapFeature feature);
92 
99  void onFeatureLongPress(MapFeature feature);
100 
106  void onFeatureStartDrag(MapFeature feature);
107 
115  void onFeatureDrag(MapFeature feature);
116 
123  void onFeatureStopDrag(MapFeature feature);
124  }
125 
134  public interface MapController {
140  View getView();
141 
147  double getLatitude();
148 
154  double getLongitude();
155 
162  void setCenter(double latitude, double longitude);
163 
172  void setZoom(int zoom);
173 
179  int getZoom();
180 
187 
193  void setMapType(MapType type);
194 
200  void setCompassEnabled(boolean enable);
201 
207  boolean isCompassEnabled();
208 
215  void setZoomEnabled(boolean enable);
216 
222  boolean isZoomEnabled();
223 
229  void setZoomControlEnabled(boolean enable);
230 
236  boolean isZoomControlEnabled();
237 
243  void setShowUserEnabled(boolean enable);
244 
251  boolean isShowUserEnabled();
252 
259  void setRotationEnabled(boolean enable);
260 
266  boolean isRotationEnabled();
267 
274  void setPanEnabled(boolean enable);
275 
281  boolean isPanEnabled();
282 
292  void panTo(double latitude, double longitude, int zoom, double seconds);
293 
299  void addEventListener(MapEventListener listener);
300 
308 
315  void setBoundingBox(BoundingBox bbox);
316 
322  void addFeature(MapMarker marker);
323 
329  void addFeature(MapLineString linestring);
330 
336  void addFeature(MapPolygon polygon);
337 
343  void addFeature(MapCircle circle);
344 
350  void addFeature(MapRectangle rectangle);
351 
357  void removeFeature(MapFeature feature);
358 
369  void showFeature(MapFeature feature);
370 
381  void hideFeature(MapFeature feature);
382 
390  boolean isFeatureVisible(MapFeature feature);
391 
399 
407  void setFeatureCollectionVisible(MapFeatureCollection collection, boolean visible);
408 
419  void showInfobox(MapFeature feature);
420 
430  void hideInfobox(MapFeature feature);
431 
439  boolean isInfoboxVisible(MapFeature feature);
440 
446  void updateFeaturePosition(MapMarker marker);
447 
453  void updateFeaturePosition(MapLineString linestring);
454 
460  void updateFeaturePosition(MapPolygon polygon);
461 
467  void updateFeatureHoles(MapPolygon polygon);
468 
474  void updateFeaturePosition(MapCircle circle);
475 
481  void updateFeaturePosition(MapRectangle rectangle);
482 
488  void updateFeatureFill(HasFill feature);
489 
496  void updateFeatureStroke(HasStroke feature);
497 
503  void updateFeatureText(MapFeature feature);
504 
510  void updateFeatureDraggable(MapFeature feature);
511 
517  void updateFeatureImage(MapMarker marker);
518 
524  void updateFeatureSize(MapMarker marker);
525 
533 
539  int getOverlayCount();
540 
545  void setRotation(float Rotation);
546 
551  float getRotation();
552 
557  void setScaleVisible(boolean show);
558 
565  boolean isScaleVisible();
566 
571  void setScaleUnits(MapScaleUnits units);
572 
578  }
579 
588  public interface MapFeature extends Component {
589  // Properties
590 
595  String Type();
596 
601  boolean Visible();
602 
607  void Visible(boolean visible);
608 
614  void Draggable(boolean draggable);
615 
620  boolean Draggable();
621 
626  void Title(String title);
627 
632  String Title();
633 
638  void Description(String description);
639 
644  String Description();
645 
651  void EnableInfobox(boolean enable);
652 
657  boolean EnableInfobox();
658 
659  // Functions
660 
666  void ShowInfobox();
667 
671  void HideInfobox();
672 
673  // Events
674 
678  void Click();
679 
684  void LongClick();
685 
689  void StartDrag();
690 
694  void Drag();
695 
699  void StopDrag();
700 
701  // non-component methods
702 
710  <T> T accept(MapFeatureVisitor<T> visitor, Object... arguments);
711 
716  GeoPoint getCentroid();
717 
722  Geometry getGeometry();
723 
729  void setMap(MapFeatureContainer map);
730 
734  void removeFromMap();
735  }
736 
745  public interface MapFeatureVisitor<T> {
753  T visit(MapMarker marker, Object... arguments);
754 
762  T visit(MapLineString lineString, Object... arguments);
763 
771  T visit(MapPolygon polygon, Object... arguments);
772 
780  T visit(MapCircle circle, Object... arguments);
781 
789  T visit(MapRectangle rectangle, Object... arguments);
790  }
791 
800  public interface MapFeatureContainer extends ComponentContainer, Iterable<MapFeature> {
801 
802  // Properties
803 
811  void Features(YailList features);
812 
817  YailList Features();
818 
819  // Events
820 
826  void FeatureClick(MapFeature feature);
827 
833  void FeatureLongClick(MapFeature feature);
834 
840  void FeatureStartDrag(MapFeature feature);
841 
847  void FeatureDrag(MapFeature feature);
848 
854  void FeatureStopDrag(MapFeature feature);
855 
856  // non-component methods
857 
862  Map getMap();
863 
868  void addFeature(MapFeature feature);
869 
874  Iterator<MapFeature> iterator();
875 
880  void removeFeature(MapFeature feature);
881  }
882 
888  public interface HasFill {
893  void FillColor(int argb);
894 
899  int FillColor();
900 
905  void FillOpacity(float opacity);
906 
911  float FillOpacity();
912  }
913 
919  public interface HasStroke {
924  void StrokeColor(int argb);
925 
930  int StrokeColor();
931 
936  void StrokeOpacity(float opacity);
937 
942  float StrokeOpacity();
943 
948  void StrokeWidth(int width);
949 
954  int StrokeWidth();
955  }
956 
963  public interface MapFeatureCollection extends MapFeatureContainer {
964  // Properties
965 
970  boolean Visible();
971 
976  YailList Features();
977 
983  void Source(String source);
984 
989  String Source();
990 
991  // Functions
992 
1000  void LoadFromURL(String url);
1001 
1002  // Events
1003 
1011  void GotFeatures(String url, YailList features);
1012 
1019  void LoadError(String url, int code, String message);
1020  }
1021 
1028  public interface MapCircle extends MapFeature, HasFill, HasStroke {
1029  // Properties
1030 
1035  void Radius(double radius);
1036 
1041  double Radius();
1042 
1048  void Latitude(double latitude);
1049 
1055  double Latitude();
1056 
1062  void Longitude(double longitude);
1063 
1069  double Longitude();
1070 
1071  // Methods
1072 
1079  void SetLocation(double latitude, double longitude);
1080 
1081  // Updates from native view
1082 
1090  void updateCenter(double latitude, double longitude);
1091  }
1092 
1099  public interface MapRectangle extends MapFeature, HasFill, HasStroke {
1100  // Properties
1101 
1107  void EastLongitude(double east);
1108 
1114  double EastLongitude();
1115 
1121  void NorthLatitude(double north);
1122 
1128  double NorthLatitude();
1129 
1135  void SouthLatitude(double south);
1136 
1142  double SouthLatitude();
1143 
1149  void WestLongitude(double west);
1150 
1156  double WestLongitude();
1157 
1162  YailList Center();
1163 
1169  YailList Bounds();
1170 
1171  // Methods
1172 
1182  void SetCenter(double latitude, double longitude);
1183 
1184  // Updates from native view
1185 
1196  void updateBounds(double north, double west, double south, double east);
1197  }
1198 
1205  public interface MapMarker extends MapFeature, HasFill, HasStroke {
1206  // Properties
1207 
1213  @SuppressWarnings("squid:S00100")
1214  void ImageAsset(String path);
1215 
1221  @SuppressWarnings("squid:S00100")
1222  String ImageAsset();
1223 
1229  @SuppressWarnings("squid:S00100")
1230  void Latitude(double latitude);
1231 
1237  @SuppressWarnings("squid:S00100")
1238  double Latitude();
1239 
1245  @SuppressWarnings("squid:S00100")
1246  void Longitude(double longitude);
1247 
1253  @SuppressWarnings("squid:S00100")
1254  double Longitude();
1255 
1262  @SuppressWarnings("squid:S00100")
1263  void AnchorHorizontal(int horizontal);
1264 
1270  @SuppressWarnings("squid:S00100")
1271  int AnchorHorizontal();
1272 
1279  @SuppressWarnings("squid:S00100")
1280  void AnchorVertical(int vertical);
1281 
1287  @SuppressWarnings("squid:S00100")
1288  int AnchorVertical();
1289 
1297  @SuppressWarnings("squid:S00100")
1298  void ShowShadow(boolean show);
1299 
1305  @SuppressWarnings("squid:S00100")
1306  boolean ShowShadow();
1307 
1312  @SuppressWarnings("squid:S00100")
1313  void Width(int width);
1314 
1319  @SuppressWarnings("squid:S00100")
1320  int Width();
1321 
1326  @SuppressWarnings("squid:S00100")
1327  void Height(int height);
1328 
1333  @SuppressWarnings("squid:S00100")
1334  int Height();
1335 
1336  // Methods
1337 
1345  @SuppressWarnings("squid:S00100")
1346  void SetLocation(double latitude, double longitude);
1347 
1348  // convenience methods
1349 
1355  IGeoPoint getLocation();
1356 
1364  void updateLocation(double latitude, double longitude);
1365  }
1366 
1373  public interface MapLineString extends MapFeature, HasStroke {
1374 
1379  YailList Points();
1380 
1385  void Points(YailList points);
1386 
1387  // For convenient java manipulation
1388 
1393  List<GeoPoint> getPoints();
1394 
1401  void updatePoints(List<GeoPoint> points);
1402  }
1403 
1410  public interface MapPolygon extends MapFeature, HasFill, HasStroke {
1411 
1418  YailList Points();
1419 
1425  void Points(YailList points);
1426 
1433  YailList HolePoints();
1434 
1440  void HolePoints(YailList points);
1441 
1442  // For convenient java manipulation
1443 
1449  List<List<GeoPoint>> getPoints();
1450 
1456  List<List<List<GeoPoint>>> getHolePoints();
1457 
1465  void updatePoints(List<List<GeoPoint>> points);
1466 
1475  void updateHolePoints(List<List<List<GeoPoint>>> points);
1476  }
1477 
1483  public static final class MapFeatureType {
1484  private MapFeatureType() {}
1485 
1489  public static final String TYPE_MARKER = "Marker";
1490 
1494  public static final String TYPE_CIRCLE = "Circle";
1495 
1499  public static final String TYPE_RECTANGLE = "Rectangle";
1500 
1501  // the following 6 types are defined by GeoJSON
1502 
1506  public static final String TYPE_POINT = "Point";
1507 
1511  public static final String TYPE_LINESTRING = "LineString";
1512 
1516  public static final String TYPE_POLYGON = "Polygon";
1517 
1521  @SuppressWarnings("unused")
1522  public static final String TYPE_MULTIPOINT = "MultiPoint";
1523 
1527  @SuppressWarnings("unused")
1528  public static final String TYPE_MULTILINESTRING = "MultiLineString";
1529 
1533  public static final String TYPE_MULTIPOLYGON = "MultiPolygon";
1534  }
1535 
1541  public enum MapType {
1547 
1552 
1557 
1561  TERRAIN
1562  }
1563 
1567  public enum MapScaleUnits {
1573 
1578 
1582  IMPERIAL
1583  }
1584 
1597  public static MapController newMap(Form form) {
1598  if (Build.VERSION.SDK_INT < 8) {
1599  return new DummyMapController();
1600  } else {
1601  return new NativeOpenStreetMapController(form);
1602  }
1603  }
1604 }
com.google.appinventor.components.runtime.util.MapFactory.MapController.setZoomControlEnabled
void setZoomControlEnabled(boolean enable)
com.google.appinventor.components.runtime.util.MapFactory.MapController.hideFeature
void hideFeature(MapFeature feature)
com.google.appinventor.components.runtime.util.MapFactory.MapRectangle.NorthLatitude
double NorthLatitude()
com.google.appinventor.components.runtime.util.YailList
Definition: YailList.java:26
com.google.appinventor.components.runtime.util.MapFactory.MapCircle
Definition: MapFactory.java:1028
com.google.appinventor.components.runtime.util.MapFactory.MapController.setFeatureCollectionVisible
void setFeatureCollectionVisible(MapFeatureCollection collection, boolean visible)
com.google.appinventor.components.runtime.util.MapFactory.MapController.getLocationListener
LocationSensor.LocationSensorListener getLocationListener()
com.google.appinventor.components.runtime.util.MapFactory.MapMarker.AnchorHorizontal
int AnchorHorizontal()
com.google.appinventor.components.runtime.util.MapFactory.MapMarker.AnchorVertical
int AnchorVertical()
com.google.appinventor.components.runtime.util.MapFactory.MapFeatureContainer.addFeature
void addFeature(MapFeature feature)
com.google.appinventor.components.runtime.util.MapFactory.MapController.isFeatureVisible
boolean isFeatureVisible(MapFeature feature)
com.google.appinventor.components.runtime.util.MapFactory.MapFeature.StopDrag
void StopDrag()
com.google.appinventor.components.runtime.util.MapFactory.MapCircle.Radius
double Radius()
com.google.appinventor.components.runtime.util.MapFactory
Definition: MapFactory.java:30
com.google.appinventor.components.runtime.util.MapFactory.MapFeature.LongClick
void LongClick()
com.google.appinventor.components.runtime.util.MapFactory.MapController.getLatitude
double getLatitude()
com.google.appinventor.components.runtime.util.MapFactory.MapFeature.Click
void Click()
com.google.appinventor.components.runtime.util.MapFactory.MapPolygon.Points
YailList Points()
com.google.appinventor.components.runtime.util.MapFactory.MapController.updateFeaturePosition
void updateFeaturePosition(MapMarker marker)
com.google.appinventor.components.runtime.util.MapFactory.HasStroke.StrokeWidth
int StrokeWidth()
com.google.appinventor.components.runtime.util.MapFactory.HasFill
Definition: MapFactory.java:888
com.google.appinventor.components.runtime.util.MapFactory.MapController.setZoom
void setZoom(int zoom)
com.google.appinventor.components.runtime.util.BoundingBox
Definition: BoundingBox.java:13
com.google.appinventor.components.runtime.util.MapFactory.MapFeatureContainer.removeFeature
void removeFeature(MapFeature feature)
com.google.appinventor.components.runtime.util.MapFactory.MapController.updateFeatureHoles
void updateFeatureHoles(MapPolygon polygon)
com.google.appinventor.components.runtime.util.MapFactory.MapFeatureContainer.FeatureLongClick
void FeatureLongClick(MapFeature feature)
com.google.appinventor.components.runtime.util.MapFactory.MapController.updateFeatureFill
void updateFeatureFill(HasFill feature)
com.google.appinventor.components.runtime.util.MapFactory.MapScaleUnits.METRIC
METRIC
Definition: MapFactory.java:1577
com.google.appinventor.components.runtime.util.MapFactory.MapScaleUnits
Definition: MapFactory.java:1567
com.google.appinventor.components.runtime.util.MapFactory.MapFeatureCollection.Source
String Source()
com.google.appinventor.components.runtime.util.MapFactory.MapCircle.updateCenter
void updateCenter(double latitude, double longitude)
com.google.appinventor.components.runtime.util.MapFactory.MapFeatureContainer.Features
YailList Features()
com.google.appinventor.components.runtime.util.MapFactory.MapController.updateFeatureStroke
void updateFeatureStroke(HasStroke feature)
com.google.appinventor.components
com.google.appinventor.components.runtime.util.MapFactory.MapPolygon.getPoints
List< List< GeoPoint > > getPoints()
com.google.appinventor.components.runtime.util.MapFactory.MapType
Definition: MapFactory.java:1541
com.google.appinventor.components.runtime.util.MapFactory.MapEventListener.onFeatureStopDrag
void onFeatureStopDrag(MapFeature feature)
com.google.appinventor.components.runtime.util.MapFactory.MapController.getBoundingBox
BoundingBox getBoundingBox()
com.google.appinventor.components.runtime.util.MapFactory.MapLineString
Definition: MapFactory.java:1373
com.google.appinventor.components.runtime.util.MapFactory.MapPolygon
Definition: MapFactory.java:1410
com.google.appinventor.components.runtime.util.MapFactory.MapFeature.EnableInfobox
boolean EnableInfobox()
com.google.appinventor.components.runtime.util.MapFactory.MapFeatureCollection.LoadFromURL
void LoadFromURL(String url)
com.google.appinventor.components.runtime.util.MapFactory.MapController.setRotation
void setRotation(float Rotation)
com.google.appinventor.components.runtime.util.MapFactory.newMap
static MapController newMap(Form form)
Definition: MapFactory.java:1597
com.google.appinventor.components.runtime.util.MapFactory.MapEventListener.onFeatureClick
void onFeatureClick(MapFeature feature)
com.google.appinventor.components.runtime.util.MapFactory.MapController.isZoomEnabled
boolean isZoomEnabled()
com.google.appinventor.components.runtime.util.MapFactory.MapFeatureContainer.FeatureStopDrag
void FeatureStopDrag(MapFeature feature)
com.google.appinventor.components.runtime.util.MapFactory.MapType.ROADS
ROADS
Definition: MapFactory.java:1551
com.google.appinventor.components.runtime.util.MapFactory.MapPolygon.HolePoints
YailList HolePoints()
com.google.appinventor.components.runtime.util.MapFactory.MapFeatureContainer.getMap
Map getMap()
com.google.appinventor.components.runtime.util.MapFactory.MapFeature.accept
< T > T accept(MapFeatureVisitor< T > visitor, Object... arguments)
com.google.appinventor.components.runtime.util.MapFactory.MapController.updateFeatureDraggable
void updateFeatureDraggable(MapFeature feature)
com.google.appinventor.components.runtime.util.MapFactory.MapController.setScaleVisible
void setScaleVisible(boolean show)
com.google.appinventor.components.runtime.util.MapFactory.MapRectangle.SetCenter
void SetCenter(double latitude, double longitude)
com.google.appinventor.components.runtime.util.MapFactory.MapRectangle
Definition: MapFactory.java:1099
com.google.appinventor.components.runtime.util.MapFactory.MapRectangle.SouthLatitude
double SouthLatitude()
com.google.appinventor.components.runtime.util.MapFactory.MapEventListener.onReady
void onReady(MapController map)
com.google.appinventor.components.runtime.util.MapFactory.MapPolygon.getHolePoints
List< List< List< GeoPoint > > > getHolePoints()
com.google.appinventor.components.runtime.util.MapFactory.MapEventListener.onLongPress
void onLongPress(double latitude, double longitude)
com.google.appinventor.components.runtime.util.MapFactory.MapEventListener.onFeatureStartDrag
void onFeatureStartDrag(MapFeature feature)
com.google.appinventor.components.runtime.util.MapFactory.MapController.isCompassEnabled
boolean isCompassEnabled()
com.google.appinventor.components.runtime.util.MapFactory.MapCircle.Latitude
double Latitude()
com.google.appinventor.components.runtime.util.MapFactory.MapFeature.StartDrag
void StartDrag()
com.google.appinventor.components.runtime.util.MapFactory.MapFeature.setMap
void setMap(MapFeatureContainer map)
com.google.appinventor.components.runtime.util.MapFactory.MapFeatureVisitor.visit
T visit(MapMarker marker, Object... arguments)
com.google.appinventor.components.runtime.util.MapFactory.MapController.isRotationEnabled
boolean isRotationEnabled()
com.google.appinventor.components.runtime.util.MapFactory.MapMarker.Height
int Height()
com.google.appinventor.components.runtime.util.MapFactory.HasFill.FillOpacity
float FillOpacity()
com.google.appinventor.components.runtime.util.MapFactory.MapController.updateFeatureSize
void updateFeatureSize(MapMarker marker)
com.google.appinventor.components.runtime.util.MapFactory.MapController.getScaleUnits
MapScaleUnits getScaleUnits()
com.google.appinventor.components.runtime.util.MapFactory.MapMarker.ImageAsset
String ImageAsset()
com.google.appinventor.components.runtime.util.MapFactory.MapEventListener.onBoundsChanged
void onBoundsChanged()
com.google.appinventor.components.runtime.util.MapFactory.MapFeatureContainer.iterator
Iterator< MapFeature > iterator()
com.google.appinventor.components.runtime.util.MapFactory.MapFeatureCollection.Visible
boolean Visible()
com.google.appinventor.components.runtime.util.MapFactory.HasFill.FillColor
int FillColor()
com.google.appinventor.components.runtime.util.MapFactory.MapMarker.SetLocation
void SetLocation(double latitude, double longitude)
com.google.appinventor.components.runtime.util.MapFactory.MapController.setScaleUnits
void setScaleUnits(MapScaleUnits units)
com.google.appinventor.components.runtime.util.MapFactory.MapCircle.SetLocation
void SetLocation(double latitude, double longitude)
com.google.appinventor.components.runtime.util.MapFactory.MapRectangle.WestLongitude
double WestLongitude()
com.google.appinventor.components.runtime.util.MapFactory.MapController.isPanEnabled
boolean isPanEnabled()
com.google.appinventor.components.runtime.util.MapFactory.MapMarker
Definition: MapFactory.java:1205
com.google.appinventor.components.runtime.util.MapFactory.MapPolygon.updateHolePoints
void updateHolePoints(List< List< List< GeoPoint >>> points)
com.google.appinventor.components.runtime.util.MapFactory.MapController.panTo
void panTo(double latitude, double longitude, int zoom, double seconds)
com.google.appinventor.components.runtime.util.MapFactory.MapEventListener.onFeatureLongPress
void onFeatureLongPress(MapFeature feature)
com.google.appinventor.components.runtime.util.MapFactory.MapFeatureCollection.Features
YailList Features()
com.google.appinventor.components.runtime.util.MapFactory.MapMarker.Longitude
double Longitude()
com.google.appinventor.components.runtime.util.MapFactory.MapController
Definition: MapFactory.java:134
com.google.appinventor.components.runtime.util.MapFactory.MapLineString.Points
YailList Points()
com.google.appinventor.components.runtime.util.MapFactory.MapFeature
Definition: MapFactory.java:588
com.google.appinventor.components.runtime.util.MapFactory.MapType.UNKNOWN
UNKNOWN
Definition: MapFactory.java:1546
com.google.appinventor.components.runtime.util.MapFactory.MapFeature.Visible
boolean Visible()
com.google.appinventor.components.runtime.util.MapFactory.MapFeatureCollection.GotFeatures
void GotFeatures(String url, YailList features)
com.google.appinventor.components.runtime.util.MapFactory.MapMarker.Width
int Width()
com.google.appinventor.components.runtime.util.MapFactory.MapFeatureContainer.FeatureDrag
void FeatureDrag(MapFeature feature)
com.google.appinventor.components.runtime.util.MapFactory.MapController.showFeature
void showFeature(MapFeature feature)
com.google.appinventor.components.runtime.util.MapFactory.MapEventListener.onDoubleTap
void onDoubleTap(double latitude, double longitude)
com.google.appinventor.components.runtime.util.MapFactory.MapFeature.Description
String Description()
com.google.appinventor.components.runtime.util.MapFactory.MapController.isScaleVisible
boolean isScaleVisible()
com.google.appinventor.components.runtime.util.MapFactory.MapController.hideInfobox
void hideInfobox(MapFeature feature)
com.google.appinventor.components.runtime.util.MapFactory.MapController.setCenter
void setCenter(double latitude, double longitude)
com.google.appinventor.components.runtime.util.MapFactory.MapController.setShowUserEnabled
void setShowUserEnabled(boolean enable)
com.google.appinventor.components.runtime.util.MapFactory.MapFeatureCollection
Definition: MapFactory.java:963
com.google.appinventor.components.runtime.util.MapFactory.MapMarker.ShowShadow
boolean ShowShadow()
com.google.appinventor.components.runtime.util.MapFactory.MapController.setBoundingBox
void setBoundingBox(BoundingBox bbox)
com.google.appinventor.components.runtime.util.MapFactory.MapFeature.removeFromMap
void removeFromMap()
com.google.appinventor.components.runtime.util.MapFactory.MapFeatureContainer.FeatureClick
void FeatureClick(MapFeature feature)
com.google.appinventor.components.runtime.util.MapFactory.HasStroke
Definition: MapFactory.java:919
com.google.appinventor.components.runtime.util.MapFactory.MapController.updateFeatureText
void updateFeatureText(MapFeature feature)
com.google.appinventor.components.runtime.util.MapFactory.MapController.getRotation
float getRotation()
com.google.appinventor.components.runtime.util.MapFactory.MapController.setCompassEnabled
void setCompassEnabled(boolean enable)
com.google.appinventor.components.runtime.util.MapFactory.MapFeatureContainer.FeatureStartDrag
void FeatureStartDrag(MapFeature feature)
com.google.appinventor.components.runtime.ComponentContainer
Definition: ComponentContainer.java:16
com.google.appinventor.components.runtime.util.MapFactory.MapRectangle.Bounds
YailList Bounds()
com.google.appinventor.components.runtime.util.MapFactory.HasStroke.StrokeColor
int StrokeColor()
com.google.appinventor.components.runtime.util.MapFactory.MapLineString.getPoints
List< GeoPoint > getPoints()
com.google.appinventor.components.runtime
Copyright 2009-2011 Google, All Rights reserved.
Definition: AccelerometerSensor.java:8
com.google.appinventor.components.runtime.util.MapFactory.MapFeature.Title
String Title()
com.google.appinventor.components.runtime.Component
Definition: Component.java:17
com.google.appinventor.components.runtime.util.MapFactory.MapController.showInfobox
void showInfobox(MapFeature feature)
com.google.appinventor.components.runtime.Map
Definition: Map.java:84
com.google.appinventor.components.runtime.util.MapFactory.MapController.getZoom
int getZoom()
com.google.appinventor.components.runtime.util.MapFactory.MapFeature.Type
String Type()
com.google.appinventor.components.runtime.util.MapFactory.MapController.setMapType
void setMapType(MapType type)
com.google.appinventor.components.runtime.LocationSensor
Definition: LocationSensor.java:81
com.google.appinventor.components.runtime.Map.BoundingBox
void BoundingBox(YailList boundingbox)
Definition: Map.java:440
com.google.appinventor.components.runtime.util.MapFactory.MapController.isFeatureCollectionVisible
boolean isFeatureCollectionVisible(MapFeatureCollection collection)
com.google.appinventor.components.runtime.util.MapFactory.MapLineString.updatePoints
void updatePoints(List< GeoPoint > points)
com.google.appinventor.components.runtime.util.MapFactory.MapFeature.HideInfobox
void HideInfobox()
com.google.appinventor.components.runtime.util.MapFactory.HasStroke.StrokeOpacity
float StrokeOpacity()
com.google.appinventor.components.runtime.util.MapFactory.MapFeature.ShowInfobox
void ShowInfobox()
com.google.appinventor.components.runtime.util.MapFactory.MapController.getOverlayCount
int getOverlayCount()
com.google.appinventor.components.runtime.util.MapFactory.MapRectangle.Center
YailList Center()
com.google.appinventor.components.runtime.util.MapFactory.MapEventListener.onZoom
void onZoom()
com.google.appinventor.components.runtime.LocationSensor.LocationSensorListener
Definition: LocationSensor.java:84
com.google.appinventor.components.runtime.util.MapFactory.MapController.updateFeatureImage
void updateFeatureImage(MapMarker marker)
com.google.appinventor.components.runtime.util.MapFactory.MapFeature.getCentroid
GeoPoint getCentroid()
com.google
com.google.appinventor.components.runtime.util.MapFactory.MapController.addEventListener
void addEventListener(MapEventListener listener)
com
com.google.appinventor.components.runtime.util.MapFactory.MapMarker.updateLocation
void updateLocation(double latitude, double longitude)
com.google.appinventor.components.runtime.util.MapFactory.MapFeature.Drag
void Drag()
com.google.appinventor.components.runtime.util.MapFactory.MapEventListener
Definition: MapFactory.java:37
com.google.appinventor.components.runtime.util.MapFactory.MapMarker.Latitude
double Latitude()
com.google.appinventor.components.runtime.util.MapFactory.MapEventListener.onFeatureDrag
void onFeatureDrag(MapFeature feature)
com.google.appinventor.components.runtime.util.MapFactory.MapFeature.Draggable
boolean Draggable()
com.google.appinventor.components.runtime.util.MapFactory.MapController.isShowUserEnabled
boolean isShowUserEnabled()
com.google.appinventor.components.runtime.util.MapFactory.MapController.isInfoboxVisible
boolean isInfoboxVisible(MapFeature feature)
com.google.appinventor.components.runtime.util.MapFactory.MapFeatureContainer
Definition: MapFactory.java:800
com.google.appinventor.components.runtime.util.MapFactory.MapController.addFeature
void addFeature(MapMarker marker)
com.google.appinventor.components.runtime.util.MapFactory.MapController.getView
View getView()
com.google.appinventor.components.runtime.util.MapFactory.MapController.setRotationEnabled
void setRotationEnabled(boolean enable)
com.google.appinventor.components.runtime.util.MapFactory.MapEventListener.onSingleTap
void onSingleTap(double latitude, double longitude)
com.google.appinventor.components.runtime.util.MapFactory.MapController.isZoomControlEnabled
boolean isZoomControlEnabled()
com.google.appinventor.components.runtime.util.MapFactory.MapFeature.getGeometry
Geometry getGeometry()
com.google.appinventor.components.runtime.util.MapFactory.MapType.AERIAL
AERIAL
Definition: MapFactory.java:1556
com.google.appinventor.components.runtime.Form
Definition: Form.java:126
com.google.appinventor.components.runtime.util.MapFactory.MapController.setPanEnabled
void setPanEnabled(boolean enable)
com.google.appinventor.components.runtime.util.MapFactory.MapFeatureVisitor
Definition: MapFactory.java:745
com.google.appinventor.components.runtime.util.MapFactory.MapController.setZoomEnabled
void setZoomEnabled(boolean enable)
com.google.appinventor.components.runtime.util.MapFactory.MapController.getLongitude
double getLongitude()
com.google.appinventor.components.runtime.util.MapFactory.MapPolygon.updatePoints
void updatePoints(List< List< GeoPoint >> points)
com.google.appinventor.components.runtime.util.MapFactory.MapController.getMapType
MapType getMapType()
com.google.appinventor.components.runtime.util.MapFactory.MapRectangle.updateBounds
void updateBounds(double north, double west, double south, double east)
com.google.appinventor
com.google.appinventor.components.runtime.util.MapFactory.MapFeatureCollection.LoadError
void LoadError(String url, int code, String message)
com.google.appinventor.components.runtime.util.MapFactory.MapScaleUnits.UNKNOWN
UNKNOWN
Definition: MapFactory.java:1572
com.google.appinventor.components.runtime.util.MapFactory.MapRectangle.EastLongitude
double EastLongitude()
com.google.appinventor.components.runtime.util.MapFactory.MapCircle.Longitude
double Longitude()
com.google.appinventor.components.runtime.util.MapFactory.MapMarker.getLocation
IGeoPoint getLocation()
com.google.appinventor.components.runtime.util.MapFactory.MapController.removeFeature
void removeFeature(MapFeature feature)