Hi, I am trying to dynamically load Google Maps onto a page when the StartMap fucntion below is called. I am using Google Maps for Business (client ID not API key), version 2 of the API, https and a callback. The documentation has various URL examples on calling but non in this scenario.
For the URL we have also tried: http://maps.googleapis.com/maps?file=api&v=2&client=CLIENTIDWASHERE&sensor=false&callback=LoadApis https://maps-api-ssl.google.com/maps?file=api&v=2&client=CLIENTIDWASHERE&sensor=false&callback=LoadApis and many others. Hope someone can help. function StartMap() { var script = document.createElement("script"); script.src = "https://maps.googleapis.com/maps?v=2&client=CLIENTIDWASHERE&sensor=false&callback=LoadApis"; script.type = "text/javascript"; document.getElementsByTagName("head")[0].appendChild(script); } function LoadApis() { google.load("maps", "2", { "callback": LoadMap }); } function LoadMap() { //Code here } -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-api/-/blpDZFidJLkJ. To post to this group, send email to google-maps-api@googlegroups.com. To unsubscribe from this group, send email to google-maps-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.