[mapguide-users] Re: MapGuide 2.2 RC4 issues with Fusion Trunk (and Google)

GreenMapSanMiguel webmaster at SMAmap.com
Sat Apr 2 19:12:07 EDT 2011


Success!

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;

I don't really understand what function these serve and eliminating them may
cause some other issues but i'll open a ticket.



--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/MapGuide-2-2-RC4-issues-with-Fusion-Trunk-and-Google-tp6232676p6234498.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list