Line 36... |
Line 36... |
36 |
}
|
36 |
}
|
37 |
if (!dojo.hostenv.post_load_) {
|
37 |
if (!dojo.hostenv.post_load_) {
|
38 |
if (!gkey || gkey == "") {
|
38 |
if (!gkey || gkey == "") {
|
39 |
dojo.raise("dojo.widget.GoogleMap: The Google Map widget requires a proper API key in order to be used.");
|
39 |
dojo.raise("dojo.widget.GoogleMap: The Google Map widget requires a proper API key in order to be used.");
|
40 |
}
|
40 |
}
|
41 |
//var tag = "<scr" + "ipt src='http://maps.google.com/maps?file=api&v=2&key=" + gkey + "'></scri" + "pt>";
|
41 |
var tag = "<scr" + "ipt src='http://maps.google.com/maps?file=api&v=2&key=" + gkey + "'></scri" + "pt>";
|
42 |
var tag = "<scr" + "ipt src='http://maps.googleapis.com/maps/api/js?sensor=false'></scri" + "pt>";
|
- |
|
43 |
if (!dj_global["GMap2"]) {
|
42 |
if (!dj_global["GMap2"]) {
|
44 |
document.write(tag);
|
43 |
document.write(tag);
|
45 |
}
|
44 |
}
|
46 |
} else {
|
45 |
} else {
|
47 |
dojo.debug("Cannot initialize Google Map system after the page has been loaded! Please either manually include the script block provided by Google in your page or require() the GoogleMap widget before onload has fired.");
|
46 |
dojo.debug("Cannot initialize Google Map system after the page has been loaded! Please either manually include the script block provided by Google in your page or require() the GoogleMap widget before onload has fired.");
|