[android] data driven style implementation
This commit is contained in:
committed by
John Firebaugh
parent
8a5bff8ee6
commit
f562ecdfc3
@@ -406,6 +406,17 @@
|
||||
android:name="android.support.PARENT_ACTIVITY"
|
||||
android:value=".activity.FeatureOverviewActivity"/>
|
||||
</activity>
|
||||
<activity
|
||||
android:name=".activity.style.DataDrivenStyleActivity"
|
||||
android:description="@string/description_data_driven_style"
|
||||
android:label="@string/activity_data_driven_style">
|
||||
<meta-data
|
||||
android:name="@string/category"
|
||||
android:value="@string/category_style"/>
|
||||
<meta-data
|
||||
android:name="android.support.PARENT_ACTIVITY"
|
||||
android:value=".activity.FeatureOverviewActivity"/>
|
||||
</activity>
|
||||
<activity
|
||||
android:name=".activity.style.CircleLayerActivity"
|
||||
android:description="@string/description_circle_layer"
|
||||
|
||||
@@ -0,0 +1,395 @@
|
||||
package com.mapbox.mapboxsdk.testapp.activity.style;
|
||||
|
||||
import android.graphics.Color;
|
||||
import android.os.Bundle;
|
||||
import android.support.annotation.RawRes;
|
||||
import android.support.v7.app.AppCompatActivity;
|
||||
import android.view.Menu;
|
||||
import android.view.MenuItem;
|
||||
import android.widget.Toast;
|
||||
|
||||
import com.mapbox.mapboxsdk.camera.CameraUpdateFactory;
|
||||
import com.mapbox.mapboxsdk.geometry.LatLng;
|
||||
import com.mapbox.mapboxsdk.maps.MapView;
|
||||
import com.mapbox.mapboxsdk.maps.MapboxMap;
|
||||
import com.mapbox.mapboxsdk.maps.OnMapReadyCallback;
|
||||
import com.mapbox.mapboxsdk.style.functions.stops.Stops;
|
||||
import com.mapbox.mapboxsdk.style.layers.FillLayer;
|
||||
import com.mapbox.mapboxsdk.style.sources.GeoJsonSource;
|
||||
import com.mapbox.mapboxsdk.style.sources.Source;
|
||||
import com.mapbox.mapboxsdk.testapp.R;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.InputStreamReader;
|
||||
import java.io.Reader;
|
||||
import java.io.StringWriter;
|
||||
import java.io.Writer;
|
||||
|
||||
import timber.log.Timber;
|
||||
|
||||
import static com.mapbox.mapboxsdk.style.functions.Function.composite;
|
||||
import static com.mapbox.mapboxsdk.style.functions.Function.property;
|
||||
import static com.mapbox.mapboxsdk.style.functions.Function.zoom;
|
||||
import static com.mapbox.mapboxsdk.style.functions.stops.Stop.stop;
|
||||
import static com.mapbox.mapboxsdk.style.functions.stops.Stops.categorical;
|
||||
import static com.mapbox.mapboxsdk.style.functions.stops.Stops.exponential;
|
||||
import static com.mapbox.mapboxsdk.style.functions.stops.Stops.interval;
|
||||
import static com.mapbox.mapboxsdk.style.layers.PropertyFactory.fillAntialias;
|
||||
import static com.mapbox.mapboxsdk.style.layers.PropertyFactory.fillColor;
|
||||
import static com.mapbox.mapboxsdk.style.layers.PropertyFactory.fillOpacity;
|
||||
import static com.mapbox.mapboxsdk.style.layers.PropertyFactory.fillOutlineColor;
|
||||
|
||||
/**
|
||||
* Sample Activity to show off the data driven runtime style api
|
||||
*/
|
||||
public class DataDrivenStyleActivity extends AppCompatActivity {
|
||||
|
||||
public static final String AMSTERDAM_PARKS_LAYER = "amsterdam-parks-layer";
|
||||
private MapView mapView;
|
||||
private MapboxMap mapboxMap;
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_data_driven_style);
|
||||
|
||||
// Initialize map as normal
|
||||
mapView = (MapView) findViewById(R.id.mapView);
|
||||
mapView.onCreate(savedInstanceState);
|
||||
|
||||
|
||||
mapView.getMapAsync(new OnMapReadyCallback() {
|
||||
@Override
|
||||
public void onMapReady(MapboxMap map) {
|
||||
// Store for later
|
||||
mapboxMap = map;
|
||||
|
||||
// Add a parks layer
|
||||
addParksLayer();
|
||||
|
||||
// Center and Zoom (Amsterdam, zoomed to streets)
|
||||
mapboxMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(52.379189, 4.899431), 14));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onCreateOptionsMenu(Menu menu) {
|
||||
getMenuInflater().inflate(R.menu.menu_data_driven_style, menu);
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onStart() {
|
||||
super.onStart();
|
||||
mapView.onStart();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onResume() {
|
||||
super.onResume();
|
||||
mapView.onResume();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onPause() {
|
||||
super.onPause();
|
||||
mapView.onPause();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onStop() {
|
||||
super.onStop();
|
||||
mapView.onStop();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onSaveInstanceState(Bundle outState) {
|
||||
super.onSaveInstanceState(outState);
|
||||
mapView.onSaveInstanceState(outState);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onDestroy() {
|
||||
super.onDestroy();
|
||||
mapView.onDestroy();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onLowMemory() {
|
||||
super.onLowMemory();
|
||||
mapView.onLowMemory();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onOptionsItemSelected(MenuItem item) {
|
||||
switch (item.getItemId()) {
|
||||
case R.id.action_add_exponential_zoom_function:
|
||||
addExponentialZoomFunction();
|
||||
return true;
|
||||
case R.id.action_add_interval_zoom_function:
|
||||
addIntervalZoomFunction();
|
||||
return true;
|
||||
case R.id.action_add_categorical_source_function:
|
||||
addCategoricalSourceFunction();
|
||||
return true;
|
||||
case R.id.action_add_exponential_source_function:
|
||||
addExponentialSourceFunction();
|
||||
return true;
|
||||
case R.id.action_add_identity_source_function:
|
||||
addIdentitySourceFunction();
|
||||
return true;
|
||||
case R.id.action_add_interval_source_function:
|
||||
addIntervalSourceFunction();
|
||||
return true;
|
||||
case R.id.action_add_composite_categorical_function:
|
||||
addCompositeCategoricalFunction();
|
||||
return true;
|
||||
case R.id.action_add_composite_exponential_function:
|
||||
addCompositeExponentialFunction();
|
||||
return true;
|
||||
case R.id.action_add_composite_interval_function:
|
||||
addCompositeIntervalFunction();
|
||||
return true;
|
||||
default:
|
||||
return super.onOptionsItemSelected(item);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void addExponentialZoomFunction() {
|
||||
Timber.i("Add exponential zoom function");
|
||||
FillLayer layer = mapboxMap.getLayerAs("water");
|
||||
assert layer != null;
|
||||
layer.setProperties(
|
||||
fillColor(
|
||||
zoom(
|
||||
exponential(
|
||||
stop(1, fillColor(Color.RED)),
|
||||
stop(5, fillColor(Color.BLUE)),
|
||||
stop(10, fillColor(Color.GREEN))
|
||||
).withBase(0.5f)
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
Timber.i("Fill color: %s", layer.getFillColor());
|
||||
}
|
||||
|
||||
private void addIntervalZoomFunction() {
|
||||
Timber.i("Add interval zoom function");
|
||||
FillLayer layer = mapboxMap.getLayerAs("water");
|
||||
assert layer != null;
|
||||
layer.setProperties(
|
||||
fillColor(
|
||||
zoom(
|
||||
interval(
|
||||
stop(1, fillColor(Color.RED)),
|
||||
stop(5, fillColor(Color.BLUE)),
|
||||
stop(10, fillColor(Color.GREEN))
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
Timber.i("Fill color: %s", layer.getFillColor());
|
||||
}
|
||||
|
||||
private void addExponentialSourceFunction() {
|
||||
Timber.i("Add exponential source function");
|
||||
FillLayer layer = mapboxMap.getLayerAs(AMSTERDAM_PARKS_LAYER);
|
||||
assert layer != null;
|
||||
layer.setProperties(
|
||||
fillColor(
|
||||
property(
|
||||
"stroke-width",
|
||||
exponential(
|
||||
stop(1f, fillColor(Color.RED)),
|
||||
stop(5f, fillColor(Color.BLUE)),
|
||||
stop(10f, fillColor(Color.GREEN))
|
||||
).withBase(0.5f)
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
Timber.i("Fill color: %s", layer.getFillColor());
|
||||
}
|
||||
|
||||
private void addCategoricalSourceFunction() {
|
||||
Timber.i("Add categorical source function");
|
||||
FillLayer layer = mapboxMap.getLayerAs(AMSTERDAM_PARKS_LAYER);
|
||||
assert layer != null;
|
||||
layer.setProperties(
|
||||
fillColor(
|
||||
property(
|
||||
"name",
|
||||
categorical(
|
||||
stop("Westerpark", fillColor(Color.RED)),
|
||||
stop("Jordaan", fillColor(Color.BLUE)),
|
||||
stop("Prinseneiland", fillColor(Color.GREEN))
|
||||
))
|
||||
)
|
||||
);
|
||||
|
||||
Timber.i("Fill color: %s", layer.getFillColor());
|
||||
}
|
||||
|
||||
private void addIdentitySourceFunction() {
|
||||
Timber.i("Add identity source function");
|
||||
FillLayer layer = mapboxMap.getLayerAs(AMSTERDAM_PARKS_LAYER);
|
||||
assert layer != null;
|
||||
layer.setProperties(
|
||||
fillOpacity(
|
||||
property(
|
||||
"fill-opacity",
|
||||
Stops.<Float>identity())
|
||||
)
|
||||
);
|
||||
|
||||
Timber.i("Fill opacity: %s", layer.getFillOpacity());
|
||||
}
|
||||
|
||||
private void addIntervalSourceFunction() {
|
||||
Timber.i("Add interval source function");
|
||||
FillLayer layer = mapboxMap.getLayerAs(AMSTERDAM_PARKS_LAYER);
|
||||
assert layer != null;
|
||||
layer.setProperties(
|
||||
fillColor(
|
||||
property(
|
||||
"stroke-width",
|
||||
interval(
|
||||
stop(1f, fillColor(Color.RED)),
|
||||
stop(5f, fillColor(Color.BLUE)),
|
||||
stop(10f, fillColor(Color.GREEN))
|
||||
))
|
||||
)
|
||||
);
|
||||
|
||||
Timber.i("Fill color: %s", layer.getFillColor());
|
||||
}
|
||||
|
||||
private void addCompositeExponentialFunction() {
|
||||
Timber.i("Add composite exponential function");
|
||||
FillLayer layer = mapboxMap.getLayerAs(AMSTERDAM_PARKS_LAYER);
|
||||
assert layer != null;
|
||||
layer.setProperties(
|
||||
fillColor(
|
||||
composite(
|
||||
"stroke-width",
|
||||
exponential(
|
||||
stop(1, 1, fillColor(Color.RED)),
|
||||
stop(10, 2, fillColor(Color.BLUE)),
|
||||
stop(22, 3, fillColor(Color.GREEN)),
|
||||
stop(1, 1, fillColor(Color.CYAN)),
|
||||
stop(10, 2, fillColor(Color.GRAY)),
|
||||
stop(22, 3, fillColor(Color.YELLOW))
|
||||
).withBase(1f)
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
Timber.i("Fill color: %s", layer.getFillColor());
|
||||
}
|
||||
|
||||
private void addCompositeIntervalFunction() {
|
||||
Timber.i("Add composite exponential function");
|
||||
FillLayer layer = mapboxMap.getLayerAs(AMSTERDAM_PARKS_LAYER);
|
||||
assert layer != null;
|
||||
layer.setProperties(
|
||||
fillColor(
|
||||
composite(
|
||||
"stroke-width",
|
||||
interval(
|
||||
stop(1, 1, fillColor(Color.RED)),
|
||||
stop(10, 2, fillColor(Color.BLUE)),
|
||||
stop(22, 3, fillColor(Color.GREEN)),
|
||||
stop(1, 1, fillColor(Color.CYAN)),
|
||||
stop(10, 2, fillColor(Color.GRAY)),
|
||||
stop(22, 3, fillColor(Color.YELLOW))
|
||||
))
|
||||
)
|
||||
);
|
||||
|
||||
Timber.i("Fill color: %s", layer.getFillColor());
|
||||
}
|
||||
|
||||
private void addCompositeCategoricalFunction() {
|
||||
Timber.i("Add composite categorical function");
|
||||
FillLayer layer = mapboxMap.getLayerAs(AMSTERDAM_PARKS_LAYER);
|
||||
assert layer != null;
|
||||
layer.setProperties(
|
||||
fillColor(
|
||||
composite(
|
||||
"name",
|
||||
categorical(
|
||||
stop(7f, "Westerpark", fillColor(Color.RED)),
|
||||
stop(8f, "Westerpark", fillColor(Color.BLUE)),
|
||||
stop(9f, "Westerpark", fillColor(Color.RED)),
|
||||
stop(10f, "Westerpark", fillColor(Color.BLUE)),
|
||||
stop(11f, "Westerpark", fillColor(Color.RED)),
|
||||
stop(12f, "Westerpark", fillColor(Color.BLUE)),
|
||||
stop(13f, "Westerpark", fillColor(Color.RED)),
|
||||
stop(14f, "Westerpark", fillColor(Color.BLUE)),
|
||||
stop(15f, "Westerpark", fillColor(Color.RED)),
|
||||
stop(16f, "Westerpark", fillColor(Color.BLUE)),
|
||||
stop(17f, "Westerpark", fillColor(Color.RED)),
|
||||
stop(18f, "Westerpark", fillColor(Color.BLUE)),
|
||||
stop(19f, "Westerpark", fillColor(Color.RED)),
|
||||
stop(20f, "Westerpark", fillColor(Color.BLUE)),
|
||||
stop(21f, "Westerpark", fillColor(Color.RED)),
|
||||
stop(22f, "Westerpark", fillColor(Color.BLUE)),
|
||||
stop(14f, "Jordaan", fillColor(Color.GREEN)),
|
||||
stop(18f, "Jordaan", fillColor(Color.CYAN)),
|
||||
stop(14f, "Prinseneiland", fillColor(Color.WHITE)),
|
||||
stop(18f, "Prinseneiland", fillColor(Color.BLACK))
|
||||
))
|
||||
)
|
||||
);
|
||||
|
||||
Timber.i("Fill color: %s", layer.getFillColor());
|
||||
}
|
||||
|
||||
private void addParksLayer() {
|
||||
// Add a source
|
||||
Source source;
|
||||
try {
|
||||
source = new GeoJsonSource("amsterdam-parks-source", readRawResource(R.raw.amsterdam));
|
||||
mapboxMap.addSource(source);
|
||||
} catch (IOException ioException) {
|
||||
Toast.makeText(
|
||||
DataDrivenStyleActivity.this,
|
||||
"Couldn't add source: " + ioException.getMessage(),
|
||||
Toast.LENGTH_SHORT).show();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
// Add a fill layer
|
||||
mapboxMap.addLayer(new FillLayer(AMSTERDAM_PARKS_LAYER, source.getId())
|
||||
.withProperties(
|
||||
fillColor(Color.BLACK),
|
||||
fillOutlineColor(Color.BLUE),
|
||||
fillAntialias(true)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
private String readRawResource(@RawRes int rawResource) throws IOException {
|
||||
InputStream is = getResources().openRawResource(rawResource);
|
||||
Writer writer = new StringWriter();
|
||||
char[] buffer = new char[1024];
|
||||
try {
|
||||
Reader reader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
|
||||
int numRead;
|
||||
while ((numRead = reader.read(buffer)) != -1) {
|
||||
writer.write(buffer, 0, numRead);
|
||||
}
|
||||
} finally {
|
||||
is.close();
|
||||
}
|
||||
|
||||
return writer.toString();
|
||||
}
|
||||
}
|
||||
@@ -14,8 +14,10 @@ import com.mapbox.mapboxsdk.geometry.LatLng;
|
||||
import com.mapbox.mapboxsdk.maps.MapView;
|
||||
import com.mapbox.mapboxsdk.maps.MapboxMap;
|
||||
import com.mapbox.mapboxsdk.maps.OnMapReadyCallback;
|
||||
import com.mapbox.mapboxsdk.style.functions.Function;
|
||||
import com.mapbox.mapboxsdk.style.functions.stops.ExponentialStops;
|
||||
import com.mapbox.mapboxsdk.style.functions.stops.Stop;
|
||||
import com.mapbox.mapboxsdk.style.layers.FillLayer;
|
||||
import com.mapbox.mapboxsdk.style.layers.Function;
|
||||
import com.mapbox.mapboxsdk.style.layers.Layer;
|
||||
import com.mapbox.mapboxsdk.style.layers.LineLayer;
|
||||
import com.mapbox.mapboxsdk.style.layers.NoSuchLayerException;
|
||||
@@ -43,13 +45,13 @@ import java.util.List;
|
||||
|
||||
import timber.log.Timber;
|
||||
|
||||
import static com.mapbox.mapboxsdk.style.functions.Function.zoom;
|
||||
import static com.mapbox.mapboxsdk.style.functions.stops.Stop.stop;
|
||||
import static com.mapbox.mapboxsdk.style.functions.stops.Stops.exponential;
|
||||
import static com.mapbox.mapboxsdk.style.layers.Filter.all;
|
||||
import static com.mapbox.mapboxsdk.style.layers.Filter.eq;
|
||||
import static com.mapbox.mapboxsdk.style.layers.Filter.gte;
|
||||
import static com.mapbox.mapboxsdk.style.layers.Filter.lt;
|
||||
import static com.mapbox.mapboxsdk.style.layers.Function.Stop;
|
||||
import static com.mapbox.mapboxsdk.style.layers.Function.stop;
|
||||
import static com.mapbox.mapboxsdk.style.layers.Function.zoom;
|
||||
import static com.mapbox.mapboxsdk.style.layers.Property.FILL_TRANSLATE_ANCHOR_MAP;
|
||||
import static com.mapbox.mapboxsdk.style.layers.Property.NONE;
|
||||
import static com.mapbox.mapboxsdk.style.layers.Property.SYMBOL_PLACEMENT_POINT;
|
||||
@@ -412,23 +414,28 @@ public class RuntimeStyleActivity extends AppCompatActivity {
|
||||
}
|
||||
|
||||
// Set a zoom function to update the color of the water
|
||||
layer.setProperties(fillColor(zoom(0.8f,
|
||||
stop(1, fillColor(Color.GREEN)),
|
||||
stop(4, fillColor(Color.BLUE)),
|
||||
stop(12, fillColor(Color.RED)),
|
||||
stop(20, fillColor(Color.BLACK))
|
||||
)));
|
||||
layer.setProperties(fillColor(
|
||||
zoom(
|
||||
exponential(
|
||||
stop(1, fillColor(Color.GREEN)),
|
||||
stop(4, fillColor(Color.BLUE)),
|
||||
stop(12, fillColor(Color.RED)),
|
||||
stop(20, fillColor(Color.BLACK))
|
||||
).withBase(0.8f)
|
||||
)
|
||||
));
|
||||
|
||||
// do some animations to show it off properly
|
||||
mapboxMap.animateCamera(CameraUpdateFactory.zoomTo(1), 1500);
|
||||
|
||||
PropertyValue<String> fillColor = layer.getFillColor();
|
||||
Function<String> function = fillColor.getFunction();
|
||||
Function<Float, String> function = (Function<Float, String>) fillColor.getFunction();
|
||||
if (function != null) {
|
||||
Timber.d("Fill color base: " + function.getBase());
|
||||
Timber.d("Fill color #stops: " + function.getStops().length);
|
||||
ExponentialStops<Float, String> stops = (ExponentialStops) function.getStops();
|
||||
Timber.d("Fill color base: " + stops.getBase());
|
||||
Timber.d("Fill color #stops: " + stops.size());
|
||||
if (function.getStops() != null) {
|
||||
for (Stop stop : function.getStops()) {
|
||||
for (Stop<Float, String> stop : stops) {
|
||||
Timber.d("Fill color #stops: " + stop);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<com.mapbox.mapboxsdk.maps.MapView
|
||||
android:id="@id/mapView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"/>
|
||||
|
||||
</RelativeLayout>
|
||||
@@ -0,0 +1,50 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:mapbox="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<item
|
||||
android:id="@+id/action_add_exponential_zoom_function"
|
||||
android:title="Add an exponential zoom function"
|
||||
mapbox:showAsAction="never"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/action_add_interval_zoom_function"
|
||||
android:title="Add an interval zoom function"
|
||||
mapbox:showAsAction="never"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/action_add_categorical_source_function"
|
||||
android:title="Add a categorical source function"
|
||||
mapbox:showAsAction="never"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/action_add_exponential_source_function"
|
||||
android:title="Add an exponential source function"
|
||||
mapbox:showAsAction="never"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/action_add_identity_source_function"
|
||||
android:title="Add an identity source function"
|
||||
mapbox:showAsAction="never"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/action_add_interval_source_function"
|
||||
android:title="Add an interval source function"
|
||||
mapbox:showAsAction="never"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/action_add_composite_exponential_function"
|
||||
android:title="Add a composite, exponential function"
|
||||
mapbox:showAsAction="never"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/action_add_composite_categorical_function"
|
||||
android:title="Add a composite, categorical function"
|
||||
mapbox:showAsAction="never"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/action_add_composite_interval_function"
|
||||
android:title="Add a composite, interval function"
|
||||
mapbox:showAsAction="never"/>
|
||||
|
||||
</menu>
|
||||
@@ -256,7 +256,7 @@
|
||||
"stroke-width": 2,
|
||||
"stroke-opacity": 1,
|
||||
"fill": "#555555",
|
||||
"fill-opacity": 0.5,
|
||||
"fill-opacity": 1.0,
|
||||
"name": "Sarphatipark",
|
||||
"type": "park",
|
||||
"description": "Sarphatipark is a small park in the popular De Pijp neighbourhood. It was openend in late 19th century, and named after Samuel Sarphati."
|
||||
@@ -482,7 +482,7 @@
|
||||
"stroke-width": 2,
|
||||
"stroke-opacity": 1,
|
||||
"fill": "#555555",
|
||||
"fill-opacity": 0.5,
|
||||
"fill-opacity": 0.1,
|
||||
"name": "Sloterdijk",
|
||||
"type": "area",
|
||||
"description": "To protect the area around Sloten from the as-yet undrained IJ the Spaarndammerdijk was laid along the south bank of this inlet. In this vicinity at the same time, a dam on the Slochter (or Slooter) river was built, the Slooterdam. Trade grew in the vicinity, and in the 15th century a weigh house and a church were built. The area is nowadays best known as a large intersection of train lines and a business and industrial centre north-west of Amsterdam."
|
||||
@@ -574,7 +574,7 @@
|
||||
"stroke-width": 2,
|
||||
"stroke-opacity": 1,
|
||||
"fill": "#555555",
|
||||
"fill-opacity": 0.5,
|
||||
"fill-opacity": 0.7,
|
||||
"name": "Artis",
|
||||
"type": "poi",
|
||||
"description": "Artis, short for Natura Artis Magistra (Latin for \"Nature is the teacher of art and science\"), is a zoo in the centre of Amsterdam. It is the oldest zoo in the Netherlands and one of the oldest zoos of mainland Europe. Artis Royal Zoo is not just a zoo, it also contains an aquarium and a planetarium. Artis also has an arboretum and a fairly large art collection. A part of the art collection is on display in the Aquarium building of the zoo. Artis contains 27 monumental buildings, most of which are used as enclosures for the animals, making Artis a unique cultural heritage of the 19th century."
|
||||
|
||||
@@ -49,6 +49,7 @@
|
||||
<string name="activity_minmax_zoom">Min/Max Zoom</string>
|
||||
<string name="activity_viewpager">ViewPager</string>
|
||||
<string name="activity_runtime_style">Runtime Style</string>
|
||||
<string name="activity_data_driven_style">Data Driven Style</string>
|
||||
<string name="activity_circle_layer">Circle layer</string>
|
||||
<string name="activity_style_file">Local Style file</string>
|
||||
<string name="activity_geojson_clustering">GeoJson Clustering</string>
|
||||
@@ -100,6 +101,7 @@
|
||||
<string name="description_dynamic_info_window_adapter">Learn how to create a dynamic custom InfoWindow</string>
|
||||
<string name="description_viewpager">Use SupportMapFragments in a ViewPager</string>
|
||||
<string name="description_runtime_style">Adopt the map style on the fly</string>
|
||||
<string name="description_data_driven_style">Use functions to change the map appearance</string>
|
||||
<string name="description_symbol_layer">Manipulate symbols at runtime</string>
|
||||
<string name="description_custom_sprite">Use a custom sprite in a Symbol Layer</string>
|
||||
<string name="description_geojson_clustering">Use GeoJson sources and dynamic layers to cluster information</string>
|
||||
|
||||
Reference in New Issue
Block a user