Android - Google Maps Extensions - IllegalArgumentException

前端 未结 2 676
自闭症患者
自闭症患者 2021-01-14 03:22

I\'m getting an IllegalArgumentException when I call this createMarker() method:

private void createMarker(GoogleMap map, MarkerOptions options, OnMarkerCrea         


        
2条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-14 04:08

    Caused by: java.lang.IllegalArgumentException: no position in marker options
    

    Apparently, your MarkerOptions does not have a position. Please call position() to supply the position in which to place the marker.

提交回复
热议问题