-2
Google api v2를 v3에 업그레이드하는 방법은 무엇입니까? 내 소스 코드를 v3으로 업그레이드하고 싶습니다.
Google 검색을 시도했지만 적절한 결과를 얻지 못했습니다.Google api v2를 v3에 업그레이드하는 방법은 무엇입니까?
var maprecent;
function init_maprecent() {
function createMarker(point, myHtml) {
var marker = new GMarker(point);
GEvent.addListener(marker, "click", function()
{ maprecent.openInfoWindowHtml(point, myHtml, {maxWidth:200}); }); return marker; }
var markerindex = 0; var markers = new Array();
function animate_marker() {
if(markerindex==markers.length) {markerindex=0;}
GEvent.trigger(markers[markerindex], "click"); markerindex++;
setTimeout(animate_marker, 5000);
}
var bottomLeft = new GControlPosition(G_ANCHOR_BOTTOM_LEFT);
maprecent = new GMap2(document.getElementById("smallmaprecent"));
maprecent.addControl(new GSmallZoomControl());
maprecent.addControl(new GMapTypeControl(), bottomLeft);
maprecent.setCenter(new GLatLng(11.25,-60.66667), 10);
var m0 = createMarker(new GLatLng(-32.3153071,115.8290544),
'Project on abcd.com<br>Oct 04 2010 03:41PM<br><a target="_parent" href="http://www.gurusocialscript.com/project_9_project-on-freelancerclonescriptcom.html">View project</a><br>2 ');
maprecent.addOverlay(m0);
markers.push(m0);
maprecent.addOverlay(new GPolygon([new GLatLng(-32.3153071,115.8290544),
new GLatLng(-32.3153071,115.8290544),
new GLatLng(-32.3153071,115.8290544),
new GLatLng(-32.3153071,115.8290544),
new GLatLng(-32.3153071,115.8290544)],
"#000000", 1, 0.5, "#444488", 0.1));</br></br></br>
animate_marker();
}
그런 다음 다른 변경 사항이 있습니까? – ahmed559
내가 말했듯이 API 문서와 코드를 검토해야합니다. 코드를 버전 2에서 버전 3으로 "업그레이드"하는 실제적이고 확실한 프로그래밍 방식의 방법은 없습니다. 당신은 스스로해야 할 것입니다. –