Я создаю веб-приложение с несколькими вкладками. Я хочу, чтобы на каждой вкладке был скрипт Google Maps, отображающий карту и т. д. Я получаю сообщение об ошибке:
West Chester Places
[b]Food[/b]
[b]Bars/Nightlife[/b]
[b]Other[/b]
Tab 4
html { height: auto; }
body { height: auto; margin: 0; padding: 0 }
#infobox { margin: 0px }
#map-canvas { height: 460px }
Come take a look at my favorite places in West Chester!
Fun with Google Maps API [url=https://github.com/rmcgarry3/FavWCPlaces](Source Code Here)[/url]
html { height: auto; }
body { height: auto; margin: 0; padding: 0 }
#infobox { margin: 0px }
#map-canvas { height: 460px }
Come take a look at my favorite places in West Chester!
Fun with Google Maps API [url=https://github.com/rmcgarry3/FavWCPlaces](Source Code Here)[/url]
html { height: auto; }
body { height: auto; margin: 0; padding: 0 }
#infobox { margin: 0px }
#map-canvas { height: 460px }
Come take a look at my favorite places in West Chester!
Fun with Google Maps API [url=https://github.com/rmcgarry3/FavWCPlaces](Source Code Here)[/url]
html { height: auto; }
body { height: auto; margin: 0; padding: 0 }
#infobox { margin: 0px }
#map-canvas { height: 460px }
Come take a look at my favorite places in West Chester!
Fun with Google Maps API [url=https://github.com/rmcgarry3/FavWCPlaces](Source Code Here)[/url]
Я создаю веб-приложение с несколькими вкладками. Я хочу, чтобы на каждой вкладке был скрипт Google Maps, отображающий карту и т. д. Я получаю сообщение об ошибке: [code]You have included the Google Maps JavaScript API multiple times on this page. This may cause unexpected errors. [/code] При попытке использовать его следующим образом: В index.html: [code]
Come take a look at my favorite places in West Chester! Fun with Google Maps API [url=https://github.com/rmcgarry3/FavWCPlaces](Source Code Here)[/url]
Come take a look at my favorite places in West Chester! Fun with Google Maps API [url=https://github.com/rmcgarry3/FavWCPlaces](Source Code Here)[/url]
Come take a look at my favorite places in West Chester! Fun with Google Maps API [url=https://github.com/rmcgarry3/FavWCPlaces](Source Code Here)[/url]
Come take a look at my favorite places in West Chester! Fun with Google Maps API [url=https://github.com/rmcgarry3/FavWCPlaces](Source Code Here)[/url]
[/code] В Mapapi.js: [code]function initialize() { var mapOptions = { center: { lat: 39.9545904, lng: -75.6029956 }, zoom: 16 };
var map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions); var bonBonInfo = new google.maps.InfoWindow({ content: '' + 'Square One Bar1400 S Michigan Ave' + '' });
var masInfo = new google.maps.InfoWindow({ content: '' + 'My Home!18th St & Michigan ave' + '' });
var loveAgainInfo = new google.maps.InfoWindow({ content: '' + 'Dusek\'s Punch Bar1227 W 18th Street' + '' });
var diaDoceInfo = new google.maps.InfoWindow({ content: '' + 'Mercer 113113 W Hubbard Street' + '' });
var bonBon = new google.maps.Marker({ position: { lat: 39.959006, lng: -75.607625 }, map: map, title: 'Bon Bon Sushi' });
var mas = new google.maps.Marker({ position: { lat: 39.960265, lng: -75.603004 }, map: map, title: 'Más Mexicali Cantina' });
var loveAgain = new google.maps.Marker({ position: { lat: 39.958445, lng: -75.605327 }, map: map, title: 'Love Again Local' });
var diaDoce = new google.maps.Marker({ position: { lat: 39.958586, lng: -75.603630 }, map: map, title: 'Dia Doce Gourmet Cupcakes' });