Google Maps Web Pages
|Top Previous Next|
MPSuperShape can export some or all of the shapes to a web page that uses Microsoft Bing Maps or Google Maps. With Google Maps selected, the Export Options dialog box will look like this:
MPSuperShape currently write HTML code that uses the Google Maps v3 API. This requires the user to have a Google Maps API Identifier. This can be obtained from the following website, for free:
The real identifier is much longer than the one in the above dialog box image. It is strongly recommended that you cut & paste the identifier, and not to try and type it in manually. MPSuperShape simply inserts this identifier text into the resulting HTML, and does not attempt to verify it. Therefore you could use a variable identifier that is recognized by your web server. This may be easier to maintain in a production environment.
MPSuperShape has the option to write the Google Maps map as either a full web page or as a page fragment. The full web page option is useful for testing because it produces a complete web page. The fragment web page produces a text fragment of HTML that can be included within the <body> tag of a HTML page. This is probably more useful in a production environment where a larger page is set to automatically include the fragment (e.g. using SSI or a PHP include). This allows the map to be updated by only updating the fragment, and not the entire page.
The Alpha slider will be displayed. Google Maps shapes can have their alpha (opacity) set. MapPoint does not support partial alpha, so MPSuperShape lets you set the alpha for all shapes that are exported. Alpha is useful because you can give a shape partial transparency. This lets you view the shape as an overlay, in addition to the map that is covered by the shape. You can set the alpha anywhere between 0% (fully transparent) to 100% (fully opaque).
Below the Alpha slider, the All Shapes are: Closed / Open option is displayed. MapPoint has a bug which means it is impossible to determine if a freeform shape is an open line or a closed polygon. This option lets you specify whether all freeform shapes are written as closed polygons, or open lines. The default is Closed (polygons) as these are the shape types that MPSuperShape was originally designed for.
Google Maps only works with geographic coordinates using the WGS84, so this is the only Coordinate System option enabled.