1

mapstraction.removeMarker没有移除地图上的标记

它不会抛出任何异常。bt 它没有在地图上被删除。

`mapstraction.removeMarker(markers[j]);

//I will get all markers from mapstraction map, then i want to remove all
    removeAllMarkers(mapstraction.markers);
//some of them are not removed

    function removeAllMarkers(markers){
        for(var j=0; j<markers.length; j++){
            try{
                mapstraction.removeMarker(markers[j]);
            }catch(err){
            }
        }
}
4

0 回答 0