Skip to content

Commit 6227cb8

Browse files
committed
test: demo app update
1 parent b452da4 commit 6227cb8

File tree

9 files changed

+15
-24
lines changed

9 files changed

+15
-24
lines changed
File renamed without changes.

demo/app/main-page.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export function onMapReady(args) {
8484
// map.setOnScrollListener((point?: LatLng) => console.log(`Map scrolled: ${JSON.stringify(point)}`));
8585

8686
// this allows json style loading for XYZ or TMS tiles source
87-
// map.setMapStyle("~/OSM-map-style.json");
87+
map.setMapStyle("~/assets/OSM-map-style.json");
8888

8989
// .. or use the convenience methods exposed on args.map, for instance:
9090

@@ -97,7 +97,7 @@ export function onMapReady(args) {
9797
lng: 4.889168,
9898
title: 'One-line title here', // no popup unless set
9999
subtitle: 'Really really nice location',
100-
iconPath: 'res/markers/green_pin_marker.png',
100+
iconPath: '~/assets/markers/green_pin_marker.png',
101101
onTap: () => {
102102
console.log("main-page 'Nice location' marker tapped");
103103
},
@@ -201,13 +201,13 @@ export function onMapReady(args) {
201201
map.removePolylines([10]);
202202
}, 24000);
203203

204-
// this works just fine, but it interferes with the programmatic map so not doing this in the demo
205-
// setTimeout(() => {
206-
// map.trackUser({
207-
// mode: "FOLLOW_WITH_HEADING",
208-
// animated: true
209-
// });
210-
// }, 25000);
204+
this works just fine, but it interferes with the programmatic map so not doing this in the demo
205+
setTimeout(() => {
206+
map.trackUser({
207+
mode: "FOLLOW_WITH_HEADING",
208+
animated: true
209+
});
210+
}, 25000);
211211
}
212212

213213
// END

demo/app/main-page.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@
162162
<TabViewItem.view>
163163
<ScrollView>
164164
<StackLayout class="tab-content">
165-
<Image margin="10" src="~/res/telerik-logo.png" />
165+
<Image margin="10" src="~/assets/telerik-logo.png" />
166166
<Label text="Mapbox plugin demo" class="title"/>
167167
<Label text="Awesome platform independent OpenGL powered maps by Mapbox. Make sure you provide your own (free) ACCESS_TOKEN in main-view-model.ts or unexpected things will happen." textWrap="true"/>
168168
</StackLayout>

demo/app/main-view-model.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export class HelloWorldModel extends Observable {
7474
lng: 4.894168,
7575
title: 'Nice location',
7676
subtitle: 'Really really nice location',
77-
iconPath: 'res/markers/green_pin_marker.png',
77+
iconPath: '~/assets/markers/green_pin_marker.png',
7878
onTap: () => console.log("'Nice location' marker tapped"),
7979
onCalloutTap: () => console.log("'Nice location' marker callout tapped"),
8080
},
@@ -242,7 +242,7 @@ export class HelloWorldModel extends Observable {
242242
lng: 4.789168,
243243
title: 'One-line title here 3', // no popup unless set
244244
subtitle: 'And a one-liner here as well.',
245-
iconPath: 'res/markers/home_marker.png',
245+
iconPath: '~/assets/markers/home_marker.png',
246246
selected: true,
247247
onTap,
248248
onCalloutTap,

plugin/platforms/android/buildscript.gradle

Lines changed: 0 additions & 12 deletions
This file was deleted.

plugin/platforms/android/include.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ dependencies {
1010
def mapboxPluginsVersion = project.hasProperty("mapboxPluginsVersion") ? project.mapboxPluginsVersion : "v9"
1111
def mapboxAnnotationPluginVersion = project.hasProperty("mapboxAnnotationPluginVersion") ? project.mapboxAnnotationPluginVersion : "0.8.0"
1212
def mapboxGesturesVersion = project.hasProperty("mapboxGesturesVersion") ? project.mapboxGesturesVersion : "0.7.0"
13+
def fbSoLoaderVersion = project.hasProperty("fbSoLoaderVersion") ? project.fbSoLoaderVersion : "0.9.0"
1314

1415
compile "com.mapbox.mapboxsdk:mapbox-android-telemetry:$mapboxTelemetryVersion"
1516

@@ -28,6 +29,8 @@ dependencies {
2829
// Annotation Plugin
2930

3031
implementation "com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-$mapboxPluginsVersion:$mapboxAnnotationPluginVersion"
32+
33+
implementation "com.facebook.soloader:soloader:$fbSoLoaderVersion"
3134

3235
}
3336

0 commit comments

Comments
 (0)