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

Commit f133644

Browse files
author
Langston Smith
authored
Adding spinning SymbolLayer icons example (#1177)
* adding spinning symbollayer icon example * initial tweaks post Lukasz review
1 parent 5fb897b commit f133644

File tree

9 files changed

+431
-0
lines changed

9 files changed

+431
-0
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
@@ -91,6 +91,7 @@
9191
import com.mapbox.mapboxandroiddemo.examples.labs.RecyclerViewOnMapActivity;
9292
import com.mapbox.mapboxandroiddemo.examples.labs.SnakingDirectionsRouteActivity;
9393
import com.mapbox.mapboxandroiddemo.examples.labs.SpaceStationLocationActivity;
94+
import com.mapbox.mapboxandroiddemo.examples.labs.SpinningSymbolLayerIconActivity;
9495
import com.mapbox.mapboxandroiddemo.examples.labs.SymbolLayerMapillaryActivity;
9596
import com.mapbox.mapboxandroiddemo.examples.labs.ValueAnimatorIconAnimationActivity;
9697
import com.mapbox.mapboxandroiddemo.examples.location.KotlinLocationComponentActivity;
@@ -1223,6 +1224,14 @@ private void initializeModels() {
12231224
null,
12241225
R.string.activity_lab_rv_directions_url, true, BuildConfig.MIN_SDK_VERSION));
12251226

1227+
exampleItemModels.add(new ExampleItemModel(
1228+
R.id.nav_lab,
1229+
R.string.activity_lab_spinning_icon_title,
1230+
R.string.activity_lab_spinning_icon_description,
1231+
new Intent(MainActivity.this, SpinningSymbolLayerIconActivity.class),
1232+
null,
1233+
R.string.activity_lab_spinning_icon_url, true, BuildConfig.MIN_SDK_VERSION));
1234+
12261235
exampleItemModels.add(new ExampleItemModel(
12271236
R.id.nav_dds,
12281237
R.string.activity_dds_geojson_line_title,

MapboxAndroidDemo/src/main/AndroidManifest.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -891,6 +891,14 @@
891891
android:name="android.support.PARENT_ACTIVITY"
892892
android:value="com.mapbox.mapboxandroiddemo.MainActivity" />
893893
</activity>
894+
<activity
895+
android:name=".examples.labs.SpinningSymbolLayerIconActivity"
896+
android:label="@string/activity_lab_spinning_icon_title"
897+
android:screenOrientation="portrait">
898+
<meta-data
899+
android:name="android.support.PARENT_ACTIVITY"
900+
android:value="com.mapbox.mapboxandroiddemo.MainActivity" />
901+
</activity>
894902
<activity
895903
android:name=".examples.javaservices.TurfRingActivity"
896904
android:label="@string/activity_java_services_turf_ring_title"
Lines changed: 221 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,221 @@
1+
{
2+
"features": [
3+
{
4+
"type": "Feature",
5+
"properties": {},
6+
"geometry": {
7+
"coordinates": [
8+
-79.458677,
9+
26.081122
10+
],
11+
"type": "Point"
12+
},
13+
"id": "00ae001d23cd9a7bf94227b1c33ffff7"
14+
},
15+
{
16+
"type": "Feature",
17+
"properties": {},
18+
"geometry": {
19+
"coordinates": [
20+
-80.264893,
21+
28.232943
22+
],
23+
"type": "Point"
24+
},
25+
"id": "02712d52e7c93299cb82a7b4ae20ce73"
26+
},
27+
{
28+
"type": "Feature",
29+
"properties": {},
30+
"geometry": {
31+
"coordinates": [
32+
-78.767635,
33+
25.250652
34+
],
35+
"type": "Point"
36+
},
37+
"id": "0bd0d1d12b38cc545f61093a7b37cffb"
38+
},
39+
{
40+
"type": "Feature",
41+
"properties": {},
42+
"geometry": {
43+
"coordinates": [
44+
-76.636922,
45+
24.309547
46+
],
47+
"type": "Point"
48+
},
49+
"id": "0cc073e5e7bddfaaaa846d85a18a3986"
50+
},
51+
{
52+
"type": "Feature",
53+
"properties": {},
54+
"geometry": {
55+
"coordinates": [
56+
-74.448621,
57+
37.683707
58+
],
59+
"type": "Point"
60+
},
61+
"id": "21f2290de83af459360fc41631ec2add"
62+
},
63+
{
64+
"type": "Feature",
65+
"properties": {},
66+
"geometry": {
67+
"coordinates": [
68+
-75.600358,
69+
35.135133
70+
],
71+
"type": "Point"
72+
},
73+
"id": "26f631f6757c44b09dc35987f83997d8"
74+
},
75+
{
76+
"type": "Feature",
77+
"properties": {},
78+
"geometry": {
79+
"coordinates": [
80+
-66.444049,
81+
22.937809
82+
],
83+
"type": "Point"
84+
},
85+
"id": "380b204bcb8364453bfc072aba6f3dc3"
86+
},
87+
{
88+
"type": "Feature",
89+
"properties": {},
90+
"geometry": {
91+
"coordinates": [
92+
-79.746612,
93+
30.788498
94+
],
95+
"type": "Point"
96+
},
97+
"id": "3cc29cca1d9745142e13a9f7a7d83798"
98+
},
99+
{
100+
"type": "Feature",
101+
"properties": {},
102+
"geometry": {
103+
"coordinates": [
104+
-60.282256,
105+
22.884765
106+
],
107+
"type": "Point"
108+
},
109+
"id": "41f80af5bbb9471f5c12b9f7a13ccb6d"
110+
},
111+
{
112+
"type": "Feature",
113+
"properties": {},
114+
"geometry": {
115+
"coordinates": [
116+
-69.956847,
117+
23.149776
118+
],
119+
"type": "Point"
120+
},
121+
"id": "4698d27f4ff81f36616cfc8341bded3f"
122+
},
123+
{
124+
"type": "Feature",
125+
"properties": {},
126+
"geometry": {
127+
"coordinates": [
128+
-71.857213,
129+
23.889008
130+
],
131+
"type": "Point"
132+
},
133+
"id": "474b1f68016365d239d2e81e7522d5da"
134+
},
135+
{
136+
"type": "Feature",
137+
"properties": {},
138+
"geometry": {
139+
"coordinates": [
140+
-74.275861,
141+
24.046872
142+
],
143+
"type": "Point"
144+
},
145+
"id": "6460d376455ea61d3e14aa3723f0189c"
146+
},
147+
{
148+
"type": "Feature",
149+
"properties": {},
150+
"geometry": {
151+
"coordinates": [
152+
-71.972387,
153+
38.948764
154+
],
155+
"type": "Point"
156+
},
157+
"id": "64981bc2d553afd848d1390ff690b424"
158+
},
159+
{
160+
"type": "Feature",
161+
"properties": {},
162+
"geometry": {
163+
"coordinates": [
164+
-80.610414,
165+
29.39343
166+
],
167+
"type": "Point"
168+
},
169+
"id": "6eba45cc794303907f60ed01e06a9d31"
170+
},
171+
{
172+
"type": "Feature",
173+
"properties": {},
174+
"geometry": {
175+
"coordinates": [
176+
-79.170743,
177+
31.870653
178+
],
179+
"type": "Point"
180+
},
181+
"id": "6ed6a415cdac32146a438dfb65bffa34"
182+
},
183+
{
184+
"type": "Feature",
185+
"properties": {},
186+
"geometry": {
187+
"coordinates": [
188+
-53.890115,
189+
23.096816
190+
],
191+
"type": "Point"
192+
},
193+
"id": "d96a72323806fbd0444231b977c63f22"
194+
},
195+
{
196+
"type": "Feature",
197+
"properties": {},
198+
"geometry": {
199+
"coordinates": [
200+
-80.034546,
201+
27.110968
202+
],
203+
"type": "Point"
204+
},
205+
"id": "deb0e2edad00a818f950fa752f6be159"
206+
},
207+
{
208+
"type": "Feature",
209+
"properties": {},
210+
"geometry": {
211+
"coordinates": [
212+
-76.752095,
213+
33.229747
214+
],
215+
"type": "Point"
216+
},
217+
"id": "fa164eea952a81776cad210d41119525"
218+
}
219+
],
220+
"type": "FeatureCollection"
221+
}

0 commit comments

Comments
 (0)