Changes between Version 8 and Version 9 of MapGuideCommercialOverlays
- Timestamp:
- Jul 15, 2009, 1:34:30 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MapGuideCommercialOverlays
v8 v9 141 141 }}} 142 142 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. 145 144 {{{ 146 145 <Map> … … 150 149 <Options> 151 150 <isBaseLayer>false</isBaseLayer> 151 <useOverlay>true</useOverlay> 152 152 </Options> 153 153 <ResourceId>Library://Samples/Sheboygan/Maps/Sheboygan-m.MapDefinition</ResourceId> … … 157 157 }}} 158 158 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 160 pass other [http://openlayers.org/ OpenLayers] layer options in the Options tag. For example, <opacity>0.8</opacity> creates a semi-transparent appearance.'' 160 161 161 162 * Load the template in a browser: http://localhost:8008/mapguide/fusion/templates/mapguide/standard/ … … 186 187 for Yahoo. 187 188 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 188 201 ''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.''