AI2 Component  (Version nb184)
com.google.appinventor.components.runtime.util.MapFactory Class Reference

Classes

interface  HasFill
 
interface  HasStroke
 
interface  MapCircle
 
interface  MapController
 
interface  MapEventListener
 
interface  MapFeature
 
interface  MapFeatureCollection
 
interface  MapFeatureContainer
 
class  MapFeatureType
 
interface  MapFeatureVisitor
 
interface  MapLineString
 
interface  MapMarker
 
interface  MapPolygon
 
interface  MapRectangle
 
enum  MapScaleUnits
 
enum  MapType
 

Static Public Member Functions

static MapController newMap (Form form)
 

Detailed Description

Utilities used by the Map component to provide backward compatibility with pre-Froyo devices.

Author
ewpat.nosp@m.ton@.nosp@m.mit.e.nosp@m.du (Evan W. Patton)

Definition at line 30 of file MapFactory.java.

Member Function Documentation

◆ newMap()

static MapController com.google.appinventor.components.runtime.util.MapFactory.newMap ( Form  form)
static

Constructs a new map for the given form. On versions of Android that are too old for Maps support, a DummyMapController is returned that throws UnsupportedOperationException whenever it is used.

App Inventor derivatives may opt to provide their own Maps implementation that uses a backend other than OpenStreetMaps by providing another implementation here.

Parameters
formthe form to use as a context.
Returns
a new MapController instance. the actual instance will be a function of the device's build SDK.

Definition at line 1597 of file MapFactory.java.


The documentation for this class was generated from the following file: