Changes between Initial Version and Version 1 of MapGuideRfc88


Ignore:
Timestamp:
03/21/10 22:50:24 (15 years ago)
Author:
jng
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MapGuideRfc88

    v1 v1  
     1
     2= !MapGuide RFC #88 - AJAX Viewer support for custom initial view =
     3
     4This page contains an change request (RFC) for the !MapGuide Open Source project.
     5More !MapGuide RFCs can be found on the [wiki:MapGuideRfcs RFCs] page.
     6
     7
     8== Status ==
     9
     10||RFC Template Version||(1.0)||
     11||Submission Date||22 March 2010||
     12||Last Modified||Jackie Ng [[Timestamp]]||
     13||Author||Jackie Ng||
     14||RFC Status||draft||
     15||Implementation Status||(pending, under development, completed)||
     16||Proposed Milestone||2.2||
     17||Assigned PSC guide(s)||(when determined)||
     18||'''Voting History'''||(vote date)||
     19||+1||||
     20||+0||||
     21||-0||||
     22||-1||||
     23||no vote|| ||
     24
     25== Overview ==
     26
     27This proposal is to extend the AJAX viewer to support a custom initial view, by simply passing additonal parameters to the Viewer URL.
     28
     29== Motivation ==
     30
     31There 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.
     32
     33== Proposed Solution ==
     34
     35Modify the AJAX viewer (all 3 languages) to accept the following 3 optional request parameters:
     36
     37 * X: Specifies the X-coordinate of the custom view center.
     38 * Y: Specifies the Y-coordinate of the custom view center.
     39 * SCALE: Specifies the custom scale of the initial view.
     40
     41If any of these parameters are specified, they will be used instead of the values specified in the Web Layout document.
     42
     43Though the 3 parameters are optional, restrictions will be placed on how the viewer will accept these parameters:
     44
     45 * If the X parameter is specified but the Y parameter isn't, the X parameter is ignored. Same applies vice versa. The web layout X/Y values are used instead.
     46 * The SCALE parameter can be specified without the X and Y parameters. The X and Y coordinates from the web layout will be used instead.
     47 * X and Y parameters can be specified without the SCALE parameter. The scale from the web layout will be used instead.
     48
     49== Implications ==
     50
     51This is a client-side modification. No schema changes are required. No existing APIs are affected. No new APIs are added.
     52
     53== Test Plan ==
     54
     55Verify all possible permutations of the 3 view parameters for all 3 viewers:
     56
     57 * Custom X and Y will start the map at the specified point at the default scale.
     58 * Custom Scale will start the map at the default point at the specified scale.
     59 * Custom X, Y and Scale will start the map at the specified point and scale.
     60 * Any other illegal combinations are ignored and will use the default web layout values.
     61
     62== Funding/Resources ==
     63
     64Community