Changes between Version 19 and Version 20 of HttpApi/RenderingService
- Timestamp:
- 04/28/10 06:05:18 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
HttpApi/RenderingService
v19 v20 27 27 || [#MapName1.0 MAPNAME] || text || Yes || Name of the map to display.[[BR]]This corresponds to the !GetName() value for the resource identifier. || 28 28 || [#Format1.0 FORMAT] || JPG/PNG/PNG8 || Yes || Image format for rendered image || 29 || [#Selection1.0 SELECTION] || XML selection text || Optional || XML representing selected features generated from !MgSelection.!ToXml() ||30 29 || [#SelectionColor2.0 SELECTIONCOLOR] || RGBA hex color || Yes || Selection color encoded in hexadecimal RGBA format 0xRRGGBBAA. || 31 30 || [#Behavior2.0 BEHAVIOR] || bitmask || Yes || Bitmask representing rendering behavior. See below for more details.|| … … 45 44 "!MapGuide Developer" and "!MapGuide Maestro". 46 45 ==== SETVIEWCENTERX Parameter ==== #SetViewCenterX2.1 46 Sets the X coordinate for the center of the map. The coordinate is given in map coordinate system units. 47 47 ==== SETVIEWCENTERY Parameter ==== #SetViewCenterY2.1 48 Sets the Y coordinate for the center of the map. The coordinate is given in map coordinate system units. 48 49 ==== SETVIEWSCALE Parameter ==== #SetViewScale2.1 50 Sets the currently viewed scale for the map. This number should be greater than zero. 49 51 ==== SETDISPLAYDPI Parameter ==== #SetDisplayDpi2.1 52 Sets the display resolution for the screen. Typically 96 or 120 DPI. 50 53 ==== SETDISPLAYWIDTH Parameter ==== #SetDisplayWidth2.1 54 Sets the width of the resulting image in pixels. 51 55 ==== SETDISPLAYHEIGHT Parameter ==== #SetDisplayHeight2.1 56 Sets the height of the resulting image in pixels. 52 57 ==== SHOWLAYERS Parameter ==== #ShowLayers2.1 58 Comma separated list of the MgLayer::!GetObjectId() values for layers to show. Previously shown 59 layers will continue to be shown. 53 60 ==== HIDELAYERS Parameter ==== #HideLayers2.1 61 Comma separated list of the MgLayer::!GetObjectId() values for layers to hide. Previously hidden 62 layers will remain hidden. 54 63 ==== SHOWGROUPS Parameter ==== #ShowGroups2.1 64 Comma separated list of the MgGroup::!GetObjectId() values for groups to show. Previously shown 65 groups will continue to be shown. Layers within the groups will retain their current hide/show status. 55 66 ==== HIDEGROUPS Parameter ==== #HideGroups2.1 67 Comma separated list of the MgGroup::!GetObjectId() values for groups to hide. Previously hidden 68 groups will remain hidden. Layers within the groups will retain their current hide/show status. 56 69 === Usage === 70 {{{ 71 http://localhost/mapguide/mapagent.fcgi?OPERATION=GETDYNAMICMAPOVERLAYIMAGE 72 &VERSION=2.1.0 73 &SESSION=Session:d5d05422-5f75-102c-8000-02004c4f4f50_en_7F0000010AFC0AFB0AFA 74 &MAPNAME=WorldElevation 75 &FORMAT=PNG8 76 &BEHAVIOR=7 77 &SELECTIONCOLOR=0xFF000080 78 &SETVIEWCENTERX=-114.0 79 &SETVIEWCENTERY=51.0 80 &SETVIEWSCALE=50000 81 &SETDISPLAYHEIGHT=500 82 &SETDISPLAYWIDTH=500 83 &SHOWLAYERS=d5d01111-5f75-102c-8000-02004c4f4f50,d5d01118-5f75-102c-8000-02004c4f4f50 84 }}} 85 Sets center of map to (-114,51) and scale to 1:50000. Turns on layers d5d01111 and d5d01118. The visible layers and any selection are then rendered as a 500 by 500 eight bit PNG image. The selection is drawn in partially transparent red. 57 86 === Technical Notes === 58 87 == !GetMapImage == … … 88 117 || [#Format1.0 FORMAT] || JPG/PNG/PNG8 || Yes || Image format for rendered image || 89 118 || [#Behavior2.0 BEHAVIOR] || bitmask || Yes || Bitmask representing rendering behavior. See below for more details.|| 90 || [#Selection1.0 SELECTION] || XML selection text || Optional || XML representing selected features generated from !MgSelection.!ToXml() ||91 119 || [#SelectionColor2.0 SELECTIONCOLOR] || RGBA hex color || Yes || Selection color encoded in hexadecimal RGBA format 0xRRGGBBAA. || 92 120 … … 107 135 Color for selected objects expressed in hexadecimal RGBA format 0xRRGGBBAA. 108 136 === Usage === 137 {{{ 138 http://localhost/mapguide/mapagent.fcgi?OPERATION=GETDYNAMICMAPOVERLAYIMAGE 139 &VERSION=2.0.0 140 &SESSION=Session:d5d05422-5f75-102c-8000-02004c4f4f50_en_7F0000010AFC0AFB0AFA 141 &MAPNAME=WorldElevation 142 &FORMAT=PNG 143 &BEHAVIOR=5 144 &SELECTIONCOLOR=0xFF000080 145 }}} 146 Renders the selection regardless of current scale for the !WorldElevation map from session Session:d5d05422-5f75-102c-8000-02004c4f4f50_en_7F0000010AFC0AFB0AFA 147 as a 32 bit PNG image. The selection is drawn in partially transparent red. 109 148 === Technical Notes === 110 149 … … 120 159 || [#MapName1.0 MAPNAME] || text || Yes || Name of the map to display.[[BR]]This corresponds to the !GetName() value for the resource identifier. || 121 160 || [#Format1.0 FORMAT] || JPG/PNG || Yes || Image format for rendered image || 122 || [#Selection1.0 SELECTION] || XML selection text || Optional || XML representing selected features generated from !MgSelection.!ToXml() ||123 161 || [#KeepSelection1.0 KEEPSELECTION] || 0/1 || Optional || If true, render selected feature(s) even if they are outside the current scale. || 124 162 … … 136 174 * "PNG" for 32 bit PNG 137 175 * "PNG8" for 8 bit PNG '''Note: This was added in !MapGuide 2.0.''' 138 ==== SELECTION Parameter ==== #Selection1.0139 176 ==== KEEPSELECTION Parameter ==== #KeepSelection1.0 140 177 Determines whether the selection is visible outside of the scale range for the selected feature(s). If "1", the selection will be visible even