How to use the @asymmetrik/ngx-leaflet.LeafletModule.forRoot function in @asymmetrik/ngx-leaflet

To help you get started, we’ve selected a few @asymmetrik/ngx-leaflet examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github v2g-demo / v2g-demo / src / app / app.module.ts View on Github external
GameSelectorComponent,
    AboutComponent,
    LefleatMapComponent,
    InfoPanelComponent,
    GameComponent,
    SidebarComponent,
    HeaderComponent,
  ],
  entryComponents: [],
  imports: [
    BrowserModule,
    IonicModule.forRoot(),
    AppRoutingModule,
    HttpClientModule,
    NgxHalClientModule.forRoot(),
    LeafletModule.forRoot(),
    AngularFireModule.initializeApp(environment.firebase),
    AngularFireAuthModule,
    FirebaseUIModule.forRoot(firebaseUiAuthConfig),
    // AgmCoreModule.forRoot({
    //   apiKey: environment.googleMapsApiKey
    // }),
    // AgmSnazzyInfoWindowModule

  ],
  providers: [
    StatusBar,
    SplashScreen,
    GameDataService,
    AuthGuardService,
    ObjectService,
    { provide: RouteReuseStrategy, useClass: IonicRouteStrategy },
github trasukg / local-aprs / src / app / app.module.ts View on Github external
'aprsSituation': fromAprsSituation.reducer,
        'hostConfig': fromHostConfig.reducer
      },
      {
        runtimeChecks: {
          strictStateImmutability: true,
          strictActionImmutability: true
        }
      }
    ),
    EffectsModule.forFeature([AprsSituationEffects, HostConfigEffects]),
    StoreModule.forFeature(fromAprsSituation.aprsSituationFeatureKey, fromAprsSituation.reducer),
    StoreModule.forFeature(fromHostConfig.hostConfigFeatureKey, fromHostConfig.reducer),
    EffectsModule.forRoot([AppEffects]),
    StoreDevtoolsModule.instrument({ maxAge: 25, logOnly: environment.production }),
    LeafletModule.forRoot()
  ],
  providers: [
    AprsSituationService,
    HostService,
    [Location, {provide: LocationStrategy, useClass: HashLocationStrategy}]
  ],
  bootstrap: [AppComponent]
})
export class AppModule {
  constructor(private store: Store) {
    console.log("Constructor for AppModule was called.");
    console.log("Dispatching enableHostConnection")
    this.store.dispatch(AprsSituationActions.enableHostConnection());
  }
github akveo / ngx-admin / src / app / pages / maps / maps.module.ts View on Github external
import { AgmCoreModule } from '@agm/core';
import { LeafletModule } from '@asymmetrik/ngx-leaflet';
import { NgxEchartsModule } from 'ngx-echarts';
import { NbCardModule } from '@nebular/theme';

import { ThemeModule } from '../../@theme/theme.module';
import { MapsRoutingModule, routedComponents } from './maps-routing.module';

@NgModule({
  imports: [
    ThemeModule,
    AgmCoreModule.forRoot({
      apiKey: 'AIzaSyCpVhQiwAllg1RAFaxMWSpQruuGARy0Y1k',
      libraries: ['places'],
    }),
    LeafletModule.forRoot(),
    MapsRoutingModule,
    NgxEchartsModule,
    NbCardModule,
  ],
  exports: [],
  declarations: [
    ...routedComponents,
  ],
})
export class MapsModule { }
github spderosso / deja-vu / packages / catalog / geolocation / src / app / geolocation / geolocation.metadata.ts View on Github external
ConfigWizardComponent
];

const metadata = {
  imports: [
    BrowserModule,
    CommonModule,
    DvModule,
    ReactiveFormsModule,
    BrowserAnimationsModule,
    MatButtonModule,
    MatIconModule,
    MatInputModule,
    MatFormFieldModule,
    FormsModule,
    LeafletModule.forRoot(),
    AgmCoreModule.forRoot({
      apiKey: GOOGLE_MAPS_API_KEY
    })
  ],
  declarations: allComponents,
  exports: allComponents,
  entryComponents: allComponents
};

export { metadata };
github screwgoth / live-location-tracker / web-app / live-location-tracker / src / app / app.module.ts View on Github external
AppComponent,
    HeaderComponent,
    FooterComponent,
    RegisterComponent,
    LoginComponent,
    DashboardComponent,
    PagenotfoundComponent
  ],
  imports: [
    BrowserModule,
    AppRoutingModule,
    FormsModule,
    ReactiveFormsModule,
    HttpClientModule,
    AlertModule.forRoot(),
    LeafletModule.forRoot()
  ],
  providers: [RegisterService, MapService, AuthService, AuthGuard],
  bootstrap: [AppComponent]
})
export class AppModule { }
github ralscha / blog / dynamicpos / client / src / app / app.module.ts View on Github external
import {CommonModule} from '@angular/common';
import {HttpClientModule} from '@angular/common/http';
import {LeafletModule} from '@asymmetrik/ngx-leaflet';

const routes: Routes = [
  {path: '', redirectTo: 'home', pathMatch: 'full'},
  {path: 'home', component: HomePage},
];

@NgModule({
  declarations: [AppComponent, HomePage],
  entryComponents: [],
  imports: [BrowserModule,
    CommonModule,
    HttpClientModule,
    LeafletModule.forRoot(),
    IonicModule.forRoot(),
    RouterModule.forRoot(routes, {useHash: true})],
  providers: [
    {provide: RouteReuseStrategy, useClass: IonicRouteStrategy}
  ],
  bootstrap: [AppComponent]
})
export class AppModule {
}
github autowp / autowp / ng2 / src / app / app.module.ts View on Github external
useFactory: HttpLoaderFactory,
        deps: [HttpClient]
      },*/
      compiler: {
        provide: TranslateCompiler,
        useClass: TranslateMessageFormatCompiler
      }
    }),
    MomentModule,
    NgPipesModule,
    FileUploadModule,
    ChartsModule,
    RecaptchaModule.forRoot(),
    RecaptchaFormsModule,
    BrowserAnimationsModule,
    LeafletModule.forRoot()
  ],
  providers: [
    APIService,
    APIACL,
    AuthService,
    AuthGuard,
    ACLService,
    PictureService,
    ItemService,
    InboxService,
    ReCaptchaService,
    DonateService,
    ItemParentService,
    ArticleService,
    ItemLinkService,
    ItemLanguageService,

@asymmetrik/ngx-leaflet

Angular.io components for Leaflet

MIT
Latest version published 6 months ago

Package Health Score

73 / 100
Full package analysis

Popular @asymmetrik/ngx-leaflet functions

Similar packages