I have to display a custom panel above the maps to show details on click of origin and destination marker.
Asked
Active
Viewed 173 times
0
-
1please elaborate with images – Shlok Nangia Apr 16 '20 at 09:26
-
Hello Welcome to Stack overflow , Please take [tour](https://stackoverflow.com/tour) to see what and How to Ask. Do some research, search for related topics on SO; if you get stuck, post a [minimal reproducile](https://stackoverflow.com/help/minimal-reproducible-example) example of your attempt, input and expected output. – Abhishek Apr 16 '20 at 09:49
-
you must be getting some events on click of origin and destination, use those events and a flag with *ngIf to show this custom component – Shlok Nangia Apr 16 '20 at 10:40
-
Can u provide an example for those events ? @ShlokNangia – shri2312 Apr 16 '20 at 11:17
-
depends on what map are you using, whatever it is check its documentation it must be emiting some event on click/selection – Shlok Nangia Apr 16 '20 at 12:20
-
here are 2 maps library you can use in angular https://www.npmjs.com/package/ng-worldmap and https://ej2.syncfusion.com/angular/documentation/maps/getting-started/ – Shlok Nangia Apr 16 '20 at 12:22
-
@ShlokNangia I am using this lib https://www.npmjs.com/package/agm-direction – shri2312 Apr 17 '20 at 05:49
-
check ...d.ts file in your node modules under this library, you will see supported functions with comments what they do, please try to find it there – Shlok Nangia Apr 17 '20 at 06:04