Angular-google-maps: AOT 컴파일이 μž‘λ™ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€.

에 λ§Œλ“  2016λ…„ 09μ›” 08일  Β·  31μ½”λ©˜νŠΈ  Β·  좜처: SebastianM/angular-google-maps

문제 μ„€λͺ…
angular2-google-mapsλŠ” AOT μ»΄νŒŒμΌμ—μ„œ μž‘λ™ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€.

μž¬ν˜„ 단계 및 문제의 μ΅œμ†Œ 데λͺ¨

1 단계. angular2-seed ν”„λ‘œμ νŠΈ 볡제 (
단계 2. angular2-google-maps νŒ¨ν‚€μ§€λ₯Ό μ„€μΉ˜ν•©λ‹ˆλ‹€.
3 단계. SYSTEM_CONFIG_DEV 및 SYSTEM_BUILDER_CONFIG

tools/config/project.config.ts

export class ProjectConfig extends SeedConfig {
    ...
    // angular2 google maps SYSTEM_CONFIG_DEV
    this.SYSTEM_CONFIG_DEV.paths['angular2-google-maps/core'] = `node_modules/angular2-google-maps/core/index.js`;
    this.SYSTEM_CONFIG_DEV.packages['angular2-google-maps/core'] = {  main: 'index.js', defaultExtension: 'js' };

    // angular2 google maps SYSTEM_BUILDER_CONFIG
    this.SYSTEM_BUILDER_CONFIG.paths['angular2-google-maps/core'] = `node_modules/angular2-google-maps/core/index.js`;
    this.SYSTEM_BUILDER_CONFIG.packages['angular2-google-maps/core'] = {  main: 'index.js', defaultExtension: 'js' };
}

4 단계. μ‚¬μ΄νŠΈμ— μ½”λ“œ μž‘μ„± μ‹œμž‘ν•˜κΈ°
5 단계. npm start (잘 μž‘λ™ 함)
6 단계. npm run serve.prod (잘 μž‘λ™ν–ˆμŠ΅λ‹ˆλ‹€).
6 단계. npm run build.prod.exp ( 였λ₯˜ λ°œμƒ .이 λΉŒλ“œμ—λŠ” AOT 컴파일이 μžˆμŠ΅λ‹ˆλ‹€.)

ν˜„μž¬ 행동

AOT 컴파일이 μž‘λ™ν•˜μ§€ μ•Šμ•˜μŠ΅λ‹ˆλ‹€. (compile.ahead.prod)

...
[17:41:20] Starting 'build.prod.exp'...
[17:41:20] Starting 'clean.prod'...
[17:41:21] Deleted dist/prod
[17:41:21] Deleted dist/tmp
[17:41:21] Finished 'clean.prod' after 1.37 s
[17:41:21] Starting 'tslint'...
[17:41:26] Finished 'tslint' after 5.02 s
[17:41:26] Starting 'css-lint'...
[17:41:31] Finished 'css-lint' after 4.59 s
[17:41:31] Starting 'build.assets.prod'...
[17:41:31] Finished 'build.assets.prod' after 100 ms
[17:41:31] Starting 'build.html_css'...
[17:41:32] Finished 'build.html_css' after 1.25 s
[17:41:32] Starting 'copy.prod'...
[17:41:32] Finished 'copy.prod' after 54 ms
[17:41:32] Starting 'compile.ahead.prod'...
Error: Error encountered resolving symbol values statically. Function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symbol AppModule in /home/ody12/workspace-mine/angular2-seed/dist/tmp/app/app.module.ts, resolving symbol AppModule in /home/ody12/workspace-mine/angular2-seed/dist/tmp/app/app.module.ts
    at simplifyInContext (/Users/iminar/Dev/angular/modules/@angular/compiler-cli/src/static_reflector.ts:540:15)
    at StaticReflector.simplify (/Users/iminar/Dev/angular/modules/@angular/compiler-cli/src/static_reflector.ts:544:18)
    at StaticReflector.annotations (/Users/iminar/Dev/angular/modules/@angular/compiler-cli/src/static_reflector.ts:92:28)
    at _loop_1 (/Users/iminar/Dev/angular/modules/@angular/compiler-cli/src/codegen.ts:63:48)
    at CodeGenerator.readFileMetadata (/Users/iminar/Dev/angular/modules/@angular/compiler-cli/src/codegen.ts:57:22)
    at /Users/iminar/Dev/angular/modules/@angular/compiler-cli/src/codegen.ts:105:56
    at Array.map (native)
    at CodeGenerator.codegen (/Users/iminar/Dev/angular/modules/@angular/compiler-cli/src/codegen.ts:105:33)
    at codegen (/home/ody12/workspace-mine/angular2-seed/tools/tasks/seed/compile.ahead.prod.ts:14:69)
    at Object.main (/home/ody12/workspace-mine/tools/@angular/tsc-wrapped/src/main.ts:44:12)
Compilation failed
...

μ˜ˆμƒ / μ›ν•˜λŠ” 행동
μž˜ν–ˆμœΌλ©΄ μ’‹κ² μ–΄μš”. λ„μ™€μ£Όμ„Έμš”.

angular2 및 angular2-google-maps 버전

angular2 : RC6
angular2-google-maps : "0.14.0",

기타 정보

읽어 μ£Όμ…”μ„œ κ°μ‚¬ν•©λ‹ˆλ‹€

urgent bug

κ°€μž₯ μœ μš©ν•œ λŒ“κΈ€

@basvdijk μ£„μ†‘ν•©λ‹ˆλ‹€. ν˜„μž¬ AOTλ₯Ό 지원할 수 μžˆλ„λ‘ λΉŒλ“œ 절차λ₯Ό λ‹€μ‹œ μž‘μ„±ν•˜κ³  μžˆμŠ΅λ‹ˆλ‹€. λ‹€μŒ λ‚  μ—…λ°μ΄νŠΈλ₯Ό κΈ°λŒ€ν•˜μ‹­μ‹œμ˜€.

λͺ¨λ“  31 λŒ“κΈ€

@DoyeonOhTravel μ–΄λ–»κ²Œ app.module.ts μ½”λ“œλ₯Ό 곡유 ν•  수 μžˆμŠ΅λ‹ˆκΉŒ? 감사!

λ‚˜λŠ” λ˜‘κ°™μ€ κ²ƒμ„λ³΄κ³ μžˆλ‹€- ngc -생성 된 .metadata.json 파일과 κ΄€λ ¨μ΄μžˆμ„ μˆ˜μžˆλ‹€. https://github.com/angular/angular/issues/11262 μ°Έμ‘°

@SebastianM μ‹€μ œλ‘œ Angular νŒ€μ€ 라이브러리 곡급 업체가 .metadata.json νŒŒμΌλ„ μ œκ³΅ν•΄μ•Όν•œλ‹€κ³  μ œμ•ˆν•©λ‹ˆλ‹€. μ΄λŸ¬ν•œ νŒŒμΌμ€ ngc에 μ˜ν•΄ μžλ™μœΌλ‘œ μƒμ„±λ©λ‹ˆλ‹€.

μ•„λž˜ λŒ“κΈ€μ΄ 유용 ν•  수 μžˆμŠ΅λ‹ˆλ‹€.

https://github.com/angular/angular/issues/11262#issuecomment -244449696

https://github.com/angular/angular/issues/11262#issuecomment -244472000

https://github.com/angular/angular/issues/11262#issuecomment -244489405

μ™„μ „ν•œ λŒ€ν™” (https://github.com/angular/angular/issues/11262)

@SebastianM 이것은 λ‚΄ app.module.ts μ½”λ“œμž…λ‹ˆλ‹€. λ‹΅μž₯ κ°μ‚¬ν•©λ‹ˆλ‹€!.

import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { APP_BASE_HREF } from '@angular/common';
import { RouterModule } from '@angular/router';
import { HttpModule } from '@angular/http';
import { AppComponent } from './app.component';
import { routes } from './app.routes';

import { AboutModule } from './about/about.module';
import { HomeModule } from './home/home.module';
import { SharedModule } from './shared/shared.module';
import { AgmCoreModule } from 'angular2-google-maps/core/index.js';
import { provideLazyMapsAPILoaderConfig } from 'angular2-google-maps/core';

@NgModule({
  imports: [
    BrowserModule,
    HttpModule,
    RouterModule.forRoot(routes),
    AboutModule,
    HomeModule,
    SharedModule.forRoot(),
    AgmCoreModule.forRoot()
  ],
  declarations: [AppComponent],
  providers: [
    {
      provide: APP_BASE_HREF,
      useValue: '<%= APP_BASE %>'
    },
    provideLazyMapsAPILoaderConfig({
      apiKey: 'key',
      clientId: ''
    })
  ],
  bootstrap: [AppComponent]

})

export class AppModule { }

@ rh389 @ naveedahmed1 당신이 λ§ν–ˆλ“―μ΄, metadata.json ν•©λ‹ˆλ‹€. 감사!.

@SebastianM 그리고이 λΆ„κΈ° λŠ” googleMap을 μ‚¬μš©ν•œ μƒ˜ν”Œ μ½”λ“œμž…λ‹ˆλ‹€.

νŠΈμœ— λ‹΄μ•„ κ°€κΈ° @doyeonOhTravelHow @doyeonOh @ naveedahmed1 κ°μ‚¬ν•©λ‹ˆλ‹€! 였늘 저녁에 ν™•μΈν•˜κ² μŠ΅λ‹ˆλ‹€.

이 μˆ˜μ •μ˜ μƒνƒœλŠ” ν™•μ‹€ν•˜μ§€ μ•Šμ§€λ§Œ ng2-translateμ—μ„œ λ™μΌν•œ 문제λ₯Ό ν™•μΈν•˜λŠ” 것도 쒋을 수 μžˆμŠ΅λ‹ˆλ‹€.

μ—¬κΈ°μ—μ„œλŠ” 일반적으둜이 문제λ₯Ό ν•΄κ²°ν•˜λŠ” 방법을 μ„€λͺ…ν•˜λŠ” λΈ”λ‘œκ·Έ κ²Œμ‹œλ¬Ό κ³Ό 이λ₯Ό ν•΄κ²°ν•˜λŠ” 라이브러리의 예제 μ €μž₯μ†Œμ— λŒ€ν•œ 링크λ₯Ό κ°•μ‘°ν•©λ‹ˆλ‹€.

λ§μ”€ν•˜μ‹  λΈ”λ‘œκ·Έ κ²Œμ‹œλ¬Όμ„ μž‘μ„±ν–ˆμŠ΅λ‹ˆλ‹€. 당신이 μ’‹μ•„ν•΄μ„œ λ‹€ν–‰μž…λ‹ˆλ‹€. λ‚˜λŠ” 당신이 κ²ͺκ³ μžˆλŠ” 였λ₯˜κ°€ metadata.json 파일과 직접 관련이 μ—†λ‹€κ³  μƒκ°ν•˜μ§€λ§Œ 그것듀도 ν•„μš”ν•©λ‹ˆλ‹€. λ‚΄ 생각 μ—” μ½”λ“œ μ–΄λ”˜κ°€μ— export const blah = () => something 을 export function blah() { return something; } 둜 λ³€κ²½ν•΄μ•Όν•©λ‹ˆλ‹€.

일뢀 였λ₯˜ ( Function calls are not supported 였λ₯˜ 포함)에 λŒ€ν•œ ν•΄κ²° 방법을 μ„€λͺ… ν•˜λŠ”

AoT 지원 +1
μ–΄μ œ angular2-google-mapsλ₯Ό Ionic2 RC0κ³Ό ν†΅ν•©ν•˜κΈ° μœ„ν•΄ κ³ κ΅°λΆ„νˆ¬ν–ˆμŠ΅λ‹ˆλ‹€.

κ°μ‚¬ν•©λ‹ˆλ‹€!

@modularcoder μ‹€μ œλ‘œ μž‘λ™ν•˜κ²Œ λ˜μ—ˆμŠ΅λ‹ˆκΉŒ? μœ„μ˜ 두 κ²Œμ‹œλ¬Όμ—μ„œ μ œμ•ˆν•œλŒ€λ‘œ λžŒλ‹€λ₯Ό 곡μž₯ νŒ¨ν„΄ ν•¨μˆ˜ 및 λ‚΄λ³΄λ‚΄κΈ°λ‘œ λ³€κ²½ν•˜λ €κ³  μ‹œλ„ν–ˆμ§€λ§Œ μ—¬μ „νžˆ μ‹€νŒ¨ν–ˆμŠ΅λ‹ˆλ‹€.

@lazarljubenovic 은 개발 ν™˜κ²½ 용 λΉŒλ“œμ—μ„œ

여기에 단계λ₯Ό μ„€λͺ…ν–ˆμŠ΅λ‹ˆλ‹€.
https://forum.ionicframework.com/t/angular2-google-maps-in-ionic-2/65736

개발 λΉŒλ“œ 쀑에 AoT μ»΄νŒŒμΌμ„ μˆ˜ν–‰ν•˜μ§€ μ•ŠλŠ” μ΅œμ‹  λ²„μ „μ˜ @ ionic / app-scriptsκ°€ μ„€μΉ˜λ˜μ–΄ μžˆλŠ”μ§€ ν™•μΈν•˜μ‹­μ‹œμ˜€.
https://github.com/driftyco/ionic-app-scripts

@modularcoder Android 용 앱을 λΉŒλ“œν•΄μ•Ό ν•  λ•Œν•΄μ•Ό ν•  일, 였λ₯˜κ°€ μžˆμŠ΅λ‹ˆλ‹€ ... 이에 λŒ€ν•œ 해결책을 μ°Ύμ•˜μŠ΅λ‹ˆκΉŒ? 이 μ‹œμ μ—μ„œ μš°λ¦¬λŠ” 앱에 Ionic 2λ₯Ό μ‚¬μš©ν•΄μ„œλŠ” μ•ˆλ©λ‹ˆλ‹€.

@allurco 예, package.json에 μž‘μ—…μ„ λΉŒλ“œ ν•˜κΈ°

예제 μ €μž₯μ†Œλ₯Ό λ§Œλ“€μ—ˆμŠ΅λ‹ˆλ‹€.
https://github.com/modularcoder/ionic2-angular2-google-maps-example/blob/master/README.md

μžμ„Έν•œ λ‚΄μš©μ€ Readmeλ₯Ό μ°Έμ‘°ν•˜μ‹­μ‹œμ˜€.

μΆ”μ‹  : μ΅œμ‹  λ²„μ „μ˜ @ ionic / app-scripts νŒ¨ν‚€μ§€κ°€ μ„€μΉ˜λ˜μ–΄ μžˆλŠ”μ§€ ν™•μΈν•˜μ‹­μ‹œμ˜€.

@SebastianM 이 버그가 μˆ˜μ • 될 μˆ˜μžˆλŠ”μ‹œκΈ°μ— λŒ€ν•œ μ—…λ°μ΄νŠΈκ°€ μžˆμŠ΅λ‹ˆκΉŒ? 감사!

@basvdijk μ£„μ†‘ν•©λ‹ˆλ‹€. ν˜„μž¬ AOTλ₯Ό 지원할 수 μžˆλ„λ‘ λΉŒλ“œ 절차λ₯Ό λ‹€μ‹œ μž‘μ„±ν•˜κ³  μžˆμŠ΅λ‹ˆλ‹€. λ‹€μŒ λ‚  μ—…λ°μ΄νŠΈλ₯Ό κΈ°λŒ€ν•˜μ‹­μ‹œμ˜€.

@SebastianM μ’‹μ•„μš”! κ·€ν•˜μ˜ λ…Έλ ₯에 κ°μ‚¬λ“œλ¦½λ‹ˆλ‹€ πŸ‘

이것이 고쳐 μ Έμ„œ λ°˜κ°‘μŠ΅λ‹ˆλ‹€! 이 μ—…λ°μ΄νŠΈλ₯Ό μ–Έμ œ μΆœμ‹œν• μ§€μ— λŒ€ν•œ 생각이 μžˆμœΌμ‹­λ‹ˆκΉŒ?

κ³ μ •λ˜μ–΄ μžˆμŠ΅λ‹ˆκΉŒ? AoT와 ν•¨κ»˜ angular2-google-mapsλ₯Ό μ‚¬μš©ν•˜λ©΄ "μ •μ μœΌλ‘œ 기호 값을 ν•΄κ²°ν•˜λŠ” λ™μ•ˆ 였λ₯˜κ°€ λ°œμƒν–ˆμŠ΅λ‹ˆλ‹€. ν•¨μˆ˜ 호좜이 μ§€μ›λ˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€. ν•¨μˆ˜ λ˜λŠ” λžŒλ‹€λ₯Ό λ‚΄ 보낸 ν•¨μˆ˜μ— λŒ€ν•œ 참쑰둜 λ°”κΎΈκ³  기호λ₯Ό ν•΄κ²°ν•˜λŠ” 것이 μ’‹μŠ΅λ‹ˆλ‹€."λΌλŠ” 였λ₯˜κ°€ λ°œμƒν•©λ‹ˆλ‹€.

버그가 μˆ˜μ •λ˜μ—ˆκ³  λ¬Έμ œκ°€ 0.16 λ§ˆμΌμŠ€ν†€μ— μΆ”κ°€λ˜μ—ˆλ‹€κ³  μƒκ°ν•©λ‹ˆλ‹€.

@ naveedahmed1 0.16.0 의 λ§ˆμΌμŠ€ν†€μ€ 55 %μž…λ‹ˆλ‹€. https://github.com/SebastianM/angular2-google-maps/milestone/12 μ°Έμ‘°

λ‚˜μΌ μˆ˜λ„ μžˆμ§€λ§Œ GitHub μ €μž₯μ†Œμ—μ„œ 라이브러리λ₯Ό μ„€μΉ˜ν–ˆλŠ”λ° 2 개의 였λ₯˜κ°€ 더 μžˆμŠ΅λ‹ˆλ‹€.
Consider replacing the function or lambda with a reference to an exported function, resolving symbol LAZY_MAPS_API_CONFIG in /Users/william/Ionic/mapOnDevice1/node_modules/angular2-google-maps/src/core/services/maps-api-loader/lazy-maps-api-loader.ts, resolving symbol AgmCoreModule in /Users/william/Ionic/mapOnDevice1/node_modules/angular2-google-maps/src/core/core-module.ts,

λ‹€λ₯Έ μ‚¬λžŒ ?

μ•žμ„œ μ–ΈκΈ‰ν–ˆλ“―μ΄ @ tchinou1 AoT 지원이 포함 된 0.16.0의 λ§ˆμΌμŠ€ν†€μ€ 55 %μž…λ‹ˆλ‹€. https://github.com/SebastianM/angular2-google-maps/milestone/12 μ°Έμ‘° μ΅œμ‹  릴리슀 버전이 아직 AoTλ₯Ό μ§€μ›ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€.

@basvdijk npm install git+https://[email protected]/SebastianM/angular2-google-maps.git μ‹€ν–‰ν•˜λ©΄ μˆ˜μ • 된 버전이 μ„€μΉ˜λ˜μ§€ μ•ŠμŠ΅λ‹ˆκΉŒ?

μ‹€μ œλ‘œ 그럴 μˆ˜μžˆλŠ” @staticint . μ•„λ§ˆλ„ @SebastianM 은 AoT 지원을 톡해 μ΅œμ‹  git 버전을 μ„€μΉ˜ν•˜λŠ” 방법을 μ„€λͺ… ν•  수 μžˆμŠ΅λ‹ˆλ‹€.

νŽΈμ§‘ : μ£„μ†‘ν•©λ‹ˆλ‹€, μ œκ°€ ν‹€ λ ΈμŠ΅λ‹ˆλ‹€-npm μ„€μΉ˜κ°€ 이미 λΉŒλ“œλ˜μ–΄ μžˆμ–΄μ•Όν•©λ‹ˆλ‹€.

npm으둜 리포지토리λ₯Ό 직접 κ°€μ Έ 였면 λΉŒλ“œ 된 μžμ‚°μ΄ μ•„λ‹Œ μ†ŒμŠ€ 만 얻을 수 μžˆμŠ΅λ‹ˆλ‹€.

μ΄λ‘ μ μœΌλ‘œλŠ”μ΄ μ €μž₯μ†Œλ₯Ό 볡제 ν•˜κ³  λ‘œμ»¬μ—μ„œ npm 링크 λ₯Ό ν•  수 μžˆμ§€λ§Œ μ΄λŠ” μ•„λ§ˆλ„ 둜컬 κ°œλ°œμ—λ§Œ μ‹€μš©μ  일 κ²ƒμž…λ‹ˆλ‹€. λ˜λŠ” λΉŒλ“œμ˜ tarball을 μ–΄λ”˜κ°€μ— μ—…λ‘œλ“œ ν•˜κ³  npm으둜 κ°€μ Έμ˜¬ 수 μžˆμŠ΅λ‹ˆλ‹€.

아무도 GitHub μ €μž₯μ†Œμ—μ„œ μ„€μΉ˜ν•˜λŠ” 방법을 μ•Œκ³  μžˆμŠ΅λ‹ˆκΉŒ?

감사

@ tchinou1 그것은 npm λ¬Έμ„œμ— μžˆμŠ΅λ‹ˆλ‹€.

질문. 방금 λ§ˆμŠ€ν„° 브랜치λ₯Ό 포크, 볡제, λΉŒλ“œ 및 npm λ§ν¬ν–ˆμœΌλ©° κΈ°μ‘΄ ν”„λ‘œμ νŠΈμ—μ„œ Uncaught Error: Can't resolve all parameters for LazyMapsAPILoader: (?, WindowRef, DocumentRef). μ–»μŠ΅λ‹ˆλ‹€. λ‚΄ λͺ¨λ“ˆμ˜ imports λ‹€μŒ μ½”λ“œλ₯Ό μ‚¬μš©ν•˜μ—¬ μ§€μ—°λ‘œλ“œ 된 λͺ¨λ“ˆμ—μ„œμ΄ 라이브러리λ₯Ό κ°€μ Έμ˜΅λ‹ˆλ‹€.

AgmCoreModule.forRoot({
    apiKey: 'xxx',
}),

검은 색 μƒˆ ν”„λ‘œμ νŠΈλ₯Ό λ§Œλ“€κ³  상황을 μ΅œμ†Œν•œμœΌλ‘œ μž¬ν˜„ν•˜λ €κ³  μ‹œλ„ν–ˆμ§€λ§Œ λ‹€λ₯Έ μ €μž₯μ†Œμ—μ„œ μž‘λ™ν•˜λ―€λ‘œ μ–΄λ””μ„œλΆ€ν„° μ‹œμž‘ν•΄μ•Όν• μ§€ λͺ¨λ₯΄κ² μŠ΅λ‹ˆλ‹€. forRoot λ©”μ„œλ“œλ₯Ό 톡해 전달 된 객체λ₯Όλ°›μ§€ λͺ»ν•˜λŠ” 것과 κ°™μŠ΅λ‹ˆλ‹€.

λˆ„κ΅¬λ“ μ§€ λΉ„μŠ·ν•œ μƒν™©μ΄λ‚˜μ΄ 였λ₯˜ λ©”μ‹œμ§€κ°€ μžˆμ—ˆμŠ΅λ‹ˆκΉŒ? μ½”λ“œκ°€μ—†κ³  μž¬ν˜„ ν•  μˆ˜μ—†λŠ” 였λ₯˜κ°€μ—†λŠ” λ‘±μƒ·μ΄λΌλŠ” 것을 μ•Œκ³  μžˆμ§€λ§Œ μ•„μ΄λ””μ–΄μ—μ„œ λ²—μ–΄λ‚˜κ³  μžˆμŠ΅λ‹ˆλ‹€.

AOTκ°€ μž‘λ™ν•˜λ„λ‘ 각도 Google지도λ₯Ό μ–΄λ–»κ²Œ μ—…λ°μ΄νŠΈ ν•  수 μžˆμŠ΅λ‹ˆκΉŒ? ν˜„μž¬ AOT 버전을 μ‚¬μš©ν•  수 μžˆμŠ΅λ‹ˆκΉŒ?

AOTκ°€ μž‘λ™ν•˜λ„λ‘ν•˜λ €λ©΄ package.json νŒŒμΌμ— "angular2-google-maps": "^0.16.0", 을 μΆ”κ°€ν•˜μ„Έμš”.

그런 λ‹€μŒ μ•± ꡬ성 μš”μ†Œμ—μ„œ λͺ¨λ“ˆμ„ κ°€μ Έμ˜΅λ‹ˆλ‹€.

import { AgmCoreModule } from 'angular2-google-maps/core';

κ°€μ Έ μ˜€κΈ°μ— μΆ”κ°€ν•˜μ‹­μ‹œμ˜€ (xxxxλ₯Ό API ν‚€λ‘œ λŒ€μ²΄ν•˜μ‹­μ‹œμ˜€)

NgModule({
  declarations: [],
  imports: [
    AgmCoreModule.forRoot({
      apiKey: 'xxxxxxxxxxxxxxxxxxxxx'
    })
  ],

이제 ν…œν”Œλ¦Ώμ—μ„œ λ‹€μŒκ³Ό 같은 ꡬ성 μš”μ†Œλ₯Ό μ‚¬μš©ν•  수 μžˆμŠ΅λ‹ˆλ‹€.

        <sebm-google-map disableDefaultUI="true" [zoom]="zoom" [latitude]="location.latitude" [longitude]="location.longitude">

            <sebm-google-map-marker [latitude]="location.latitude" [longitude]="location.longitude"></sebm-google-map-marker>

        </sebm-google-map> 

0.17.0 λ§ˆμΌμŠ€ν†€μ„ μ‚¬μš©ν•˜κ³  있으며 μ•„λž˜ 였λ₯˜κ°€ 계속 λ°œμƒν•©λ‹ˆλ‹€.
" 'google'이름을 찾을 수 μ—†μŠ΅λ‹ˆλ‹€.
" 'google'λ„€μž„ 슀페이슀λ₯Ό 찾을 수 μ—†μŠ΅λ‹ˆλ‹€.

이 였λ₯˜λŠ” 이미 μˆ˜μ • λ˜μ—ˆμŠ΅λ‹ˆκΉŒ?

이 νŽ˜μ΄μ§€κ°€ 도움이 λ˜μ—ˆλ‚˜μš”?
0 / 5 - 0 λ“±κΈ‰