[mapguide-users] Re: WGS84.PseudoMercator Is Not Supported MGOS 2.2
64bit?
GordonL
gordon.luckett at arrowgeomatics.com
Mon Jan 30 09:43:11 EST 2012
Since NABBLE broke all the bookmarks it was hard to find. (Good thing I
archive all my emails)
I found this as a fix - but I had to tweak the fusionSF-compress.js or Build
it with ANT:
I now have the Sheboygan sample application working with Google Maps using
flexible layouts. The problem turned out to be errors thrown by
fusion/layers/generic/generic.js for the google.maps.MapTypeId(such as
ROADMAP or SATELLITE.) Eliminating use of use of google.maps.MapTypeId in
the case statements did the trick for me:
switch (this.layerType) {
case 'Google':
switch (this.mapTag.layerOptions.type) { //Google layer types
are actual objects
case 'G_PHYSICAL_MAP': //defined by gmap, not a
string
this.mapTag.layerOptions.type = G_PHYSICAL_MAP;
break;
case 'G_HYBRID_MAP':
this.mapTag.layerOptions.type = G_HYBRID_MAP;
break;
case 'G_SATELLITE_MAP':
this.mapTag.layerOptions.type = G_SATELLITE_MAP;
break;
case 'G_NORMAL_MAP':
this.mapTag.layerOptions.type = G_NORMAL_MAP;
default:
// For the re-loaded Google layers
if(this.mapTag.layerOptions.type == G_PHYSICAL_MAP)
this.mapTag.layerOptions.type = G_PHYSICAL_MAP;
else if(this.mapTag.layerOptions.type == G_HYBRID_MAP)
this.mapTag.layerOptions.type = G_HYBRID_MAP;
else if(this.mapTag.layerOptions.type == G_SATELLITE_MAP)
this.mapTag.layerOptions.type = G_SATELLITE_MAP;
else
this.mapTag.layerOptions.type = G_NORMAL_MAP;
break;
}
break;
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/WGS84-PseudoMercator-Is-Not-Supported-MGOS-2-2-64bit-tp4184497p4350884.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list