Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Commit 02d7559

Browse files
author
Langston Smith
authored
Adding example of "revealed" polygon hole with outline (#1050)
* initial additions * fixes based on lukasz review
1 parent 4e484b0 commit 02d7559

File tree

8 files changed

+2004
-6
lines changed

8 files changed

+2004
-6
lines changed

MapboxAndroidDemo/src/global/java/com/mapbox/mapboxandroiddemo/MainActivity.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
import com.mapbox.mapboxandroiddemo.examples.dds.MultipleHeatmapStylingActivity;
5858
import com.mapbox.mapboxandroiddemo.examples.dds.PolygonHolesActivity;
5959
import com.mapbox.mapboxandroiddemo.examples.dds.PolygonSelectToggleActivity;
60+
import com.mapbox.mapboxandroiddemo.examples.dds.RevealedPolygonHoleOutlineActivity;
6061
import com.mapbox.mapboxandroiddemo.examples.dds.SatelliteLandSelectActivity;
6162
import com.mapbox.mapboxandroiddemo.examples.dds.StyleCirclesCategoricallyActivity;
6263
import com.mapbox.mapboxandroiddemo.examples.dds.StyleLineIdentityPropertyActivity;
@@ -1326,6 +1327,14 @@ private void initializeModels() {
13261327
null,
13271328
R.string.activity_dds_symbol_collision_detection_url, false, BuildConfig.MIN_SDK_VERSION));
13281329

1330+
exampleItemModels.add(new ExampleItemModel(
1331+
R.id.nav_dds,
1332+
R.string.activity_dds_polygon_revealed_hole_outline_title,
1333+
R.string.activity_dds_polygon_revealed_hole_outline_description,
1334+
new Intent(MainActivity.this, RevealedPolygonHoleOutlineActivity.class),
1335+
null,
1336+
R.string.activity_dds_polygon_revealed_hole_outline_url, false, BuildConfig.MIN_SDK_VERSION));
1337+
13291338
exampleItemModels.add(new ExampleItemModel(
13301339
R.id.nav_basics,
13311340
R.string.activity_basic_simple_mapview_title,

MapboxAndroidDemo/src/main/AndroidManifest.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,13 @@
8585
android:name="android.support.PARENT_ACTIVITY"
8686
android:value="com.mapbox.mapboxandroiddemo.MainActivity" />
8787
</activity>
88+
<activity
89+
android:name=".examples.dds.RevealedPolygonHoleOutlineActivity"
90+
android:label="@string/activity_dds_polygon_revealed_hole_outline_title">
91+
<meta-data
92+
android:name="android.support.PARENT_ACTIVITY"
93+
android:value="com.mapbox.mapboxandroiddemo.MainActivity" />
94+
</activity>
8895
<activity
8996
android:name=".examples.dds.DrawPolygonActivity"
9097
android:label="@string/activity_dds_polygon_title">

0 commit comments

Comments
 (0)