Changes between Version 10 and Version 11 of MapGuideRfc38


Ignore:
Timestamp:
Oct 17, 2007, 12:57:03 PM (17 years ago)
Author:
trevorwekel
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MapGuideRfc38

    v10 v11  
    3131== Proposed Solution ==
    3232
    33 Add an additional parameter BEHAVIOR to the existing GETDYNAMICMAPOVERLAYIMAGE. Increase the VERSION to 2.0.0 and deprecate the existing KEEPSELECTION parameter for the new version of the API.  BEHAVIOR is a bitmask with the following values:
     33Add the parameter BEHAVIOR to the existing GETDYNAMICMAPOVERLAYIMAGE. Increase the VERSION to 2.0.0 and deprecate the existing KEEPSELECTION parameter for the new version of the API.  BEHAVIOR is a bitmask with the following values:
    3434
    3535{{{
    36   RenderSelection = 1
    37   RenderLayers = 2
    38   KeepSelection = 4
     36  RenderSelection = 1  // Renders the selected feature(s)
     37  RenderLayers = 2     // Renders the features on the map
     38  KeepSelection = 4    // Renders the selected feature(s) even if they are outside the current scale
    3939}}}
    4040
    41 Add an additional signature for !MgRenderingService.!RenderDynamicMapOverlay that includes the behavior parameter:
     41Examples:
     42* !RenderSelection | !RenderLayers will render selection and layers within the current scale
     43* !RenderSelection | !KeepSelection will render only the selection regardless of scale
     44
     45Add a SELECTIONCOLOR parameter to the existing GETDYNAMICMAPOVERLAYIMAGE.  The color may be specified as an integer or hex string.
     46
     47 
     48For the Web Extensions API add an additional signature for !MgRenderingService.!RenderDynamicMapOverlay that includes an !MgRenderingOptions class:
    4249
    4350{{{
    44   MgByteReader* RenderDynamicOverlay(MgMap* map, MgSelection* selection, CREFSTRING format, INT32 behavior);
     51  MgByteReader* RenderDynamicOverlay(MgMap* map, MgSelection* selection, MgRenderingOptions* options)
     52CREFSTRING format, INT32 behavior);
     53}}}
     54
     55!MgRenderingOptions will contain information on the image format, the behavior, and the selection color
     56
     57{{{
     58class MgRenderingOptions
     59{
     60  MgRenderingOptions(CREFSTRING format, INT32 behavior, MgColor* selectionColor);
     61  STRING GetImageFormat();
     62  INT32 GetBehavior();
     63  MgColor* GetSelectionColor();
     64}
    4565}}}
    4666