[mapguide-users] How to load my appl with google maps as base map even without internet conection

GordonL gordon.luckett at arrowgeomatics.com
Thu Mar 26 10:13:24 PDT 2015


Perhaps make 2 layouts.  1 with Google map and 1 without.

You can have a start page to check for google - perhaps with jQuery:


$.ajax({
    type: 'HEAD',
    url: 'http://www.google.com',
success: function() 
{
        var
myUrl="/mapguide/fusion/templates/mapguide/aqua/index.html?ApplicationDefinition=Library://Samples/Sheboygan/FlexibleLayouts/*Aqua*.ApplicationDefinition&locale=en";
      $(location).attr('href',myUrl);
},
error: function() 
{
      var
myUrl="/mapguide/fusion/templates/mapguide/aqua/index.html?ApplicationDefinition=Library://Samples/Sheboygan/FlexibleLayouts/*Flat*.ApplicationDefinition&locale=en";
      $(location).attr('href',myUrl);
}
});



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/How-to-load-my-appl-with-google-maps-as-base-map-even-without-internet-conection-tp5195491p5195656.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list