I use Angular 2 and i need to work with Google Map. I need to initialize a map, create some arrays with route coordinates, add a Custom HTML Marker, add some event listerers, draw a polyline, etc. All of these a can make with just native JS on the web page. In my work i need to use Angular2. How can i init a map object inside the component and manipulate it within a component like with an object ?
There is a angular2-google-maps library, but it's have limited functionality. For example i can't create a polyline with angular2-google-maps, i can't integrate some of libraries, for example Custom HTML Marker, cSnapToRoute, etc.