How do I show a marker in Maps launched by geo URI Intent?

后端 未结 7 1648
离开以前
离开以前 2020-11-28 02:47

I have a application where I want to show different locations (one at the time, picked by user input) by launching Google Maps with their specific geo coordinates.

I

7条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-28 03:18

    Try appending (LocationMarkerName) to the geo: uri. For example, "geo:,?z=17(LocationMarkerName)"

    In Google Maps on Android searching for 23.0980,30.6797 (NamedMarker), it seems to centre the map and position a marker with name NamedMarker at that position.

提交回复
热议问题