Microsoft Sharepoint Web Parts
Google Map Sharepoint Web Part
Installation Instructions:
- download the Google Map Web Part Installation Instructions (PDF file, see above)
- either install the web part manually or deploy the feature to your server/farm as described in the instructions.
Manual Installation:
Please note that you will have to deploy the web part into the GAC if you do not use "Interactive Mode" (see configuration settings below) in combination with Address Geocoding lookup, since in this case the web part calls the Google Geocoding web service to resolve the address. This requires either a "Full" trust setting (not recommended) or GAC deployment.
- If you want to connect the Map Web Part to a Sharepoint List, either adapt an existing Sharepoint List or create a new List to store the data to be mapped. Also optionally define a suitable List View for the List if you want to sort or filter the data in a specific way.
The list should include
- either one or more columns to hold the street address to be mapped.
- or the two columns explicitely named "Latitude" and "Longitude" holding the latitude/longitude coordinates.
Please make sure to set the List column type for both the "Latitude" and "Longitude" columns to "Number"
Create a Web Part Connection between the Sharepoint List and the Google Map web part as follows:
- switch the page to "Edit" mode
- Choose "Connections" from the List Web Part "edit" menu
- Choose "Provide Row To"
- Select the Google Map Web Part in the menu
- Configure the following Web Part properties in the Web Part Editor "Miscellaneous" pane section as needed:
- Address:
If you want to use the web part stand-alone (eg. without a connection to a Sharepoint List), enter the street address of location to be displayed. The address should be sufficiently detailed to allow a correct lookup via the Google Geocoding service.
If the web part is connected to a Sharepoint List, please enter the list column names to be used for the dynamic lookup. Separate each column by a comma.
KML: You can alternatively enter the URL of a KML file (containing one or more placemarks). The URL can be entered as an absolute URL (http://yourserver/somesite/yourfile.kml") or as a relative URL ("/site/Library/yourfile.kml") if you want to refer to a KML file stored in a local Sharepoint Document Library.
- Longitude/Latitude: If you use the web part stand-alone, you can alternatively specify the latitude and longitude values instead of the Street Address. In this case, no Google API Key needs to be given (see below). Enter the values with up to six decimal places. The value for a desired location can be looked up via http://maps.google.com
You can also interactively look up Latitude/Longitude vales on the Google Maps Lat/Lon Lookup page.
- Map width: Enter the desired map width in pixels. A value less or equal to "100" will be interpreted as a percentage.
- Map height: Enter the desired map height in pixels.
- Zoom Level: enter the desired Zoom Level as follows:
- enter a value between 0 (min zoom) and 19 (max zoom)
- Interactive Map: either display the map as a static image (no user interaction with the map) or as a dynamic Google map (allows interactive panning and zooming). The interactive mode requires a valid Google API key (see below).
- Display Traffic Information: add traffic information to the map (if available, Google currently provides this service only for selected cities). Please note that "Interactive Map" needs to be enabled for this option to work.
- Hide Web Part when using SSL: hides the Google Map Web Part if the user visits the page using https (SSL).
- Center Map: this option allows to horizontally center (or left-align) the map within the web part area.
- Show "Directions" Link: displays a link at the bottom of the web part that allows to open Google Maps (preset to get directions to the selected location) in a new browser window.
- Map Type: specify one of the following map types:
- Roadmap - Satellite - Terrain - Hybrid
- Field Template: optionally enter each List column (enclosed in curly braces) that you want to display at the top of the map. You can embed HTML tags as needed to format the text.
Example: <strong>{Title}</strong><br/>{Description}
- Google API Key: you need to enter a valid Google API key (or your Google Maps Premier client ID if present) which can be generated by visiting https://developers.google.com/maps/documentation/embed/get-api-key
You can also specify the Google API key on an application-wide basis by adding the following line to the AppSettings section of your web.config file:
<appSettings> . . <add value="yourAPIkey" key="AE_GoogleAPIKey" /> </appSettings>
- License Key: enter your Product License Key (as supplied after purchase of the "Google Map Web Part" license key).
Leave this field empty if you are using the free 30 day evaluation version.
|
|
Technical Support Contact Information
If you find that you cannot resolve an issue using the above tools, our Technical Support staff will be ready to handle your technical support needs. You can reach our staff by phone or by email.
Phone: +41 (0)62 823 75 75 (9am - 5pm GMT)
Fax : +41 (0)62 823 75 74
Email: [email protected]
© 2025 AMREIN ENGINEERING AG