Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script src="https://maps.googleapis.com/maps/api/js?key=&extension=.js"></script>
- <script src="https://cdn.mapkit.io/v1/infobox.js"></script>
- <link href="https://fonts.googleapis.com/css?family=Roboto:300,400" rel="stylesheet">
- <link href="https://cdn.mapkit.io/v1/infobox.css" rel="stylesheet" >
- <script>
- google.maps.event.addDomListener(window, 'load', init);
- var map, markersArray = [];
- function bindInfoWindow(marker, map, location) {
- google.maps.event.addListener(marker, 'click', function() {
- function close(location) {
- location.ib.close();
- location.infoWindowVisible = false;
- location.ib = null;
- }
- if (location.infoWindowVisible === true) {
- close(location);
- } else {
- markersArray.forEach(function(loc, index){
- if (loc.ib && loc.ib !== null) {
- close(loc);
- }
- });
- var boxText = document.createElement('div');
- boxText.style.cssText = 'background: #fff;';
- boxText.classList.add('md-whiteframe-2dp');
- function buildPieces(location, el, part, icon) {
- if (location[part] === '') {
- return '';
- } else if (location.iw[part]) {
- switch(el){
- case 'photo':
- if (location.photo){
- return '<div class="iw-photo" style="background-image: url(' + location.photo + ');"></div>';
- } else {
- return '';
- }
- break;
- case 'iw-toolbar':
- return '<div class="iw-toolbar"><h3 class="md-subhead">' + location.title + '</h3></div>';
- break;
- case 'div':
- switch(part){
- case 'email':
- return '<div class="iw-details"><i class="material-icons" style="color:#4285f4;"><img src="//cdn.mapkit.io/v1/icons/' + icon + '.svg"/></i><span><a href="mailto:' + location.email + '" target="_blank">' + location.email + '</a></span></div>';
- break;
- case 'web':
- return '<div class="iw-details"><i class="material-icons" style="color:#4285f4;"><img src="//cdn.mapkit.io/v1/icons/' + icon + '.svg"/></i><span><a href="' + location.web + '" target="_blank">' + location.web_formatted + '</a></span></div>';
- break;
- case 'desc':
- return '<label class="iw-desc" for="cb_details"><input type="checkbox" id="cb_details"/><h3 class="iw-x-details">Details</h3><i class="material-icons toggle-open-details"><img src="//cdn.mapkit.io/v1/icons/' + icon + '.svg"/></i><p class="iw-x-details">' + location.desc + '</p></label>';
- break;
- default:
- return '<div class="iw-details"><i class="material-icons"><img src="//cdn.mapkit.io/v1/icons/' + icon + '.svg"/></i><span>' + location[part] + '</span></div>';
- break;
- }
- break;
- case 'open_hours':
- var items = '';
- if (location.open_hours.length > 0){
- for (var i = 0; i < location.open_hours.length; ++i) {
- if (i !== 0){
- items += '<li><strong>' + location.open_hours[i].day + '</strong><strong>' + location.open_hours[i].hours +'</strong></li>';
- }
- var first = '<li><label for="cb_hours"><input type="checkbox" id="cb_hours"/><strong>' + location.open_hours[0].day + '</strong><strong>' + location.open_hours[0].hours +'</strong><i class="material-icons toggle-open-hours"><img src="//cdn.mapkit.io/v1/icons/keyboard_arrow_down.svg"/></i><ul>' + items + '</ul></label></li>';
- }
- return '<div class="iw-list"><i class="material-icons first-material-icons" style="color:#4285f4;"><img src="//cdn.mapkit.io/v1/icons/' + icon + '.svg"/></i><ul>' + first + '</ul></div>';
- } else {
- return '';
- }
- break;
- }
- } else {
- return '';
- }
- }
- boxText.innerHTML =
- buildPieces(location, 'photo', 'photo', '') +
- buildPieces(location, 'iw-toolbar', 'title', '') +
- buildPieces(location, 'div', 'address', 'location_on') +
- buildPieces(location, 'div', 'web', 'public') +
- buildPieces(location, 'div', 'email', 'email') +
- buildPieces(location, 'div', 'tel', 'phone') +
- buildPieces(location, 'div', 'int_tel', 'phone') +
- buildPieces(location, 'open_hours', 'open_hours', 'access_time') +
- buildPieces(location, 'div', 'desc', 'keyboard_arrow_down');
- var myOptions = {
- alignBottom: true,
- content: boxText,
- disableAutoPan: true,
- maxWidth: 0,
- pixelOffset: new google.maps.Size(-140, -40),
- zIndex: null,
- boxStyle: {
- opacity: 1,
- width: '280px'
- },
- closeBoxMargin: '0px 0px 0px 0px',
- infoBoxClearance: new google.maps.Size(1, 1),
- isHidden: false,
- pane: 'floatPane',
- enableEventPropagation: false
- };
- location.ib = new InfoBox(myOptions);
- location.ib.open(map, marker);
- location.infoWindowVisible = true;
- }
- });
- }
- function init() {
- var mapOptions = {
- center: new google.maps.LatLng(30.355279624822824,-97.73700294929881),
- zoom: 15,
- gestureHandling: 'auto',
- fullscreenControl: false,
- zoomControl: true,
- disableDoubleClickZoom: true,
- mapTypeControl: true,
- mapTypeControlOptions: {
- style: google.maps.MapTypeControlStyle.HORIZONTAL_BAR,
- },
- scaleControl: true,
- scrollwheel: true,
- streetViewControl: true,
- draggable : true,
- clickableIcons: false,
- mapTypeId: google.maps.MapTypeId.ROADMAP,
- }
- var mapElement = document.getElementById('mapkit-5790');
- var map = new google.maps.Map(mapElement, mapOptions);
- var locations = [
- {"title":"Barton Creek Greenbelt","address":"3755 S Capital of Texas Hwy, Austin, TX 78704, United States","desc":"","tel":"","int_tel":"","email":"","web":"https://www.google.com/maps/place/3755+S+Capital+of+Texas+Hwy,+Austin,+TX+78704/@30.2431714,-97.8022332,17z/data=!4m5!3m4!1s0x865b4b2422b94247:0x21bc03e7da138b0f!8m2!3d30.2431668!4d-97.8000445","web_formatted":"google.com","open":"","time":"","lat":30.24369999999999,"lng":-97.80078309999999,"vicinity":"3755 S Capital of Texas Hwy, Austin, TX 78704, United States","open_hours":[],"iw":{"address":true,"desc":true,"email":true,"enable":true,"int_tel":true,"open":true,"open_hours":true,"photo":true,"tel":true,"title":true,"web":true}},{"title":"Great Hills Park","address":"10801 Sierra Oaks, Austin, TX 78759, United States","desc":"","tel":"","int_tel":"","email":"","web":"https://www.google.com/maps/place/Great+Hills+Park/@30.4119747,-97.7608417,18z/data=!4m8!1m2!2m1!1sGreat+Hills+Neighborhood+Park!3m4!1s0x8644cc93bc259bed:0x8e23591ca64255c6!8m2!3d30.4132077!4d-97.7624447","web_formatted":"google.com","open":"","time":"","lat":30.4132077,"lng":-97.7624447,"vicinity":"10801 Sierra Oaks, Austin, TX 78759, United States","open_hours":[],"iw":{"address":true,"desc":true,"email":true,"enable":true,"int_tel":true,"open":true,"open_hours":true,"photo":true,"tel":true,"title":true,"web":true}},{"title":"Hancock Golf Course","address":"811 E 41st St, Austin, TX 78751, United States","desc":"","tel":"","int_tel":"","email":"","web":"https://www.google.com/maps/place/Hancock+Golf+Course/@30.2990436,-97.7267933,17z/data=!3m1!4b1!4m5!3m4!1s0x8644b58a1042c33f:0xca543fb4e29025e1!8m2!3d30.299039!4d-97.7246046","web_formatted":"google.com","open":"","time":"","lat":30.299039,"lng":-97.72460460000002,"vicinity":"811 E 41st St, Austin, TX 78751, United States","open_hours":"","iw":{"address":true,"desc":true,"email":true,"enable":true,"int_tel":true,"open":true,"open_hours":true,"photo":true,"tel":true,"title":true,"web":true}},{"title":"Hielscher Tract Greenbelt","address":"6801 La Crosse Ave, Austin, TX 78739, United States","desc":"","tel":"","int_tel":"","email":"","web":"https://www.google.com/maps/place/Hielscher+Tract+Greenbelt/@30.1957829,-97.8981618,17z/data=!3m1!4b1!4m5!3m4!1s0x865b4ecb9ef50627:0x548fca3c7a6db541!8m2!3d30.1957783!4d-97.8959731","web_formatted":"google.com","open":"","time":"","lat":30.1957783,"lng":-97.89597309999999,"vicinity":"6801 La Crosse Ave, Austin, TX 78739, United States","open_hours":[],"iw":{"address":true,"desc":true,"email":true,"enable":true,"int_tel":true,"open":true,"open_hours":true,"photo":true,"tel":true,"title":true,"web":true}},{"title":"Joslin Neighborhood Park","address":"4500 Manchaca Rd, Austin, TX 78745, United States","desc":"","tel":"","int_tel":"","email":"","web":"","web_formatted":"","open":"","time":"","lat":30.2286572,"lng":-97.7919781,"vicinity":"4500 Manchaca Rd, Austin, TX 78745, United States","open_hours":[],"marker":{"url":"https://maps.gstatic.com/mapfiles/api-3/images/spotlight-poi_hdpi.png","scaledSize":{"width":25,"height":42,"f":"px","b":"px"},"origin":{"x":0,"y":0},"anchor":{"x":12,"y":42}},"iw":{"address":true,"desc":true,"email":true,"enable":true,"int_tel":true,"open":true,"open_hours":true,"photo":true,"tel":true,"title":true,"web":true}},{"title":"Kealing School Park","address":"1500 Rosewood Ave, Austin, TX 78702, United States","desc":"","tel":"","int_tel":"","email":"","web":"https://www.google.com/maps/place/Kealing+School+Park/@30.2690566,-97.7259167,17z/data=!3m1!4b1!4m5!3m4!1s0x8644b5b90dd33bef:0x5a152162b579555f!8m2!3d30.269052!4d-97.723728","web_formatted":"google.com","open":"","time":"","lat":30.269052,"lng":-97.723728,"vicinity":"1500 Rosewood Ave, Austin, TX 78702, United States","open_hours":[],"iw":{"address":true,"desc":true,"email":true,"enable":true,"int_tel":true,"open":true,"open_hours":true,"photo":true,"tel":true,"title":true,"web":true}},{"title":"Longview Neighborhood Park","address":"7609 Longview Rd, Austin, TX 78745, United States","desc":"","tel":"","int_tel":"","email":"","web":"https://www.google.com/maps/place/Longview+Neighborhood+Park/@30.2255874,-97.8050632,13z/data=!4m8!1m2!2m1!1sLongview+Neighborhood+Park!3m4!1s0x865b4b7fd1b90601:0x7fc75b0dff293cdd!8m2!3d30.2024718!4d-97.8262574","web_formatted":"google.com","open":"","time":"","lat":30.2024718,"lng":-97.82625740000003,"vicinity":"7609 Longview Rd, Austin, TX 78745, United States","open_hours":[],"iw":{"address":true,"desc":true,"email":true,"enable":true,"int_tel":true,"open":true,"open_hours":true,"photo":true,"tel":true,"title":true,"web":true}},{"title":"Mayfield Park and Nature Preserve","address":"3505 W 35th St, Austin, TX 78703, United States","desc":"","tel":"","int_tel":"","email":"","web":"https://www.google.com/maps/place/Mayfield+Park+and+Nature+Preserve/@30.3129782,-98.3319227,9z/data=!4m5!3m4!1s0x8644cabbb73d7e23:0xe94c125ee31f1d00!8m2!3d30.3129736!4d-97.77162","web_formatted":"google.com","open":"","time":"","lat":30.3129736,"lng":-97.77161999999998,"vicinity":"3505 W 35th St, Austin, TX 78703, United States","open_hours":[],"iw":{"address":true,"desc":true,"email":true,"enable":true,"int_tel":true,"open":true,"open_hours":true,"photo":true,"tel":true,"title":true,"web":true}},{"title":"North Oaks Neighborhood Park","address":"820 Plaza Dr, Austin, TX 78753, United States","desc":"","tel":"","int_tel":"","email":"","web":"https://www.google.com/maps/place/North+Oaks+Neighborhood+Park/@30.3795212,-97.6737439,17z/data=!3m1!4b1!4m5!3m4!1s0x8644c93964fb7d7f:0x7fa5835cbdeeeb1c!8m2!3d30.3795166!4d-97.6715552","web_formatted":"google.com","open":"","time":"","lat":30.3795166,"lng":-97.6715552,"vicinity":"820 Plaza Dr, Austin, TX 78753, United States","open_hours":[],"iw":{"address":true,"desc":true,"email":true,"enable":true,"int_tel":true,"open":true,"open_hours":true,"photo":true,"tel":true,"title":true,"web":true}},{"title":"North Star Greenbelt","address":"11701 Tallow Field Way, Austin, TX 78758, USA","desc":"","tel":"(512) 974-6700","int_tel":"+1 512-974-6700","email":"","web":"https://www.google.com/maps/place/North+Star+Greenbelt/@30.3940664,-97.6995676,17z/data=!3m1!4b1!4m5!3m4!1s0x8644cc072e56a935:0x24694322f4afc55f!8m2!3d30.3940618!4d-97.6973789","web_formatted":"google.com","open":"Open","time":"1049","lat":30.39406180000001,"lng":-97.69737889999999,"vicinity":"11701 Tallow Field Way, Austin","open_hours":[{"day":"Monday","hours":"5am–10pm","$$hashKey":"object:6838"},{"day":"Tuesday","hours":"5am–10pm","$$hashKey":"object:6839"},{"day":"Wednesday","hours":"5am–10pm","$$hashKey":"object:6840"},{"day":"Thursday","hours":"5am–10pm","$$hashKey":"object:6841"},{"day":"Friday","hours":"5am–10pm","$$hashKey":"object:6842"},{"day":"Saturday","hours":"5am–10pm","$$hashKey":"object:6843"},{"day":"Sunday","hours":"5am–10pm","$$hashKey":"object:6844"}],"iw":{"address":true,"desc":true,"email":true,"enable":true,"int_tel":true,"open":true,"open_hours":true,"photo":true,"tel":true,"title":true,"web":true}},{"title":"Northwest Balcones Neighborhood Park","address":"10225 Talleyran Dr, Austin, TX 78750, United States","desc":"","tel":"","int_tel":"","email":"","web":"https://www.google.com/maps/place/Northwest+Balcones+Neighborhood+Park/@30.4263355,-97.8040437,17z/data=!3m1!4b1!4m5!3m4!1s0x865b3321a333a137:0x60539851d19774ce!8m2!3d30.4263309!4d-97.801855","web_formatted":"google.com","open":"","time":"","lat":30.4263309,"lng":-97.80185499999999,"vicinity":"10225 Talleyran Dr, Austin, TX 78750, United States","open_hours":[],"iw":{"address":true,"desc":true,"email":true,"enable":true,"int_tel":true,"open":true,"open_hours":true,"photo":true,"tel":true,"title":true,"web":true}},{"title":"Northwest Recreation Center","address":"2913 Northland Dr, Austin, TX 78757, United States","desc":"","tel":"","int_tel":"","email":"","web":"https://www.google.com/maps/place/Northwest+Recreation+Center/@30.3338194,-97.7541297,17z/data=!3m1!4b1!4m5!3m4!1s0x8644cafac41db2dd:0xa90e39ee5469078b!8m2!3d30.3338148!4d-97.751941","web_formatted":"google.com","open":"","time":"","lat":30.3338148,"lng":-97.75194099999999,"vicinity":"2913 Northland Dr, Austin, TX 78757, United States","open_hours":[],"iw":{"address":true,"desc":true,"email":true,"enable":true,"int_tel":true,"open":true,"open_hours":true,"photo":true,"tel":true,"title":true,"web":true}},{"title":"Norwood Estate Dog Park","address":"1009 Edgecliff Terrace, Austin, TX 78704, United States","desc":"","tel":"","int_tel":"","email":"","web":"https://www.google.com/maps/place/Norwood+Tract+in+Town+Lake+Metropolitan+Park/@30.2500168,-97.739958,17z/data=!3m1!4b1!4m5!3m4!1s0x8644b4545c69e0df:0xbe48a98eec553de1!8m2!3d30.2500122!4d-97.7377693","web_formatted":"google.com","open":"","time":"","lat":30.24925,"lng":-97.73650320000001,"vicinity":"1009 Edgecliff Terrace, Austin, TX 78704, United States","open_hours":[],"iw":{"address":true,"desc":true,"email":true,"enable":true,"int_tel":true,"open":true,"open_hours":true,"photo":true,"tel":true,"title":true,"web":true}},{"title":"Onion Creek Metropolitan Park","address":"8652 Nuckols Crossing Rd, Austin, TX 78744, United States","desc":"","tel":"","int_tel":"","email":"","web":"https://www.google.com/maps/place/Onion+Creek+Metropolitan+Park/@30.1618053,-97.7587987,17z/data=!3m1!4b1!4m5!3m4!1s0x8644b31c53303ca9:0x5f73380e50e31139!8m2!3d30.1618007!4d-97.75661","web_formatted":"google.com","open":"","time":"","lat":30.1618007,"lng":-97.75661000000002,"vicinity":"8652 Nuckols Crossing Rd, Austin, TX 78744, United States","open_hours":[],"iw":{"address":true,"desc":true,"email":true,"enable":true,"int_tel":true,"open":true,"open_hours":true,"photo":true,"tel":true,"title":true,"web":true}},{"title":"Onion Creek Soccer Complex","address":"5600 E William Cannon Dr, Austin, TX 78744, United States","desc":"","tel":"","int_tel":"","email":"","web":"https://www.google.com/maps/place/Onion+Creek+Soccer+Complex/@30.1771112,-97.742501,17z/data=!3m1!4b1!4m5!3m4!1s0x8644b3a713d1604f:0xc3aa88085ae438b4!8m2!3d30.1771066!4d-97.7403123","web_formatted":"google.com","open":"","time":"","lat":30.1771066,"lng":-97.74031230000003,"vicinity":"E William Cannon Dr, Austin, TX 78744, United States","open_hours":[],"iw":{"address":true,"desc":true,"email":true,"enable":true,"int_tel":true,"open":true,"open_hours":true,"photo":true,"tel":true,"title":true,"web":true}},{"title":"Patterson Neighborhood Park","address":"4200 Brookview Rd, Austin, TX 78722, United States","desc":"","tel":"","int_tel":"","email":"","web":"https://www.google.com/maps/place/Patterson+Neighborhood+Park/@30.2961288,-97.7116135,17z/data=!3m1!4b1!4m5!3m4!1s0x8644b5f744cfe6f1:0x86bff18d0241a930!8m2!3d30.2961242!4d-97.7094248","web_formatted":"google.com","open":"","time":"","lat":30.2961242,"lng":-97.70942479999996,"vicinity":"4200 Brookview Rd, Austin, TX 78722, United States","open_hours":[],"iw":{"address":true,"desc":true,"email":true,"enable":true,"int_tel":true,"open":true,"open_hours":true,"photo":true,"tel":true,"title":true,"web":true}},{"title":"Ponciana Park","address":"Freidrich Ln, Austin, TX 78744, United States","desc":"","tel":"","int_tel":"","email":"","web":"https://www.google.com/maps/place/Poinciana+Park,+Fort+Lauderdale,+FL/@26.0955336,-80.1498718,15z/data=!3m1!4b1!4m5!3m4!1s0x88d90062f4003b63:0x619645ec92db5cc4!8m2!3d26.1016488!4d-80.1400671","web_formatted":"google.com","open":"","time":"","lat":30.2007911,"lng":-97.7550819,"vicinity":"Freidrich Ln, Austin, TX 78744, United States","open_hours":[],"iw":{"address":true,"desc":true,"email":true,"enable":true,"int_tel":true,"open":true,"open_hours":true,"photo":true,"tel":true,"title":true,"web":true}},{"title":"Quail Creek Park","address":"1101 Mearns Meadow Blvd, Austin, TX 78758, United States","desc":"","tel":"","int_tel":"","email":"","web":"https://www.google.com/maps/place/Quail+Creek+Park/@30.3691633,-97.7029606,17z/data=!3m1!4b1!4m5!3m4!1s0x8644cbdfcd4d02c9:0x3862bfd61c0ccaf1!8m2!3d30.3691587!4d-97.7007719","web_formatted":"google.com","open":"","time":"","lat":30.3691587,"lng":-97.7007719,"vicinity":"1101 Mearns Meadow Blvd, Austin, TX 78758, United States","open_hours":[],"iw":{"address":true,"desc":true,"email":true,"enable":true,"int_tel":true,"open":true,"open_hours":true,"photo":true,"tel":true,"title":true,"web":true}},{"title":"Ramsey Park","address":"4301 Rosedale Ave, Austin, TX 78756, United States","desc":"","tel":"","int_tel":"","email":"","web":"https://www.google.com/maps/place/Ramsey+Park/@30.3132766,-97.7457263,17z/data=!3m1!4b1!4m5!3m4!1s0x8644ca89b2c8dc71:0x4783463bede3a6f0!8m2!3d30.313272!4d-97.7435376","web_formatted":"google.com","open":"","time":"","lat":30.313272,"lng":-97.74353759999997,"vicinity":"4301 Rosedale Ave, Austin, TX 78756, United States","open_hours":[],"iw":{"address":true,"desc":true,"email":true,"enable":true,"int_tel":true,"open":true,"open_hours":true,"photo":true,"tel":true,"title":true,"web":true}},{"title":"Ron Rigsby Pocket Park","address":"1110 Little Elm Park, Austin, TX 78758, United States","desc":"","tel":"","int_tel":"","email":"","web":"https://www.google.com/maps/place/Ron+Rigsby+Pocket+Park/@30.3643329,-97.7074566,17z/data=!3m1!4b1!4m5!3m4!1s0x8644cbdc747b4187:0x3b9e6cf488323661!8m2!3d30.3643283!4d-97.7052679","web_formatted":"google.com","open":"","time":"","lat":30.3643283,"lng":-97.70526789999996,"vicinity":"1110 Little Elm Park, Austin, TX 78758, United States","open_hours":[],"iw":{"address":true,"desc":true,"email":true,"enable":true,"int_tel":true,"open":true,"open_hours":true,"photo":true,"tel":true,"title":true,"web":true}},{"title":"Silk Oak Park","address":"Silk Oak Dr, Austin, TX 78748, United States","desc":"","tel":"","int_tel":"","email":"","web":"https://www.google.com/maps/place/Silk+Oak+Park/@30.1883387,-97.8423284,18z/data=!4m8!1m2!2m1!1sSilk+Oak+Neighborhood+Park!3m4!1s0x865b4c6578a63ec3:0x70ae812c9612204c!8m2!3d30.1871925!4d-97.8390051","web_formatted":"google.com","open":"","time":"","lat":30.1871925,"lng":-97.83900510000001,"vicinity":"Silk Oak Dr, Austin, TX 78748, United States","open_hours":[],"iw":{"address":true,"desc":true,"email":true,"enable":true,"int_tel":true,"open":true,"open_hours":true,"photo":true,"tel":true,"title":true,"web":true}},{"title":"South Austin Island","address":"2205 S Congress Ave, Austin, TX 78704, USA","desc":"","tel":"(512) 974-6700","int_tel":"+1 512-974-6700","email":"","web":"https://www.google.com/maps/place/2205+S+Congress+Ave,+Austin,+TX+78704/@30.2411486,-97.7548468,17z/data=!3m1!4b1!4m5!3m4!1s0x8644b4e55492d177:0xa13825e22dbc142!8m2!3d30.241144!4d-97.7526581","web_formatted":"google.com","open":"Open","time":"1049","lat":30.2415379,"lng":-97.75245030000002,"vicinity":"2205 South Congress Avenue, Austin","open_hours":[{"day":"Monday","hours":"5am–10pm","$$hashKey":"object:5382"},{"day":"Tuesday","hours":"5am–10pm","$$hashKey":"object:5383"},{"day":"Wednesday","hours":"5am–10pm","$$hashKey":"object:5384"},{"day":"Thursday","hours":"5am–10pm","$$hashKey":"object:5385"},{"day":"Friday","hours":"5am–10pm","$$hashKey":"object:5386"},{"day":"Saturday","hours":"5am–10pm","$$hashKey":"object:5387"},{"day":"Sunday","hours":"5am–10pm","$$hashKey":"object:5388"}],"iw":{"address":true,"desc":true,"email":true,"enable":true,"int_tel":true,"open":true,"open_hours":true,"photo":true,"tel":true,"title":true,"web":true}},{"title":"St. Edward's Park","address":"7301 Spicewood Springs Rd, Austin, TX 78759, United States","desc":"","tel":"","int_tel":"","email":"","web":"https://www.google.com/maps/place/St.+Edward's+Park/@30.3187546,-97.839853,12z/data=!4m8!1m2!2m1!1sSt.+Edwards+Greenbelt!3m4!1s0x865b334a2ede3b7b:0xf8522f6013ff171d!8m2!3d30.4054917!4d-97.7912552","web_formatted":"google.com","open":"","time":"","lat":30.4054917,"lng":-97.79125520000002,"vicinity":"7301 Spicewood Springs Rd, Austin, TX 78759, United States","open_hours":[],"iw":{"address":true,"desc":true,"email":true,"enable":true,"int_tel":true,"open":true,"open_hours":true,"photo":true,"tel":true,"title":true,"web":true}},{"title":"Stephenson Nature Preserve And Outdoor Education Center","address":"7501 Longview Rd, Austin, TX 78745, United States","desc":"","tel":"","int_tel":"","email":"","web":"https://www.google.com/maps/place/Stephenson+Nature+Preserve+And+Outdoor+Education+Center/@30.2065206,-97.8267465,17z/data=!3m1!4b1!4m5!3m4!1s0x865b4b7fa93a1185:0xb1d5362927dc000b!8m2!3d30.206516!4d-97.8245578","web_formatted":"google.com","open":"","time":"","lat":30.206516,"lng":-97.82455779999998,"vicinity":"7501 Longview Rd, Austin, TX 78745, United States","open_hours":[],"iw":{"address":true,"desc":true,"email":true,"enable":true,"int_tel":true,"open":true,"open_hours":true,"photo":true,"tel":true,"title":true,"web":true}},{"title":"West Austin Neighborhood Park","address":"1317 W 10th St, Austin, TX 78703, United States","desc":"","tel":"","int_tel":"","email":"","web":"https://www.google.com/maps/place/West+Austin+Neighborhood+Park/@30.2769875,-97.7596477,17z/data=!3m1!4b1!4m5!3m4!1s0x8644b56c9a2cc885:0xb8338b01c23156bf!8m2!3d30.2769829!4d-97.757459","web_formatted":"google.com","open":"","time":"","lat":30.2769829,"lng":-97.75745899999998,"vicinity":"1317 W 10th St, Austin, TX 78703, United States","open_hours":[],"iw":{"address":true,"desc":true,"email":true,"enable":true,"int_tel":true,"open":true,"open_hours":true,"photo":true,"tel":true,"title":true,"web":true}},{"title":"Yett Creek Neighborhood Park","address":"12538 Riata Vista Cir, Austin, TX 78727, USA","desc":"","tel":"(512) 974-6700","int_tel":"+1 512-974-6700","email":"","web":"https://www.google.com/maps/place/Yett+Creek+Neighborhood+Park/@30.4290138,-97.7350324,17z/data=!3m1!4b1!4m5!3m4!1s0x8644cc5233c6e2d7:0x786a10f0e7415047!8m2!3d30.4290092!4d-97.7328437","web_formatted":"google.com","open":"Open","time":"1049","lat":30.42900919999999,"lng":-97.73284369999999,"vicinity":"12538 Riata Vista Circle, Austin","open_hours":[{"day":"Monday","hours":"5am–10pm","$$hashKey":"object:5732"},{"day":"Tuesday","hours":"5am–10pm","$$hashKey":"object:5733"},{"day":"Wednesday","hours":"5am–10pm","$$hashKey":"object:5734"},{"day":"Thursday","hours":"5am–10pm","$$hashKey":"object:5735"},{"day":"Friday","hours":"5am–10pm","$$hashKey":"object:5736"},{"day":"Saturday","hours":"5am–10pm","$$hashKey":"object:5737"},{"day":"Sunday","hours":"5am–10pm","$$hashKey":"object:5738"}],"iw":{"address":true,"desc":true,"email":true,"enable":true,"int_tel":true,"open":true,"open_hours":true,"photo":true,"tel":true,"title":true,"web":true}}
- ];
- for (i = 0; i < locations.length; i++) {
- marker = new google.maps.Marker({
- icon: locations[i].marker,
- position: new google.maps.LatLng(locations[i].lat, locations[i].lng),
- map: map,
- title: locations[i].title,
- address: locations[i].address,
- desc: locations[i].desc,
- tel: locations[i].tel,
- int_tel: locations[i].int_tel,
- vicinity: locations[i].vicinity,
- open: locations[i].open,
- open_hours: locations[i].open_hours,
- photo: locations[i].photo,
- time: locations[i].time,
- email: locations[i].email,
- web: locations[i].web,
- iw: locations[i].iw
- });
- markersArray.push(marker);
- if (locations[i].iw.enable === true){
- bindInfoWindow(marker, map, locations[i]);
- }
- }
- }
- </script>
- <style>
- #mapkit-5790 {
- height:400px;
- width:600px;
- }
- </style>
- <div id='mapkit-5790'></div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement