17.1.3 • Published 1 year ago

@sbb-amsgis/google-maps v17.1.3

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

GoogleMaps

This library enables the integration between GoogleMapsApi and an esri based web app.

Content

GoogleMapsWidgetComponent

  • Shows google map and streetview with a given extent (esri Extent)
  • Two visualization modes: 'sideBySide' or 'streetViewCentered'
  • Shows features using esri geometries

GoogleMapsConvertionService

  • Helper service to convert between projections (2056 - 4326)

Usage

  1. Add library dependency to package.json.
npm i --save @sbb-amsgis/google-maps
  1. Import required modules (if not already added) into app.module
BrowserAnimationsModule (or NoopAnimationsModule), HttpClientModule, HttpClientJsonpModule
@NgModule({
  declarations: [AppComponent],
  imports: [
    ...
    HttpClientModule,
    HttpClientJsonpModule,
    BrowserAnimationsModule,
    ...
  ],
  
  bootstrap: [AppComponent],
})
  1. Import GoogleMapsWidgetModule
@NgModule({
  declarations: [AppComponent],
  imports: [
    ...
    GoogleMapsWidgetModule.forRoot({
      apiKey: -- GOOGLE_API_KEY --,
      geometryServiceUrl: --ESRI_GEOMETRY_SERVICE_URL--,
      streetViewRadius: 200,
    }),
    ...
  ],
  
  bootstrap: [AppComponent],
})
17.1.3

1 year ago

17.1.2

1 year ago

17.1.1

1 year ago

17.1.0

1 year ago

17.0.5

1 year ago

17.0.4

1 year ago

17.0.3

1 year ago

17.0.2

1 year ago

17.0.1

1 year ago