Is this really the version you are looking for? Kentico Xperience 10 Documentation is no longer updated. Use the switcher in the header to choose your product version.
Kentico offers two ways of displaying dynamic maps on a page:
Either of these can use the Google maps or Bing maps service.
Requirement for Bing Maps
To use Bing Maps, you need to apply hotfix 10.0.27 (opens in a new tab) or newer.
Page-related maps allow you to display multiple predefined places on a map. The places that the map displays are loaded from pages that you specify. The usual example is a list of pages, each representing a different company office. By default, the CMS.Office page type can be used for this purpose, but any page type with fields specifying a geographical location will do. The web part (Google maps web part or Bing maps web part) then loads the geographical coordinates off of these pages and displays them on the map.
The process consists of two steps:
The pages from which you can display data on a map need to have fields that represent a geographical location. These pages need to have either of these:
You can use the predefined CMS.Office page type to load data onto a map. You can also use the page type as a reference when creating your own page types.
In the Pages application,navigate to the page on which you want to display the map.
Switch to the Design tab.
Place the Google maps or the Bing maps web part on the page. The web part properties dialog opens.
Specify the Path to the pages from which you want the map to load data.
Select the Page types that you want the map to load. For example, CMS.Office.
Load: a. a human-readable address onto the map
If you want the map to use a human-readable address, specify the Field name that the Page types use for location in the Location field property. For example, OfficeAddress in the CMS.Office page type loads the first address line. You can also specify multiple field names separated by semicolons, for example, OfficeAddress;OfficeCity, if the whole address is divided into more than one field.
—OR—
b. coordinates onto the map
If you want the map to use coordinates, specify the Field names that the Page types use for longitude and latitude in the Longitude field and Latitude field properties. For example, OfficeLatitude and OfficeLongitude in the CMS.Office page type.
Fill in either the Default l****ocation or address or the Default****Latitude and Default****Longitude fields. These fields represent the map's initial view location.
Specify the rest of the web part properties, especially in the Transformation, Content, and Map properties categories. Hover over a property to see its description.
Click OK.
The page now displays a map with markers at the locations retrieved from the page fields you specified. For example:
Data source maps allow you to display multiple places on a map. The places that the map displays are loaded from a predefined data source web part. The usual example is a Page data source web part, which the map uses to load data from a list of pages. Each of the pages can represent a different company office, for example. By default, the CMS.Office page type can be used for this purpose, but any page type with fields specifying a geographical location will do. The web part (Basic Google maps web part or Basic Bing maps web part) then loads the geographical coordinates off of these pages and displays them on the map.
The described process uses the Page data source web part.
The process consists of the following:
The pages from which you can display data on a map need to have fields that represent a geographical location. These pages need to have either of these:
You can use the predefined CMS.Office page type to load data from onto a map. You can also use the page type as a reference when creating your own page types.
You can now connect the data source to a map web part.
In the Pages application,navigate to the page on which you want to display the map.
Switch to the Design tab.
Place the Basic Google maps or the Basic Bing maps web part on the page. The web part properties dialog opens.
Enter the Data source name.
Load:
a. a human-readable address onto the map
If you want the map to use a human-readable address, specify the Field name that the Page types use for location in the Location field property. For example, OfficeAddress in the CMS.Office page type loads the first address line. You can also specify multiple field names separated by semicolons, for example, OfficeAddress;OfficeCity, if the whole address is divided into more than one field.
—OR—
b. coordinates onto the map
If you want the map to use coordinates, specify the Field names that the Page types use for longitude and latitude in the Longitude field and Latitude field properties. For example, OfficeLatitude and OfficeLongitude in the CMS.Office page type.
Fill in either the Default l****ocation or address or the Default****Latitude and Default****Longitude fields. These fields represent the map's initial view location.
Specify the rest of the web part properties, especially in the Transformation, Content, and Map properties categories. Hover over a property to see its description.
Click OK.
The page now displays a map with markers at the locations retrieved from the pages you specified in the Page data source web part. For example: