Using the Google Maps Javascript API v3, How do I produce the default infoboxes on click? -


यह है जो मैंने अभी तक किया है।

  function init_map () {var places = [{नाम: "प्लेस 1", कॉओर्स: नया google.maps.LatLng (30.728752, -73.995525)}, {नाम: "प्लेस 2", कॉओर्स: नया google.maps.LatLng (30.733673, -73.990028)}, { नाम: "प्लेस 3", कॉओर्स: नया google.maps.LatLng (40.725778, -73.992249)}] var myOptions = {ज़ूमः 14, केंद्र: स्थानों [0]। कोड्स, मैप टाइप इंप: google.maps.MapTypeId.ROADMAP, } Var नक्शा = नया google.maps.Map (document.getElementById ("map_canvas"), myOptions); (Var x = 0; x & lt; places.length; x ++) के लिए {var स्थान = स्थानों [x]; Var मार्कर = नया google.maps.Marker ({position: place.coords, title: place.name, icon: icon, clickable: true, infowindow: new google.maps.InfoWindow ({content: "hello world"}}} ); marker.setMap (नक्शा); Google.maps.event.addListener (मार्कर, 'क्लिक', फ़ंक्शन () {marker.infowindow.open (मानचित्र, मार्कर); console.log (मार्कर);}); }};  

मुझे अपनी डिफ़ॉल्ट विंडो के बजाय Google मानचित्र पर एक एड्रेस की खोज करते समय आप जिस डिफ़ॉल्ट इन्फ्यूंडो को देखना चाहते हैं यह कैसे संभव है?

इसका डिफ़ॉल्ट Google कंटेंट से आपका क्या मतलब है?

इसके अलावा यह आपके लिए सिर्फ 1 इन्फिनोइंडो ऑब्जेक्ट बनाने और फिर इसे अपने मार्करों में साझा करने के लिए बेहतर हो सकता है।


Comments

Popular posts from this blog

google indexing -

wpf - Custom Message Box Advice -

Eclipse CDT variable colors in editor -