[fusion-commits] r2924 - sandbox/adsk/3.0m/lib/OpenLayers
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Tue Mar 8 21:30:36 PST 2016
Author: liuar
Date: 2016-03-08 21:30:36 -0800 (Tue, 08 Mar 2016)
New Revision: 2924
Modified:
sandbox/adsk/3.0m/lib/OpenLayers/OpenLayers.js
Log:
Fix the issue that Google street base layer cannot be loaded.
Modified: sandbox/adsk/3.0m/lib/OpenLayers/OpenLayers.js
===================================================================
--- sandbox/adsk/3.0m/lib/OpenLayers/OpenLayers.js 2016-03-08 01:31:53 UTC (rev 2923)
+++ sandbox/adsk/3.0m/lib/OpenLayers/OpenLayers.js 2016-03-09 05:30:36 UTC (rev 2924)
@@ -41066,6 +41066,7 @@
container.className = "olForeignContainer";
container.style.width = '100%';
container.style.height = '100%';
+ this.div.appendChild(container);
mapObject = new google.maps.Map(container, {
center: center ?
new google.maps.LatLng(center.lat, center.lon) :
@@ -41138,10 +41139,10 @@
if (!cache.rendered) {
var me = this;
google.maps.event.addListenerOnce(this.mapObject, 'tilesloaded', function() {
- cache.rendered = true;
me.setGMapVisibility(me.getVisibility());
me.moveTo(me.map.getCenter());
});
+ cache.rendered = true;
} else {
map.div.appendChild(container);
cache.googleControl.appendChild(map.viewPortDiv);
More information about the fusion-commits
mailing list