Changes between Version 4 and Version 5 of MapGuideCommercialOverlays


Ignore:
Timestamp:
May 1, 2009, 10:13:19 AM (15 years ago)
Author:
jbirch
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MapGuideCommercialOverlays

    v4 v5  
    1919After submitting the request, you should get a sample script tag like this:
    2020{{{
     21
    2122<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=false&amp;key=<your key here>" type="text/javascript"></script>
     23
    2224}}}
    2325
     
    2628Microsoft's Virtual Earth service can be used by including this script tag:
    2729{{{
     30
    2831<script src='http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.1'></script>
     32
    2933}}}
    3034
     
    3539You should get a script tag that looks like
    3640{{{
     41
    3742<script src="http://api.maps.yahoo.com/ajaxymap?v=3.0&appid=<your key here>"></script>
     43
    3844}}}
    3945
     
    4652You can find the template's index.html file in
    4753{{{
     54
    4855<MapGuide Install Directory>/WebServerExtensions/www/fusion/templates/mapguide/standard/
     56
    4957}}}
    5058
    5159 * Use a text editor to open the file and insert the script tag from the previous step right before the fusion tag:
    5260{{{
     61
    5362<script type="text/javascript" src="../../../lib/fusion.js"></script>
     63
    5464}}}
    5565
     
    6171 * 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:
    6272{{{
     73
    6374PROJCS["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
    6476}}}
    6577 * Close the dialog box and then modify the Initial Map View coordinates so they make sense in the new projection:
    6678
    6779{{{
     80
    6881Lower left X: -9774168, Y: 5415995
    69 }}}
    70 {{{
     82
    7183Upper right X: -9754637, Y: 5434757
     84
    7285}}}
    7386If 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.
     
    7992 * 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:
    8093{{{
     94
    8195<MapGroup id="googleBase">
    8296    <Map>
     
    87101    </Map>
    88102</MapGroup>
     103
    89104}}}
    90105
     
    92107
    93108{{{
     109
    94110G_NORMAL_MAP (default) : street map
    95111G_PHYSICAL_MAP : terrain map
    96112G_HYBRID_MAP : combined satellite and streets
    97113G_SATELLITE_MAP : satellite map
     114
    98115}}}
    99116
     
    101118i.e.
    102119{{{
     120
    103121    <Map>
    104122         <Type>Google</Type>
     
    110128         </Extension>
    111129    </Map>
     130
    112131}}}
    113132
     
    115134
    116135{{{
     136
    117137    <Map>
    118138         <Type>MapGuide</Type>
     
    125145         </Extension>
    126146    </Map>
     147
    127148}}}
    128149
     
    134155
    135156{{{
     157
    136158      <Map xsi:type="WMSLayerType">
    137159        <Type>VirtualEarth</Type>
     
    140162        </Extension>
    141163      </Map>
     164
    142165}}}
     166
    143167for Virtual Earth or
     168
    144169{{{
     170
    145171      <Map xsi:type="WMSLayerType">
    146172        <Type>Yahoo</Type>
     
    149175        </Extension>
    150176      </Map>
     177
    151178}}}
    152179for Yahoo.