[mapguide-users] Mapguide and Google Map

Zac Spitzer zac.spitzer at gmail.com
Fri May 14 03:49:11 EDT 2010


Install fire bug for Firefox check the console and net tabs for any errors
ie anything in red

On 14 May 2010 17:45, "Keffli Suliman" <macamsampah at gmail.com> wrote:

Can anyone help me to integrate Mapguide application and Google Map.

I already do the tutorial that be given in
http://trac.osgeo.org/fusion/wiki/MapGuideCommercialOverlays


*This is my example of index.html*

<script src="
http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=false&amp;key=ABQIAAAAZlqzxwccn_9YJirdM7MJ5hQz-J5LV6rASCxLYU1xMqKNc_nHIxRhCVA8TWsL8xB09n4ZK7zqaTcy8<http://maps.google.com/maps?file=api&v=2&sensor=false&key=ABQIAAAAZlqzxwccn_9YJirdM7MJ5hQz-J5LV6rASCxLYU1xMqKNc_nHIxRhCVA8TWsL8xB09n4ZK7zqaTcy8>"
type="text/javascript"></script>


<script type="text/javascript" src="../../../lib/fusion.js"></script>
<link rel="stylesheet" href="themes/delicious/jxtheme.css" type="text/css"
media="screen" charset="utf-8">
<link rel="stylesheet" href="icons.css" type="text/css" media="screen"
charset="utf-8">

<style type="text/css">
    #Statusbar .spanCursorPosition,
    #Statusbar .inputEditableScalePrefix,
    #Statusbar .inputEditableScale,
    #Statusbar .spanViewSize,
    #Statusbar .spanSelectionInfo {
        background-color: #fff;
        padding: 2px 4px;
        line-height: 18px;
        font-size: 11px;
        font-family: Arial, Helvetica, sans-serif;
    }


*This is my example of Application Definition.xm*l

<MapSet xsi:type="MapSetType">
      <MapGroup id="googleBase">
        <Map>
             <Type>Google</Type>
             <Extension>
              <ResourceId>google</ResourceId>
              <Options>
                   <type>G_SATELLITE_MAP</type>
              </Options>
             </Extension>
            </Map>
         <Map>
         <Type>MapGuide</Type>
         <SingleTile>true</SingleTile>
         <Extension>
              <Options>
                   <isBaseLayer>false</isBaseLayer>
                   <useOverlay>true</useOverlay>
                   <projection>EPSG:900913</projection>
              </Options>
              <ResourceId>Library://MBJB
Geoportal/Map/MBJBAdminMap_2.MapDefinition</ResourceId>
         </Extension>
    </Map>
    </MapGroup>

    <MapGroup id="sheboygan" xsi:type="MapType">
      <Map xsi:type="MapGuideLayerType">
        <Type>MapGuide</Type>
        <SingleTile>true</SingleTile>
        <Extension>

<ResourceId>Library://Samples/Sheboygan/Maps/Sheboygan.MapDefinition</ResourceId>
          <ImageFormat>PNG8</ImageFormat>
          <SelectionAsOverlay>true</SelectionAsOverlay>
          <SelectionFormat>PNG</SelectionFormat>
          <SelectionColor>0xFF0000FF</SelectionColor>
        </Extension>
      </Map>
    </MapGroup>


But when I open
http://localhost:8008/mapguide/fusion/templates/mapguide/standard/index.html,
its only appear blank page.

Can anyone know what my problems here and give me some advice how to solve
it?

Thanks for your help...

Sorry if my English not so good...

_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20100514/e0743964/attachment.html


More information about the mapguide-users mailing list