Jquery UI가있는지도에서 오버레이를 만들려면이 코드를 작성했습니다.jQuery UI 맵에서 오버레이를 지우는 방법은 무엇입니까?
function drawTratta()
{
$.getJSON('json/getTratta.php?mode=set', function(data) {
var flightPlanCoordinates = [];
$.each(data.coord, function(i, item)
{
flightPlanCoordinates.push(new google.maps.LatLng(item.latitudine,item.longitudine));
});
$('#map_canvas').gmap('addShape', 'Polyline',
{ 'path': flightPlanCoordinates,
'strokeColor': "#FF0000",
'strokeOpacity': 0.5,
'strokeWeight': 3,
'fillColor': "#FF0000",
'fillOpacity': 0.35 });
});
}
글쎄,이 함수는 줄을 올바르게 그리지 만지도에서 줄을 지우는 방법을 모른다. 함수를 다시 호출하면 이전 행을 취소하지 않고 다른 행을 그립니다.
$('#map_canvas').gmap('clearMarkers');
폴리 라인 오버레이를 취소 할 수있는 유사한 기능이 있습니까 : JQuery와 UI지도에서
당신은을 사용하여이 기능을 표시를 취소 할 수 있습니까?
제발 도와주세요!
미리 감사드립니다. JQuery와 - UI 맵 플러그인을 사용
는
가능한 [Google지도 폴리 라인 - 어떻게 제거하나요?] (http://stackoverflow.com/questions/4565260/google-maps-polyline-how-do-i-remove-it) –