简体   繁体   English

Google使用Angular2在本机脚本中映射航点和方向

[英]Google maps Waypoints and Direction in nativescript with Angular2

Is it possible to render directions using waypoints like here - https://developers.google.com/maps/documentation/javascript/examples/directions-waypoints 是否可以使用此处的航点来呈现路线-https: //developers.google.com/maps/documentation/javascript/examples/directions-waypoints

Is there any plugin to do this or any pointers in this direction will be helpful. 是否有任何插件可以做到这一点,或者在这个方向上的任何指针都会有所帮助。

nativescript-google-maps-sdk doesn't support this I think and nativescript-directions just has directions from point a to b, does not support many points. 我认为nativescript-google-maps-sdk不支持此功能,nativescript-directions仅具有从点a到b的方向,不支持很多点。

in fact there is ANOTHER google-sdk plugin that does it, but I couldn't make it work 'cause it conflicts with Firebase plugin. 实际上,有一个其他的google-sdk插件可以执行此操作,但是我无法使其正常运行,因为它与Firebase插件冲突。 Also it seems it is not supported anymore, but if you're good with plugins, maybe you can wire some functions... 似乎也不再受支持,但是如果您对插件比较满意,也许可以连接一些功能...

https://github.com/mobilemindtec/nativescript-google-maps-sdk https://github.com/mobilemindtec/nativescript-google-maps-sdk

If you manage to make it work, please let me know how! 如果您设法使其正常工作,请告诉我!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM