1
Google지도 정보 창을 만들고 싶습니다. 일부 이벤트가 발생하면 infowindow를 편집 할 수 있어야합니다.google map api v3, infowindow editable ~
정보창 편집 가능한 구글지도에 대한 질문과 응답이,
How do I make the info window editable in the Google Maps API?
을하지만,이 편집 정보창하는 방법 2.
어떤 생각 버전에 대해 무엇입니까?
에 refrence가 ~ 이 내 addMarket 기능
this.addMarker = function(location) {
var iconImg = 'signpost.png';
var marker = new google.maps.Marker({
position: location,
map: this.mMap,
icon: iconImg,
});
var infowindow = new google.maps.InfoWindow(
{
maxWidth: '50px',
content: "some text"
});
google.maps.event.addListener(marker, 'click', function() {
infowindow.open(this.mMap, marker);
});
infowindow.open(this.mMap, marker);
this.mMarkerArray.push(marker);
}