Google maps angular2谷歌地图与angular2应用程序

Google maps angular2谷歌地图与angular2应用程序,google-maps,angular,typescript,angular2-google-maps,Google Maps,Angular,Typescript,Angular2 Google Maps,我已经设置了angular2应用程序 这是app.module.ts import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { AppComponent } from './app.component'; import { AgmCoreModule} from 'angular2-google-maps/core'; @N

我已经设置了angular2应用程序

这是app.module.ts

import { NgModule }      from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent }  from './app.component';
import { AgmCoreModule} from 'angular2-google-maps/core';
@NgModule({
  imports:      [ BrowserModule, AgmCoreModule.forRoot({apiKey: 'AIzaSyAe3ci9yavJcWt7MaJE8DusAuZo-QeRqkU'}) ],
  declarations: [ AppComponent ],
  bootstrap:    [ AppComponent ],
})
export class AppModule { }
我用命令安装了angular2谷歌地图

npm install angular2-google-maps --save
已成功安装。当我使用npm start运行应用程序时, 这是一个错误的说法

加载失败 资源:服务器响应状态为404(未找到)

但是我可以在node_模块中看到angular2 google maps文件夹。
有什么问题吗?

您忘记在
system.config.js

'angular2-google-maps/core': 'npm:angular2-google-maps/core/core.umd.js'

通过将上述内容添加到systemjs配置中。当您尝试使用webpack/System.js作为模块加载器导入
angular2谷歌地图/core

时,模块加载器将理解加载
core.umd.js
?在安装npm时,它是否抛出任何警告或异常,现在至少可以尝试npm安装,然后缓存清理,然后reinstall@RahulSingh不,它不显示任何力量error@PankajParkar不,我正在使用具有system.jsp的快速启动项目。您是否尝试过这种方法?现在错误消失了,它显示加载资源失败:服务器响应状态为404(未找到)检查css文件已存在于该路径上我也已修复,现在地图显示空灰色区域,知道吗?不确定,请点击