[mapguide-users] Fusion tiled and dynamic layers same map
Johann Nothbauer
johann.nothbauer at gmail.com
Wed Aug 26 11:43:37 EDT 2009
Hi!
As Fusion 2.0 is using OpenLayers as a base technology, I think the solution
would be to define two 'OpenLayers Layers'. An OpenLayers Mapguide-Layer is
defined by a Mapguide Mapdefinition. So you need to have two Mapdefinitions,
one with Tiled Layers only and one with Overlays only. Then you need to
manually edit the Mapgroup XML to look like something similar to this:
<MapSet>
<MapGroup id="bhmac_overview">
<Map>
<Type>MapGuide</Type>
<SingleTile>false</SingleTile>
<Extension>
<ResourceId>Library://MapWithBaseLayers.MapDefinition</ResourceId>
<SelectionAsOverlay>true</SelectionAsOverlay>
<SelectionColor>0x0000FFA0</SelectionColor>
<Options>
<isBaseLayer>true</isBaseLayer>
</Options>
</Extension>
</Map>
<Map>
<Type>MapGuide</Type>
<SingleTile>true</SingleTile>
<Extension>
<ResourceId>Library://MapWithoutBaseLayers.MapDefinition</ResourceId>
<SelectionAsOverlay>true</SelectionAsOverlay>
<SelectionColor>0x0000FFA0</SelectionColor>
<Options>
<isBaseLayer>false</isBaseLayer>
</Options>
</Extension>
</Map>
<Extension />
</MapGroup>
</MapSet>
This will work with the newest Version of Fusion (trunk in SVN).
I think neither Mapguide Studio nor Maestro "know" of the correct structure
for OpenLayers yet. Maybe this will be corrected in the future.
Good luck,
Nothi
2009/8/19 GreenMapSanMiguel <webmaster at smamap.com>
>
> Is it possible to display a mixture of tiled layers and non-tiled layers in
> Fusion 2.0? When I mix base and non-tiled layers in a single Map
> Definition:SingleTile "false" nothing is displayed in the map pane - just
> the background color legend displays correctly (but turning on layers
> doesn't make them appear) select and zoom work for all layers, the overlay
> highlight is displayedSingleTile "true" non-tiled layers are displayed in
> the map pane legend displays correctly and can turn layers on/off select
> and
> zoom fowk for all layers, the overlay highlight is displayedIf I use two
> Map
> Definitions, one for the tiled layers and one for the non-tiled layers, and
> include them both in the MapGroup then only the first map in the MapGroup
> displays in the map pane and legend. Select and zoom only works for layers
> in the first map.Does anyone know how to do this?Thanks! Andy
> --
> View this message in context:
> http://n2.nabble.com/Fusion-tiled-and-dynamic-layers-same-map-tp1815796p3473242.html
> Sent from the MapGuide Users mailing list archive at Nabble.com.
> _______________________________________________
> 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/20090826/ebd35c33/attachment.html
More information about the mapguide-users
mailing list