Changes between Version 6 and Version 7 of MapGuideCommercialOverlays


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

--

Legend:

Unmodified
Added
Removed
Modified
  • MapGuideCommercialOverlays

    v6 v7  
    1919After submitting the request, you should get a sample script tag like this:
    2020{{{
     21<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=false&amp;key=<your key here>" type="text/javascript"></script>
    2122
    22 <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=false&amp;key=<your key here>" type="text/javascript"></script>
    2323}}}
    2424
     
    2727Microsoft's Virtual Earth service can be used by including this script tag:
    2828{{{
     29<script src='http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.1'></script>
    2930
    30 <script src='http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.1'></script>
    3131}}}
    3232
     
    3737You should get a script tag that looks like
    3838{{{
     39<script src="http://api.maps.yahoo.com/ajaxymap?v=3.0&appid=<your key here>"></script>
    3940
    40 <script src="http://api.maps.yahoo.com/ajaxymap?v=3.0&appid=<your key here>"></script>
    4141}}}
    4242
     
    4949You can find the template's index.html file in
    5050{{{
     51<MapGuide Install Directory>/WebServerExtensions/www/fusion/templates/mapguide/standard/
    5152
    52 <MapGuide Install Directory>/WebServerExtensions/www/fusion/templates/mapguide/standard/
    5353}}}
    5454
    5555 * Use a text editor to open the file and insert the script tag from the previous step right before the fusion tag:
    5656{{{
     57<script type="text/javascript" src="../../../lib/fusion.js"></script>
    5758
    58 <script type="text/javascript" src="../../../lib/fusion.js"></script>
    5959}}}
    6060
     
    6666 * 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:
    6767{{{
     68PROJCS["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]]
    6869
    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]]
    7070}}}
    7171
     
    7373
    7474{{{
    75 
    7675Lower left X: -9774168, Y: 5415995
    7776
    7877Upper right X: -9754637, Y: 5434757
     78
    7979}}}
    8080If 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.
     
    8686 * 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:
    8787{{{
    88 
    8988<MapGroup id="googleBase">
    9089    <Map>
     
    9594    </Map>
    9695</MapGroup>
     96
    9797}}}
    9898
     
    100100
    101101{{{
    102 
    103102G_NORMAL_MAP (default) : street map
    104103G_PHYSICAL_MAP : terrain map
    105104G_HYBRID_MAP : combined satellite and streets
    106105G_SATELLITE_MAP : satellite map
     106
    107107}}}
    108108
     
    110110i.e.
    111111{{{
    112 
    113112    <Map>
    114113         <Type>Google</Type>
     
    120119         </Extension>
    121120    </Map>
     121
    122122}}}
    123123
     
    125125
    126126{{{
    127 
    128127    <Map>
    129128         <Type>MapGuide</Type>
     
    136135         </Extension>
    137136    </Map>
     137
    138138}}}
    139139
     
    145145
    146146{{{
    147 
    148147      <Map xsi:type="WMSLayerType">
    149148        <Type>VirtualEarth</Type>
     
    152151        </Extension>
    153152      </Map>
     153
    154154}}}
    155155
     
    157157
    158158{{{
    159 
    160159      <Map xsi:type="WMSLayerType">
    161160        <Type>Yahoo</Type>
     
    164163        </Extension>
    165164      </Map>
     165
    166166}}}
    167167for Yahoo.