Add marker in google maps with Flutter

倖福魔咒の 提交于 2019-12-23 21:50:06

问题


I have managed to create a google map in my flutter app and I am able to show my location and also markers using latitude and longitude. Does anyone know how to create a marker for a business which already exist in google map? What should I pass to the marker to identify a business which is already in google map??? Thanks


回答1:


You can use a Place Search or Autocomplete service to find an existing business, and then pass the lat/lng coordinates you get from the results, in geometry.location, to a marker's position so that the marker is placed on that business' location, as demonstrated in those linked examples.

Hope this helps!



来源:https://stackoverflow.com/questions/58047640/add-marker-in-google-maps-with-flutter

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!