Changes between Version 4 and Version 5 of MapGuideRfc88


Ignore:
Timestamp:
03/22/10 16:46:09 (15 years ago)
Author:
jng
Comment:

updated to consider BBOX

Legend:

Unmodified
Added
Removed
Modified
  • MapGuideRfc88

    v4 v5  
    3333== Proposed Solution ==
    3434
    35 Modify the AJAX viewer (all 3 languages) to accept the following 3 optional request parameters:
     35Modify the AJAX viewer (all 3 languages) to accept the following 4 optional request parameters:
    3636
    3737 * X: Specifies the X-coordinate of the custom view center.
    3838 * Y: Specifies the Y-coordinate of the custom view center.
    3939 * SCALE: Specifies the custom scale of the initial view.
     40 * BBOX: Specifies the initial custom view as a set of bounding box coordinates (<xmin>,<ymin>,<xmax>,<ymax>)
    4041
    4142If any of these parameters are specified, they will be used instead of the values specified in the Web Layout document.
    4243
    43 Though the 3 parameters are optional, restrictions will be placed on how the viewer will accept these parameters:
     44Though the 4 parameters are optional, restrictions will be placed on how the viewer will accept these parameters:
    4445
    4546 * 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.
    4647 * 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.
    4748 * X and Y parameters can be specified without the SCALE parameter. The scale from the web layout will be used instead.
     49 * BBOX is mutually exclusive to the other parameters. The BBOX parameter has precedence over the other parameters. If for some reason BBOX is specified along with X, Y and SCALE, the BBOX parameter will be accepted and the others rejected.
     50 * If the BBOX parameter does not have the required number of coordinates, the default web layout settings are used.
    4851
    4952== Implications ==
     
    5861 * Custom Scale will start the map at the default point at the specified scale.
    5962 * Custom X, Y and Scale will start the map at the specified point and scale.
     63 * Custom BBOX will start the map at the specified extent, regardless of whether a custom X, Y or SCALE was passed in.
     64 * An invalid BBOX parameter will start the map using the default web layout values.
    6065 * Any other illegal combinations are ignored and will use the default web layout values.
    6166