Changes between Version 40 and Version 41 of HttpApi/RenderingService


Ignore:
Timestamp:
Apr 29, 2010, 1:07:27 PM (14 years ago)
Author:
trevorwekel
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HttpApi/RenderingService

    v40 v41  
    242242Sets center of map to (-114,51) and scale to 1:50000.  Turns on layers d5d01111 and d5d01118.  The visible layers are rendered as a 500 by 500 PNG image.  Any selection already defined by web extensions API calls will be drawn in blue regardless of scale.  Changes to center, scale and layer visibility are retained.  Features and labels will be clipped to the bounds of the image.
    243243=== Technical Notes ===
     244== !GetVisibleMapExtent ==#GetVisibleMapExtent2.0
     245=== Overview ===
     246Returns the visible map extent in map coordinate system units for the map specified by SESSION and MAPNAME.  !GetVisibleMapExtent in !MapGuide 2.0 is identical to [#GetVisibleMapExtent1.2 GetVisibleMapExtent in MapGuide 1.2] with the addition of a parameter to select either XML or JSON output for the result.  The XML output has the following form:
     247{{{
     248<?xml version=\"1.0\" encoding=\"UTF-8\"?>
     249<Envelope>
     250  <LowerLeftCoordinate>
     251    <X>10</X>
     252    <Y>10</Y>
     253  </LowerLeftCoordinate>
     254  <UpperRightCoordinate>
     255    <X>20</X>
     256    <Y>20</Y>
     257  </UpperRightCoordinate>
     258</Envelope>
     259}}}
     260And the JSON output has the following form:
     261{{{
     262}}}
     263=== Parameters ===
     264|| '''Name''' || '''Value'''  || '''Required''' || '''Description''' ||
     265|| [#Operation1.0 OPERATION] || GETVISIBLEMAPEXTENT || Yes || Operation to execute ||
     266|| [#Version1.0 VERSION] || 2.0.0 || Yes || Operation version ||
     267|| [#Session1.0 SESSION] || session identifier || Yes || !MapGuide session identifier containing map to display. ||
     268|| [#MapName1.0 MAPNAME] || text || Yes || Name of the map to display.[[BR]]This corresponds to the !GetName() value for the resource identifier. ||
     269|| [#SetViewCenterX1.0 SETVIEWCENTERX] || double || Optional || Set X coordinate for center of map. ||
     270|| [#SetViewCenterY1.0 SETVIEWCENTERY] || double || Optional || Set Y coordinate for center of map. ||
     271|| [#SetViewScale1.0 SETVIEWSCALE] || double || Optional || Set scale for map. ||
     272|| [#SetDisplayDpi1.0 SETDISPLAYDPI] || integer || Optional || Set DPI for map. ||
     273|| [#SetDisplayWidth1.0 SETDISPLAYWIDTH] || integer || Optional || Set width of image in pixels. ||
     274|| [#SetDisplayHeight1.0 SETDISPLAYHEIGHT] || integer || Optional || Set height of image in pixels. ||
     275|| [#ShowLayers1.0 SHOWLAYERS] || text || Optional || List of layers to display. ||
     276|| [#HideLayers1.0 HIDELAYERS] || text || Optional || List of layers to hide. ||
     277|| [#ShowGroups1.0 SHOWGROUPS] || text || Optional || List of groups to display. ||
     278|| [#HideGroups1.0 HIDEGROUPS] || text || Optional || List of groups to hide. ||
     279|| [#OutputFormat2.0 FORMAT] || text || Optional || Desired output format. ||
     280==== FORMAT Parameter ====#OutputFormat2.0
     281Selects the output format for the result:
     282 * "text/xml" - Output is given in XML format
     283 * "application/json" - Output is given in JSON format
     284=== Usage ===
     285{{{
     286http://localhost/mapguide/mapagent/mapagent.fcgi?OPERATION=GETVISIBLEMAPEXTENT
     287    &VERSION=1.0.0
     288    &SESSION=Session:d5d05422-5f75-102c-8000-02004c4f4f50_en_7F0000010AFC0AFB0AFA
     289    &MAPNAME=WorldElevation
     290    &SETVIEWCENTERX=-114.0
     291    &SETVIEWCENTERY=51.0
     292    &SETVIEWSCALE=50000
     293    &SETDISPLAYHEIGHT=500
     294    &SETDISPLAYWIDTH=500
     295    &FORMAT=application/json
     296}}}
     297Sets the center point of the !WorldElevation map to (-114,51) and the scale to 1:50000.  The visible map extent is returned as JSON.  The display height and width for a subsequent
     298[##GetDynamicMapOverlayImage1.2 GetDynamicMapOverlay] are set to 500 by 500.
    244299== !QueryMapFeatures ==#QueryMapFeatures2.0
    245300=== Overview ===
     
    389444== !GetVisibleMapExtent ==#GetVisibleMapExtent1.2
    390445=== Overview ===
    391 Returns the visible map extent for the map specified by SESSION and MAPNAME.  During the call, the map state can be modified by additional parameters such as SETVIEWCENTERX and SETVIEWSCALE. This API is typically called before [##GetDynamicMapOverlayImage1.2 GetDynamicMapOverlay] to set map state.  The returned XML document has the following format:
     446Returns the visible map extent in map coordinate system units for the map specified by SESSION and MAPNAME.  During the call, the map state can be modified by additional
     447parameters such as SETVIEWCENTERX and SETVIEWSCALE. This API is typically called before [##GetDynamicMapOverlayImage1.2 GetDynamicMapOverlay] to set map
     448state.  The returned XML document has the following format:
    392449{{{
    393450<?xml version=\"1.0\" encoding=\"UTF-8\"?>
     
    431488    &SETDISPLAYWIDTH=500
    432489}}}
    433 Sets the center point of the !WorldElevation map to (-114,51) and the scale to 1:50000.  The display height and width for a subsequent
     490Sets the center point of the !WorldElevation map to (-114,51) and the scale to 1:50000.  The visible map extent is returned as an XML document.  The display height and width for a subsequent
    434491[##GetDynamicMapOverlayImage1.2 GetDynamicMapOverlay] are set to 500 by 500.
    435492=== Technical Notes ===