loading table of contents...

8.5.2. Open Street Map Integration

The Open Street Map project creates and distributes free geographic data. CoreMedia Blueprint is prepared to include the project to display the location of location based taxonomies, but map integration are not included in the default templates.

Example for a Open Street Map integration in a website

Figure 8.27. Example for a Open Street Map integration in a website


In order to use Open Street Map on your site, you have to create a settings document and link it to the root channel of your site. The JavaScript for Open Street Map will be loaded using an aspect that is only enabled if the corresponding settings property is set. The available settings for Open Street Map are shown in the table below and must be configured to enable the map in the CAE. A template renders a map segment according to geographic coordinates stored in the string property latitudeLongitude of a linked location content, and pinpoints the matching location with a marker image (see CMTeasable.map.jsp for a usage example).

SettingStruct TypeMandatoryDescription
detail.show.mapBoolean PropertynotIf true, the Open Street Map aspect will be enabled.
map.zoomInt PropertynoThe map zoom factor to use.

Table 8.13. Settings for Open Street Map Integration