Changes between Version 9 and Version 10 of MapGuideRfc88
- Timestamp:
- 03/23/10 16:52:45 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MapGuideRfc88
v9 v10 12 12 ||Last Modified||Jackie Ng [[Timestamp]]|| 13 13 ||Author||Jackie Ng|| 14 ||RFC Status|| ready for review||14 ||RFC Status||draft|| 15 15 ||Implementation Status||pending|| 16 16 ||Proposed Milestone||2.2|| … … 29 29 == Motivation == 30 30 31 There have been many instances on the mapguide user mailing lists of the need to be able to load any given Web Layout with an initial view. Although code samples exist to show how this can be done. This is something that could be supported by the AJAX viewer out of the box, with some simple modifications. 31 There have been many instances on the mapguide user mailing lists (examples: [http://n2.nabble.com/Bypassing-initial-view-at-startup-td1817593.html 1], [http://n2.nabble.com/Dynamically-Setting-Initial-Map-Position-and-Scale-td1818865.html 2], [http://n2.nabble.com/Strating-the-Viewer-with-a-defined-scale-ceter-scale-from-a-link-td1815557.html 3]) of the need to be able to load any given Web Layout with an initial view. 32 33 Although [http://trac.osgeo.org/mapguide/wiki/CodeSamples/PHP/InitialMapView code samples exist] to show how this can be done. This is something that could be supported by the AJAX viewer out of the box, with some simple modifications. 32 34 33 35 == Proposed Solution == … … 41 43 42 44 If any of these parameters are specified, they will be used instead of the values specified in the Web Layout document. 45 46 The ultimate effect (and aim of the RFC) is that instead of having to specify the custom point/scale in the web layout document, it can be specified at runtime by passing these values to the AJAX viewer URL as request parameters. 43 47 44 48 Though the 4 parameters are optional, restrictions will be placed on how the viewer will accept these parameters: … … 59 63 This is a client-side modification. No schema changes are required. No existing APIs are affected. No new APIs are added. 60 64 65 This affects the "Initial View and Scale" command. Invoking this command will use the overridden position/scale values if specified. 66 61 67 == Test Plan == 62 68 … … 72 78 73 79 Community 80 81 == References == 82 83 * [http://trac.osgeo.org/mapguide/wiki/CodeSamples/PHP/InitialMapView A PHP code sample demonstrating the current technique of custom initial view]