The GC2 framework helps you build a spatial data infrastructure quickly and easily. Powered using open source components for a scalable solution focused on freedom rather than fees.
when starting GC2, I got this exception:
OpenLayers.gc2.js:903 Uncaught TypeError: Cannot read properties of undefined (reading 'div')
at initialize.addLayer (OpenLayers.gc2.js:903:7)
at map.addGoogleTerrain (api.083ab87cf6660e0e.js:382:22)
at map.addBaseLayer (api.083ab87cf6660e0e.js:505:30)
at HTMLDocument. (all.min.1545ce5cd6881ecc.js:1:1335719)
at c (all.min.1545ce5cd6881ecc.js:1:953161)
at Object.fireWith [as resolveWith] (all.min.1545ce5cd6881ecc.js:1:953966)
at Function.ready (all.min.1545ce5cd6881ecc.js:1:930504)
at HTMLDocument.q (all.min.1545ce5cd6881ecc.js:1:927916)
it alerts:
google is not defined
maybe at this location:
case "googleTerrain":
o = this.addGoogleTerrain();
break;
when starting GC2, I got this exception: OpenLayers.gc2.js:903 Uncaught TypeError: Cannot read properties of undefined (reading 'div') at initialize.addLayer (OpenLayers.gc2.js:903:7) at map.addGoogleTerrain (api.083ab87cf6660e0e.js:382:22) at map.addBaseLayer (api.083ab87cf6660e0e.js:505:30) at HTMLDocument. (all.min.1545ce5cd6881ecc.js:1:1335719)
at c (all.min.1545ce5cd6881ecc.js:1:953161)
at Object.fireWith [as resolveWith] (all.min.1545ce5cd6881ecc.js:1:953966)
at Function.ready (all.min.1545ce5cd6881ecc.js:1:930504)
at HTMLDocument.q (all.min.1545ce5cd6881ecc.js:1:927916)
it alerts: google is not defined
maybe at this location: case "googleTerrain": o = this.addGoogleTerrain(); break;
this.addGoogleTerrain = function () { // v3 try { this.baseGTERRAIN = new OpenLayers.Layer.Google("Google Terrain", { type: google.maps.MapTypeId.TERRAIN, wrapDateLine: true, numZoomLevels: 20 }); } catch (e) { alert(e.message) } this.map.addLayer(this.baseGTERRAIN); return (this.baseGTERRAIN); };
may let it continue go rather then Hang on ... even though there is an exception and no baselayers.