Fixed
Status Update
Comments
gs...@gmail.com <gs...@gmail.com> #3
Example 1. Just trying to attach your gmaps script.
If you open the developer console, you will see that gmaps init script is loaded, but "getScript("https://maps.gstatic.com/intl/en_us/mapfiles/api-3/9/8/main.js ");" line isn't working, there is no new script in the document after document.write.
If you open the developer console, you will see that gmaps init script is loaded, but "getScript("
lu...@google.com <lu...@google.com> #4
Example 2. Trying to use callback parameter. Init is loaded, main javascript file is loaded too. But not working, exception screenshot is in attach.
lu...@google.com <lu...@google.com> #5
For example 2 - your code:
...
lf.main = function(a) {
eval(a); // <-- Uncaught Error: Code generation from strings disallowed for this context
};
...
...
lf.main = function(a) {
eval(a); // <-- Uncaught Error: Code generation from strings disallowed for this context
};
...
da...@google.com <da...@google.com>
tr...@gmail.com <tr...@gmail.com> #6
Just to poke this bug, using the asynchronous loading method has no effect on this. The only workaround is to roll back to manifest version 1 which is actively being phased out.
Description
it only an inch or so this doesn't happen) the marker vanishes and doesn't
come back when you move the mouse back over the map. I'm not even sure the
marker is supposed to go off the map though. Didn't it use to be bound by
the map container?
Here's a test page:
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<script type="text/javascript" src="
sensor=false"></script>
<script type="text/javascript">
function initialize() {
var latlng = new google.maps.LatLng(37.313477473067, -
121.880502070713);
var myOptions = {
zoom: 11,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById("map_canvas"),
myOptions);
var draggablemarker = new google.maps.Marker({map:map, position:latlng,
draggable:true});
}
</script>
</head>
<body onload="initialize()" style="margin:0px;">
<div id="map_canvas" style="width:50%; height:50%">
</body>
</html>