diff --git a/README.md b/README.md index 3f8ff3a3..3ed9ef11 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ - [@nativescript/fingerprint-auth](packages/fingerprint-auth/README.md) - [@nativescript/geolocation](packages/geolocation/README.md) - [@nativescript/google-maps](packages/google-maps/README.md) +- [@nativescript/google-maps-utils](packages/google-maps-utils/README.md) - [@nativescript/google-signin](packages/google-signin/README.md) - [@nativescript/haptics](packages/haptics/README.md) - [@nativescript/imagepicker](packages/imagepicker/README.md) diff --git a/apps/demo-angular/package.json b/apps/demo-angular/package.json index f79a7b06..3e4ef095 100644 --- a/apps/demo-angular/package.json +++ b/apps/demo-angular/package.json @@ -2,6 +2,9 @@ "main": "./src/main.ts", "dependencies": { "@nativescript/core": "file:../../node_modules/@nativescript/core", + "@nativescript/google-maps": "file:../../dist/packages/google-maps", + "@nativescript/google-maps-utils": "file:../../dist/packages/google-maps-utils", + "@nativescript/jetpack-compose": "file:../../dist/packages/jetpack-compose", "@nativescript/animated-circle": "file:../../dist/packages/animated-circle", "@nativescript/appavailability": "file:../../dist/packages/appavailability", "@nativescript/apple-sign-in": "file:../../dist/packages/apple-sign-in", @@ -20,7 +23,6 @@ "@nativescript/facebook": "file:../../dist/packages/facebook", "@nativescript/fingerprint-auth": "file:../../dist/packages/fingerprint-auth", "@nativescript/geolocation": "file:../../dist/packages/geolocation", - "@nativescript/google-maps": "file:../../dist/packages/google-maps", "@nativescript/google-signin": "file:../../dist/packages/google-signin", "@nativescript/haptics": "file:../../dist/packages/haptics", "@nativescript/imagepicker": "file:../../dist/packages/imagepicker", diff --git a/apps/demo-angular/src/app-routing.module.ts b/apps/demo-angular/src/app-routing.module.ts index 002b52e3..75c83fa7 100644 --- a/apps/demo-angular/src/app-routing.module.ts +++ b/apps/demo-angular/src/app-routing.module.ts @@ -26,6 +26,7 @@ const routes: Routes = [ { path: 'fingerprint-auth', loadChildren: () => import('./plugin-demos/fingerprint-auth.module').then((m) => m.FingerprintAuthModule) }, { path: 'geolocation', loadChildren: () => import('./plugin-demos/geolocation.module').then((m) => m.GeolocationModule) }, { path: 'google-maps', loadChildren: () => import('./plugin-demos/google-maps.module').then((m) => m.GoogleMapsModule) }, + { path: 'google-maps-utils', loadChildren: () => import('./plugin-demos/google-maps-utils.module').then((m) => m.GoogleMapsUtilsModule) }, { path: 'google-signin', loadChildren: () => import('./plugin-demos/google-signin.module').then((m) => m.GoogleSigninModule) }, { path: 'haptics', loadChildren: () => import('./plugin-demos/haptics.module').then((m) => m.HapticsModule) }, { path: 'imagepicker', loadChildren: () => import('./plugin-demos/imagepicker.module').then((m) => m.ImagepickerModule) }, diff --git a/apps/demo-angular/src/home.component.ts b/apps/demo-angular/src/home.component.ts index 578d0a68..596d0d4b 100644 --- a/apps/demo-angular/src/home.component.ts +++ b/apps/demo-angular/src/home.component.ts @@ -63,6 +63,9 @@ export class HomeComponent { { name: 'google-maps', }, + { + name: 'google-maps-utils', + }, { name: 'google-signin', }, diff --git a/apps/demo-angular/src/plugin-demos/google-maps-utils.component.html b/apps/demo-angular/src/plugin-demos/google-maps-utils.component.html new file mode 100644 index 00000000..56634035 --- /dev/null +++ b/apps/demo-angular/src/plugin-demos/google-maps-utils.component.html @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/apps/demo-angular/src/plugin-demos/google-maps-utils.component.ts b/apps/demo-angular/src/plugin-demos/google-maps-utils.component.ts new file mode 100644 index 00000000..3ae88b2b --- /dev/null +++ b/apps/demo-angular/src/plugin-demos/google-maps-utils.component.ts @@ -0,0 +1,19 @@ +import { Component, NgZone } from '@angular/core'; +import { DemoSharedGoogleMapsUtils } from '@demo/shared'; +import { } from '@nativescript/google-maps-utils'; + +@Component({ + selector: 'demo-google-maps-utils', + templateUrl: 'google-maps-utils.component.html', +}) +export class GoogleMapsUtilsComponent { + + demoShared: DemoSharedGoogleMapsUtils; + + constructor(private _ngZone: NgZone) {} + + ngOnInit() { + this.demoShared = new DemoSharedGoogleMapsUtils(); + } + +} \ No newline at end of file diff --git a/apps/demo-angular/src/plugin-demos/google-maps-utils.module.ts b/apps/demo-angular/src/plugin-demos/google-maps-utils.module.ts new file mode 100644 index 00000000..1a219672 --- /dev/null +++ b/apps/demo-angular/src/plugin-demos/google-maps-utils.module.ts @@ -0,0 +1,10 @@ +import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core'; +import { NativeScriptCommonModule, NativeScriptRouterModule } from '@nativescript/angular'; +import { GoogleMapsUtilsComponent } from './google-maps-utils.component'; + +@NgModule({ + imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([{ path: '', component: GoogleMapsUtilsComponent }])], + declarations: [GoogleMapsUtilsComponent], + schemas: [ NO_ERRORS_SCHEMA] +}) +export class GoogleMapsUtilsModule {} diff --git a/apps/demo/package.json b/apps/demo/package.json index db61c8e7..e8cd4c9b 100644 --- a/apps/demo/package.json +++ b/apps/demo/package.json @@ -5,6 +5,9 @@ "repository": "", "dependencies": { "@nativescript/core": "file:../../node_modules/@nativescript/core", + "@nativescript/google-maps": "file:../../packages/google-maps", + "@nativescript/google-maps-utils": "file:../../packages/google-maps-utils", + "@nativescript/jetpack-compose": "file:../../packages/jetpack-compose", "@nativescript/animated-circle": "file:../../packages/animated-circle", "@nativescript/appavailability": "file:../../packages/appavailability", "@nativescript/apple-sign-in": "file:../../packages/apple-sign-in", @@ -23,7 +26,6 @@ "@nativescript/facebook": "file:../../packages/facebook", "@nativescript/fingerprint-auth": "file:../../packages/fingerprint-auth", "@nativescript/geolocation": "file:../../packages/geolocation", - "@nativescript/google-maps": "file:../../packages/google-maps", "@nativescript/google-signin": "file:../../packages/google-signin", "@nativescript/haptics": "file:../../packages/haptics", "@nativescript/imagepicker": "file:../../packages/imagepicker", diff --git a/apps/demo/src/main-page.xml b/apps/demo/src/main-page.xml index 3f2c4c7d..8d5d9938 100644 --- a/apps/demo/src/main-page.xml +++ b/apps/demo/src/main-page.xml @@ -24,6 +24,7 @@