Adding custom marker text to Google Map

后端 未结 3 374
时光说笑
时光说笑 2021-01-07 21:08

I\'m creating a new website for new law office.

I followed Google API for embedding maps. I added their address, but would like to add the name of the firm to the ma

3条回答
  •  Happy的楠姐
    2021-01-07 21:35

    When you add the marker to the map you can put a title to the marker.

    Use this code to do it:

    map.addMarker(new MarkerOptions().title("Office Name"));
    

提交回复
热议问题