Changes between Version 8 and Version 9 of MapGuideCommercialOverlays


Ignore:
Timestamp:
Jul 15, 2009, 1:34:30 PM (13 years ago)
Author:
zjames
Comment:

Added information on InitialView and overlay transparency

Legend:

Unmodified
Added
Removed
Modified
  • MapGuideCommercialOverlays

    v8 v9  
    141141}}}
    142142
    143  * Add a second <Map> tag to your map group after the google <Map>. Take care that it remains within the <!MapGroup> tags.
    144 
     143 * Add a second <Map> tag to your map group after the google <Map>. Take care that it remains within the <!MapGroup> tags. The useOverlay tag makes the layer's background transparent so the base layer can be seen.
    145144{{{
    146145    <Map>
     
    150149              <Options>
    151150                   <isBaseLayer>false</isBaseLayer>
     151                   <useOverlay>true</useOverlay>
    152152              </Options>
    153153              <ResourceId>Library://Samples/Sheboygan/Maps/Sheboygan-m.MapDefinition</ResourceId>
     
    157157}}}
    158158
    159 '' Note that the Google layer must be the base layer so any overlays must have the isBaseLayer: false option set. ''
     159'' Note that the commercial layer must be the base layer so any overlays must have the isBaseLayer: false option set. You can also
     160pass other [http://openlayers.org/ OpenLayers] layer options in the Options tag. For example, <opacity>0.8</opacity> creates a semi-transparent appearance.''
    160161
    161162 * Load the template in a browser: http://localhost:8008/mapguide/fusion/templates/mapguide/standard/
     
    186187for Yahoo.
    187188
     189 * By default, the map will load with global extent (showing the entire world) because the commercial layer is the base layer. To specify a desired initial view, add an additional xml block to the [http://trac.osgeo.org/fusion/wiki/ApplicationDefinition/MapSet/MapGroup MapGroup] alongside the individual Map tags:
     190
     191{{{
     192      <InitialView>
     193          <MinX>-9774168</MinX>
     194          <MinY>5415995</MinY>
     195          <MaxX>-9754637</MaxX>
     196          <MaxY>5434757</MaxY>
     197      </InitialView>
     198
     199}}}
     200 
    188201''Support for these layer types is a new addition to Fusion 2.0 so you may encounter compatibility issues. Please help the project by reporting them to the fusion-dev mailing list or filing a bug in the fusion trac instance.''