This page has been working on Google Sites since April 2011. It also uses a Google Spreadsheet for the data. If it stops working in the future I will probably need the help from this group again as it has been so long since I got this working.
George Adams On Fri, Dec 27, 2019 at 3:28 PM dhinostroza <[email protected]> wrote: > Cool! I didn't think this was even possible using Google Sites. > Best, > Daniel > > On Tuesday, December 24, 2019 at 12:57:41 PM UTC-5, George Adams wrote: >> >> A number of years ago I switched from exhibit 2 to v3. All had been >> working OK for some time but after the recent set of emails I went to check >> my map at http://www.hayriverti.org/local-directory-map The map displays >> but is marked "This page can't load Google Maps correctly." >> It appears that maps need an API key once again. I went through the steps >> at Google Cloud Platform Console to create a key and added it to my code. >> No change in the map display. >> >> loadJS(" >> http://api.simile-widgets.org/exhibit/3.1.1/extensions/map/map-extension.js?gmapKey=AIzaSyBl3pTlyHYBW9TGNbsgt9bRqkA8zwHrJYY >> "); >> >> There are multiple problems in the JavaScript console so I checked out >> >> https://api.simile-widgets.org/exhibit/3.1.1/extensions/map/map-extension.js >> From that file >> >> * service [google|google2]: which mapping service to draw upon, >> * defaults to google (v3) >> * gmapKey: only necessary when using google2 service >> >> I then added the service parameter as google2 >> loadJS(" >> http://api.simile-widgets.org/exhibit/3.1.1/extensions/map/map-extension.js?gmapKey=AIzaSyBl3pTlyHYBW9TGNbsgt9bRqkA8zwHrJYY&service=google2 >> "); >> >> This didn't load the map at all. >> The code in >> https://api.simile-widgets.org/exhibit/3.1.1/extensions/map/map-extension.js >> doesn't >> pass the gmapKey when using google V3 and doesn't work with version 2 >> >> if (Exhibit.MapExtension.params.service === "google2" && >> typeof GMap2 === "undefined") { >> if (typeof Exhibit.params.gmapKey !== "undefined") { >> scriptURLs.push(proto + >> "//maps.google.com/maps?file=api&v=2&sensor=false&callback=Exhibit.MapExtension.gmapCallback&async=2&key=" >> + Exhibit.params.gmapKey); >> } else if (typeof Exhibit.MapExtension.params.gmapKey !== >> "undefined") { >> scriptURLs.push(proto + >> "//maps.google.com/maps?file=api&v=2&sensor=false&callback=Exhibit.MapExtension.gmapCallback&async=2&key=" >> + Exhibit.MapExtension.params.gmapKey); >> } else { >> scriptURLs.push(proto + >> "//maps.google.com/maps?file=api&v=2&sensor=false&callback=Exhibit.MapExtension.gmapCallback&async=2"); >> } >> if (!Exhibit.MapExtension.params.bundle) { >> javascriptFiles.push("google-maps-v2-view.js"); >> } >> >> 1. Is exhibit/3.1.1 being maintained? >> 2. Is there a newer version? >> 3. Can the code be changed to pass the API map code for google maps v3? >> 4. This map is not accessed very often. Is it time to remove it from my >> site? >> >> George Adams >> > -- > You received this message because you are subscribed to the Google Groups > "SIMILE Widgets" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/simile-widgets/e3c6d793-068d-4069-87bd-1db412f4ec59%40googlegroups.com > <https://groups.google.com/d/msgid/simile-widgets/e3c6d793-068d-4069-87bd-1db412f4ec59%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "SIMILE Widgets" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/simile-widgets/CAM539gtxXD72pGOYVTBBgJmU%2BmwTEEnWKqssULGcFP7VOwBgug%40mail.gmail.com.
