Changes between Version 4 and Version 5 of MapGuideCommercialOverlays
- Timestamp:
- 05/01/09 10:13:19 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MapGuideCommercialOverlays
v4 v5 19 19 After submitting the request, you should get a sample script tag like this: 20 20 {{{ 21 21 22 <script src="http://maps.google.com/maps?file=api&v=2&sensor=false&key=<your key here>" type="text/javascript"></script> 23 22 24 }}} 23 25 … … 26 28 Microsoft's Virtual Earth service can be used by including this script tag: 27 29 {{{ 30 28 31 <script src='http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.1'></script> 32 29 33 }}} 30 34 … … 35 39 You should get a script tag that looks like 36 40 {{{ 41 37 42 <script src="http://api.maps.yahoo.com/ajaxymap?v=3.0&appid=<your key here>"></script> 43 38 44 }}} 39 45 … … 46 52 You can find the template's index.html file in 47 53 {{{ 54 48 55 <MapGuide Install Directory>/WebServerExtensions/www/fusion/templates/mapguide/standard/ 56 49 57 }}} 50 58 51 59 * Use a text editor to open the file and insert the script tag from the previous step right before the fusion tag: 52 60 {{{ 61 53 62 <script type="text/javascript" src="../../../lib/fusion.js"></script> 63 54 64 }}} 55 65 … … 61 71 * Double click on the new file to open it and then click on the button next to 'Coordinate System' to bring up the Select Coordinate System dialog. Click the 'Type WKT code' radio button and then paste in the following definition: 62 72 {{{ 73 63 74 PROJCS["Popular Visualisation CRS / Mercator",GEOGCS["Popular Visualisation CRS",DATUM["Popular_Visualisation_Datum",SPHEROID["Popular Visualisation Sphere",6378137,0,AUTHORITY["EPSG","7059"]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY["EPSG","6055"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4055"]],UNIT["metre",1,AUTHORITY["EPSG","9001"]],PROJECTION["Mercator_1SP"],PARAMETER["central_meridian",0],PARAMETER["scale_factor",1],PARAMETER["false_easting",0],PARAMETER["false_northing",0],AUTHORITY["EPSG","3785"],AXIS["X",EAST],AXIS["Y",NORTH]] 75 64 76 }}} 65 77 * Close the dialog box and then modify the Initial Map View coordinates so they make sense in the new projection: 66 78 67 79 {{{ 80 68 81 Lower left X: -9774168, Y: 5415995 69 }}} 70 {{{ 82 71 83 Upper right X: -9754637, Y: 5434757 84 72 85 }}} 73 86 If you need to determine coordinates for your own data sets, you can convert them online using [http://proj4js.org Proj4js]. Pick the 'GOOGLE' CRS from the 'dest' list, enter your coordinates and click transform. … … 79 92 * In the same folder as the index.html file, locate the !ApplicationDefinition.xml file and open it in your text editor. You may want to make a backup copy of the file with a different name. In the original file, replace the !MapSet tag contents with the following block: 80 93 {{{ 94 81 95 <MapGroup id="googleBase"> 82 96 <Map> … … 87 101 </Map> 88 102 </MapGroup> 103 89 104 }}} 90 105 … … 92 107 93 108 {{{ 109 94 110 G_NORMAL_MAP (default) : street map 95 111 G_PHYSICAL_MAP : terrain map 96 112 G_HYBRID_MAP : combined satellite and streets 97 113 G_SATELLITE_MAP : satellite map 114 98 115 }}} 99 116 … … 101 118 i.e. 102 119 {{{ 120 103 121 <Map> 104 122 <Type>Google</Type> … … 110 128 </Extension> 111 129 </Map> 130 112 131 }}} 113 132 … … 115 134 116 135 {{{ 136 117 137 <Map> 118 138 <Type>MapGuide</Type> … … 125 145 </Extension> 126 146 </Map> 147 127 148 }}} 128 149 … … 134 155 135 156 {{{ 157 136 158 <Map xsi:type="WMSLayerType"> 137 159 <Type>VirtualEarth</Type> … … 140 162 </Extension> 141 163 </Map> 164 142 165 }}} 166 143 167 for Virtual Earth or 168 144 169 {{{ 170 145 171 <Map xsi:type="WMSLayerType"> 146 172 <Type>Yahoo</Type> … … 149 175 </Extension> 150 176 </Map> 177 151 178 }}} 152 179 for Yahoo.