Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta name="viewport" content="initial-scale=1.0, user-scalable=no"&gt; &lt;meta charset="utf-8"&gt; &lt;title&gt;Simple Polylines&lt;/title&gt; &lt;style&gt; #map-canvas, #map_canvas { height: 800px; } .infobox-wrapper { display:none; } .infobox, .infoBox { margin-top: 8px; background:#FFF; color:#666; font-family:Arial, Helvetica, sans-serif; font-size:12px; padding: .5em 1em; -webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px; -webkit-box-shadow: 0 0 8px #000; box-shadow: 0 0 8px #000; } .labels { color: #FFF; font-family: "Arial", sans-serif; text-align: center; width: 26px; white-space: nowrap; letter-spacing: 0; } &lt;/style&gt; &lt;script src="http://maps.googleapis.com/maps/api/js?v=3.exp&amp;sensor=false"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="http://google-maps-utility-library-v3.googlecode.com/svn/trunk/infobox/src/infobox.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="http://google-maps-utility-library-v3.googlecode.com/svn/tags/markerwithlabel/1.1.5/src/markerwithlabel_packed.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"&gt;&lt;/script&gt; &lt;script&gt; // Enable the visual refresh google.maps.visualRefresh = true; var obstacles = [ ['The Start', -2.2128868103027344 ,52.58448934362705, 1, '&lt;h2&gt;The Start&lt;/h2&gt;', 1], ['Chatway Chase', -2.2232937812805176,52.585369365082556, 1, '&lt;h2&gt;Chatway Chase&lt;/h2&gt;', 2], ['Elephant Fence', -2.2287386655807495,52.585874554601546, 1, '&lt;h2&gt;Elephant Fence&lt;/h2&gt;', 3], ['Elephant Fence', -2.2254180908203125,52.586862101811484, 1, '&lt;h2&gt;Elephant Fence&lt;/h2&gt;', 4], ['Elephant Fence', -2.2167277336120605,52.58403954805975, 1, '&lt;h2&gt;Elephant Fence&lt;/h2&gt;', 5], ['Elephant Fence', -2.216741144657135,52.58465231189634, 1, '&lt;h2&gt;Elephant Fence&lt;/h2&gt;', 6], ['Rabbit Hill', -2.220606207847595,52.58593322139412, 1, '&lt;h2&gt;Rabbit Hill&lt;/h2&gt;', 7], ['Brasher Disley Steplechase', -2.2237443923950195,52.58636018290797, 1, '&lt;h2&gt;Brasher Disley Steplechase&lt;/h2&gt;', 8], ['Bracken Maze Torture', -2.228196859359741,52.58881105708316, 1, '&lt;h2&gt;Bracken Maze Torture&lt;/h2&gt;', 9], ['The Slalom', -2.233647108078003,52.590078809218845, 1, '&lt;h2&gt;The Slalom&lt;/h2&gt;', 10], ['Jungle Trench Battlefileds', -2.2293394804000854,52.5877551121424, 1, '&lt;h2&gt;Jungle Trench Battlefileds&lt;/h2&gt;', 11], ['Gurkha Grand National', -2.23097562789917,52.58586803606421, 1, '&lt;h2&gt;Gurkha Grand National&lt;/h2&gt;', 12], ['Jungle Water Slalom', -2.2270596027374268,52.58515425035844, 1, '&lt;h2&gt;Jungle Water Slalom&lt;/h2&gt;', 13], ['Technospanner Legover', -2.2247743606567383,52.58636670137212, 1, '&lt;h2&gt;Technospanner Legover&lt;/h2&gt;', 14] ]; function initialize() { var myLatLng = new google.maps.LatLng(52.58448934362705, -2.2128868103027344); var mapOptions = { zoom: 19, center: myLatLng, mapTypeId: google.maps.MapTypeId.SATELLITE }; var map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions); var infobox = new InfoBox({ map: map, disableAutoPan: false, maxWidth: 150, pixelOffset: new google.maps.Size(-140, -40), zIndex: null, alignBottom: true, boxStyle: { width: "280px" }, closeBoxMargin: "-16px -20px 0px 0px", closeBoxURL: "interactive-map-info-close.png", infoBoxClearance: new google.maps.Size(1, 1) }); setMarkers(map, infobox); } function setMarkers(map, infobox) { var image = { size: new google.maps.Size(38, 38), scaledSize: new google.maps.Size(38, 38), url: "marker.png" }; for (var i = 0; i &lt; obstacles.length; i++) { var obstacle = obstacles[i]; var data = obstacle[0]; var index = obstacle[5]; var myLatLng = new google.maps.LatLng(obstacle[2], obstacle[1]); var marker = new MarkerWithLabel({ position: myLatLng, map: map, icon: image, title: obstacle[0], zIndex: obstacle[3], labelContent: i + 1, labelAnchor: new google.maps.Point(13, 33), labelClass: "labels" }); google.maps.event.addListener(marker, 'click', (function(marker, data) { return function() { infobox.setContent(data); infobox.open(map, marker) } })(marker, data)); } } google.maps.event.addDomListener(window, 'load', initialize); &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="map-canvas"&gt;&lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload