Changes between Version 6 and Version 7 of MapGuideCommercialOverlays
- Timestamp:
- May 1, 2009, 10:18:03 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MapGuideCommercialOverlays
v6 v7 19 19 After submitting the request, you should get a sample script tag like this: 20 20 {{{ 21 <script src="http://maps.google.com/maps?file=api&v=2&sensor=false&key=<your key here>" type="text/javascript"></script> 21 22 22 <script src="http://maps.google.com/maps?file=api&v=2&sensor=false&key=<your key here>" type="text/javascript"></script>23 23 }}} 24 24 … … 27 27 Microsoft's Virtual Earth service can be used by including this script tag: 28 28 {{{ 29 <script src='http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.1'></script> 29 30 30 <script src='http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.1'></script>31 31 }}} 32 32 … … 37 37 You should get a script tag that looks like 38 38 {{{ 39 <script src="http://api.maps.yahoo.com/ajaxymap?v=3.0&appid=<your key here>"></script> 39 40 40 <script src="http://api.maps.yahoo.com/ajaxymap?v=3.0&appid=<your key here>"></script>41 41 }}} 42 42 … … 49 49 You can find the template's index.html file in 50 50 {{{ 51 <MapGuide Install Directory>/WebServerExtensions/www/fusion/templates/mapguide/standard/ 51 52 52 <MapGuide Install Directory>/WebServerExtensions/www/fusion/templates/mapguide/standard/53 53 }}} 54 54 55 55 * Use a text editor to open the file and insert the script tag from the previous step right before the fusion tag: 56 56 {{{ 57 <script type="text/javascript" src="../../../lib/fusion.js"></script> 57 58 58 <script type="text/javascript" src="../../../lib/fusion.js"></script>59 59 }}} 60 60 … … 66 66 * 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: 67 67 {{{ 68 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]] 68 69 69 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]]70 70 }}} 71 71 … … 73 73 74 74 {{{ 75 76 75 Lower left X: -9774168, Y: 5415995 77 76 78 77 Upper right X: -9754637, Y: 5434757 78 79 79 }}} 80 80 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. … … 86 86 * 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: 87 87 {{{ 88 89 88 <MapGroup id="googleBase"> 90 89 <Map> … … 95 94 </Map> 96 95 </MapGroup> 96 97 97 }}} 98 98 … … 100 100 101 101 {{{ 102 103 102 G_NORMAL_MAP (default) : street map 104 103 G_PHYSICAL_MAP : terrain map 105 104 G_HYBRID_MAP : combined satellite and streets 106 105 G_SATELLITE_MAP : satellite map 106 107 107 }}} 108 108 … … 110 110 i.e. 111 111 {{{ 112 113 112 <Map> 114 113 <Type>Google</Type> … … 120 119 </Extension> 121 120 </Map> 121 122 122 }}} 123 123 … … 125 125 126 126 {{{ 127 128 127 <Map> 129 128 <Type>MapGuide</Type> … … 136 135 </Extension> 137 136 </Map> 137 138 138 }}} 139 139 … … 145 145 146 146 {{{ 147 148 147 <Map xsi:type="WMSLayerType"> 149 148 <Type>VirtualEarth</Type> … … 152 151 </Extension> 153 152 </Map> 153 154 154 }}} 155 155 … … 157 157 158 158 {{{ 159 160 159 <Map xsi:type="WMSLayerType"> 161 160 <Type>Yahoo</Type> … … 164 163 </Extension> 165 164 </Map> 165 166 166 }}} 167 167 for Yahoo.