dapriett / nativescript-google-maps-sdk

Cross Platform Google Maps SDK for Nativescript
MIT License
244 stars 164 forks source link

Custom infoWindowTemplate with Angular2 #224

Open dimitriospafos opened 7 years ago

dimitriospafos commented 7 years ago

I'm trying to use the infoWindowTemplate with Angular2, but I can't see any example or documentation for it. My question is how can I define a template for a custom marker's window using Angular2 and nativescript?

Any help would be appreciated.

ochemerys commented 7 years ago

It would be beneficial for this SDK to have example of custom ifoWindowTemplate implementatation for Angular under ng-demo. Thanks a lot.

kilka commented 7 years ago

Is there anyone that can provide an example on how to implement the custom info windows for Angular2? It seems there was a pull request to fix some issues with the Angular implementation so I assume it is already possible but we just need an example. https://github.com/dapriett/nativescript-google-maps-sdk/pull/183

harsh-raval commented 7 years ago

how can i use infoWindowTemplate in native script with angular 2 . Did anyone successfully implement infoWindowTemplate with angular 2?

milansar commented 7 years ago

Here is work around for Angular without example, it seems there is no way to directly set templates in Angular template (.html), for our purpose we directly created template in component code (.ts) and assigned it to MapView

const templates = `