how to get all markers on google-maps-v3

前端 未结 6 2086
南方客
南方客 2020-12-05 01:51

Is there a way to get all the markers on Google Maps?

6条回答
  •  盖世英雄少女心
    2020-12-05 02:15

    If you are using JQuery Google map plug-in then below code will work for you -

    var markers = $('#map_canvas').gmap('get','markers');

提交回复
热议问题