ng2-ui / map

Angular Google Maps Directives
https://ng2-ui.github.io/map
260 stars 98 forks source link

Angular 6: Cannot read property 'constructor' of undefined #265

Closed shyamal890 closed 6 years ago

shyamal890 commented 6 years ago

Steps to reproduce and a minimal demo

Error:

Uncaught TypeError: Cannot read property 'constructor' of undefined
    at OptionBuilder.push../node_modules/@ngui/map/dist/@ngui/map.es5.js.OptionBuilder.getLatLng (map.es5.js:276)
    at OptionBuilder.push../node_modules/@ngui/map/dist/@ngui/map.es5.js.OptionBuilder.googlize (map.es5.js:253)
    at map.es5.js:190
    at Array.forEach (<anonymous>)
    at OptionBuilder.push../node_modules/@ngui/map/dist/@ngui/map.es5.js.OptionBuilder.googlizeAllInputs (map.es5.js:188)
    at Marker.push../node_modules/@ngui/map/dist/@ngui/map.es5.js.BaseMapDirective.initialize (map.es5.js:121)
    at Marker.push../node_modules/@ngui/map/dist/@ngui/map.es5.js.Marker.initialize (map.es5.js:1706)
    at map.es5.js:1699
    at SafeSubscriber.schedulerFn [as _next] (core.js:3733)
    at SafeSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.__tryOrUnsub (Subscriber.js:253)
shyamal890 commented 6 years ago

@allenhwkim can you please have a look at this.

aitboudad commented 6 years ago

here is a working example https://stackblitz.com/edit/ng6-map-starter, if you can provide a reproduction example I can take care of it. Thanks!