JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript" src="http://google-maps-utility-library-v3.googlecode.com/svn/trunk/infobox/src/infobox.js"></script>
<script type="text/javascript">
function initialize() {
var secheltLoc = new google.maps.LatLng(49.47216, -123.76307);
var myMapOptions = {
zoom: 15
,center: secheltLoc
,mapTypeId: google.maps.MapTypeId.ROADMAP
};
var theMap = new google.maps.Map(document.getElementById("map_canvas"), myMapOptions);
var marker = new google.maps.Marker({
map: theMap,
optimized: false,
position: new google.maps.LatLng(49.47216, -123.76307),
zIndex: 3
});
for (i=0; i<20;i++){
var marker2 = new google.maps.Marker({
map: theMap,
optimized: false,
position: new google.maps.LatLng(49.472364,-123.760825),
zIndex: 1
});
}
var marker3 = new google.maps.Marker({
map: theMap,
optimized: false,
position: new google.maps.LatLng(49.471509,-123.76089),
zIndex: 1
});
var boxText = document.createElement("div");
boxText.style.cssText = "zindex: 2;border: 1px solid black; margin-top: 8px; background: white; padding: 5px;height: 100px";
boxText.innerHTML = '<div></div>';
var myOptions = {
content: boxText,
disableAutoPan: false,
maxWidth: 0,
pixelOffset: new google.maps.Size(-10, -60),
zIndex: 2,
boxStyle: {
background: "url('tipbox.gif') no-repeat",
opacity: 1,
width: "280px"
},
closeBoxMargin: "10px 2px 2px 2px",
...