The WGoogleMap widget displays a google map. It implements a Wt wrapper around the Google Maps functionality.
This widget uses the online Google Maps server to display a map. It exposes a part of the google maps API; both version 2 and version 3 are supported. The version 2 API is used by default, to enable the version 3 API, use the constructor's version argument.
To use the map on a public server you will need to obtain a key. The widget will look for this key as the configuration property google_api_key. If this configuration property has not been set, it will use a key that is suitable for localhost.
The WGoogleMap widget displays a google map. It implements a Wt wrapper around the Google Maps functionality. The following example demonstrates multiple controls and shows a polyline representing a road description from the Emweb office to the old market of Leuven. We also added a marker to Koen's favourite bar!