[mapguide-users] Re: mapguide with google map

GordonL gordon.luckett at arrowgeomatics.com
Thu Mar 31 10:33:55 EDT 2011

Here is a quicker way, I will use the Fusion TurquoiseYellow as an example.

In the Templates folder under Fusion, edit the index.html page.

1.  First add the google API with your API Key registered from Google here

2. Then modify the fusionInitialized function - the addGoogleStuff is a
function to add the google layer.
 mapWidget.registerForEvent(Fusion.Event.MAP_LOADED, addGoogleStuff);

3.  Finally, add the addGoogleStuff function.

var addGoogleStuff = function() {

    var mapWidget = Fusion.getWidgetById('Map');
    var map = mapWidget.oMapOL;
    mapWidget.fractionalZoom = false;   
    map.setOptions({fractionalZoom: false, numZoomLevels: 80});

    var googleStreetsLayer = new OpenLayers.Layer.Google('Google Streets',
{type : G_NORMAL_MAP, isBaseLayer: true, sphericalMercator: true});

give that a go.

View this message in context: http://osgeo-org.1803224.n2.nabble.com/mapguide-with-google-map-tp6227030p6227371.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

More information about the mapguide-users mailing list