[fusion-trac] #113: Can't zoom out beyond initial map view

Fusion trac_fusion at osgeo.org
Thu Sep 11 15:21:53 EDT 2008


#113: Can't zoom out beyond initial map view
----------------------+-----------------------------------------------------
 Reporter:  andrewd   |         Owner:  madair
     Type:  defect    |        Status:  new   
 Priority:  P2        |     Milestone:  1.1   
Component:  Core      |       Version:  SVN   
 Severity:  Critical  |    Resolution:        
 Keywords:            |   External_id:        
    State:  New       |       Browser:  All   
       Os:  All       |  
----------------------+-----------------------------------------------------
Comment (by madair):

 I think I see what the problem is: in that Application definition there is
 no <InitialView> element defined, it should look like so (for Sheboygan):

   <MapSet xsi:type="MapSetType">
     <MapGroup id="sheboygan" xsi:type="MapType">
 <!-- should be centered on intersection of Lower Fallss Rd and S.Taylor
 Dr. -->
       <InitialView xsi:type="MapViewType">
           <CenterX>-87.745061</CenterX>
           <CenterY>43.740283</CenterY>
           <Scale>8000</Scale>
       </InitialView>
       <Map xsi:type="MapGuideLayerType">
         <Type>MapGuide</Type>
         <SingleTile>true</SingleTile>
         <Extension>
 <ResourceId>Library://Samples/Sheboygan/Maps/Sheboygan.MapDefinition</ResourceId>
         </Extension>
       </Map>
     </MapGroup>

 - in ADSK Studio MapDefinition editor, the "initial view" box is really
 the max extent for the map and these extents are set as the map extent
 when the MapDefinition is loaded in Fusion from MapGuide.

 - in the Studio FlexibleLayouts editor, there is a "use custom view"
 option, filling this in sets an <InitialView> element in your AppDef, and
 then you get the map initially zoomed in, but the MaxExtents remain as set
 for the MapDefinition

 You can also set the initial extent in the URL:
 http://localhost:8008/mapguide/fusionOSGeo3/templates/mapguide/standard/?extent=-87.74740689295285,43.738716694573526,-87.74271510704716,43.74184930542647

-- 
Ticket URL: <http://trac.osgeo.org/fusion/ticket/113#comment:6>
Fusion <http://trac.osgeo.org/fusion>
Fusion is a web-mapping application development framework for MapServer and MapGuide OS.


More information about the fusion-trac mailing list