|
AI2 Component
(Version nb184)
|
Go to the documentation of this file.
6 package com.google.appinventor.components.runtime;
22 import android.view.View;
23 import org.json.JSONException;
31 @DesignerComponent(version = YaVersion.FEATURE_COLLECTION_COMPONENT_VERSION,
32 category = ComponentCategory.MAPS,
33 description =
"A FeatureCollection contains one or more map features as a group. Any events " +
34 "fired on a feature in the collection will also trigger the corresponding event on the " +
35 "collection object. FeatureCollections can be loaded from external resources as a means " +
36 "of populating a Map with content.")
39 private String source =
"";
54 @SuppressWarnings(
"squid:S00100")
56 @
SimpleProperty(description =
"Loads a collection of features from the given string. If the " +
57 "string is not valid GeoJSON, the ErrorLoadingFeatureCollection error will be run with " +
62 }
catch(JSONException e) {
78 @
SimpleEvent(description =
"A GeoJSON document was successfully read from url. The features " +
79 "specified in the document are provided as a list in features.")
94 description =
"Specifies the source URL used to populate the feature collection. If " +
95 "the feature collection was not loaded from a URL, this will be the empty string.")
116 defaultValue =
"True")
117 @
SimpleProperty(description =
"Specifies whether the component should be visible on the screen. "
118 +
"Value is true if the component is showing and false if hidden.")
void setFeatureCollectionVisible(MapFeatureCollection collection, boolean visible)
List< MapFeature > features
-*- mode: java; c-basic-offset: 2; -*-
void GotFeatures(String url, YailList features)
FeatureCollection(MapFactory.MapFeatureContainer container)
MapController getController()
static final String PROPERTY_TYPE_GEOJSON_TYPE
static final int ERROR_INVALID_GEOJSON
static final String PROPERTY_TYPE_TEXTAREA
static final String PROPERTY_TYPE_VISIBILITY
Copyright 2009-2011 Google, All Rights reserved.
boolean isFeatureCollectionVisible(MapFeatureCollection collection)
void FeaturesFromGeoJSON(String geojson)
final ComponentContainer container
void processGeoJSON(final String url, final String content)