Menu

#624 Map Module

Parent Category:
DPCalendar
Category:
Modules
Last Updated:
Allon Moritz, Wednesday, 14 September 2022 08:50
Created:
Friday, 14 September 2012 22:23
Hits:
6021

Introduction

The Map module shows a map of upcoming events for the selected calendars in the configuration. Users are able to search events in a certain radius for a specific location. Regular content search is also provided and even searching within a specific timeframe.

In the module settings you can control which initial search criteria should be taken for the radius and length type. The current location button asks for permission to request the current location of the visitor and will then search events near her/him.

Beside the search criteria, there are a lot of options to control the behavior of the map. The options are described in the chapter below.

Map module

Filters

In the map module the admin can set filtering for an author, then only events of a given user are shown within the calendar. There is a special "My" option available which displays only events of the current logged in user.

Initial date values

In the advanced parameters the admin can set some initial date values for the start and end date form field of the module.

Options

Select calendar [Type: Dpcalendar]
The calendars which should be pre selected. All subcalendars will be included as well also when deselected.
Expand Events [Type: Radio] [Default: Yes]
Show the instances of a series or only the original event.
The following options are available:
  1. Yes
  2. No
Include Ongoing Events [Type: Radio] [Default: No]
Should ongoing events be included.
The following options are available:
  1. Yes
  2. No
Map Zoom [Type: Text] [Default: 4]
The initial zoom level of the map.
Map Width [Type: Text] [Default: 100%]
The width of the map.
Map Height [Type: Text] [Default: 300px]
The height of the map.
Radius [Type: List] [Default: 20]
Radius
The following options are available:
  1. 5
  2. 10
  3. 15
  4. 20
  5. 30
  6. 50
  7. 100
  8. 500
  9. 1000
  10. All
Length type [Type: List] [Default: Kilometre]
The length type of the radius.
The following options are available:
  1. Kilometre
  2. Mile
Map Mode [Type: List] [Default: Roadmap]
The map mode.
The following options are available:
  1. Roadmap
  2. Sattelite
  3. Hybrid
  4. Terrain
Map Latitude [Type: Text] [Default: 47]
The initial latitude of the map.
Map Longitude [Type: Text] [Default: 4]
The initial longitude of the map.
Date Format [Type: Text] [Default: d.m.Y]
The date format.
Open in popup [Type: Radio] [Default: No]
Should the events be opened as a modal popup.
The following options are available:
  1. Yes
  2. No
Filter Author [Type: Dpauthor] [Default: None]
Filters events by author. If my is set, then only events from the currently logged in user are shown.
The following options are available:
  1. My
  2. None
Show Search [Type: Radio] [Default: Yes]
Should the search bar be shown?
The following options are available:
  1. Yes
  2. No

Options

Date Start [Type: Text]
The start date, can be relative to now like '+1 day'. If you set 'start of day' then it will set the time to the beginning of the current day.
Date End [Type: Text]
The end date, can be relative to now like '+1 day'. If you set 'same day' then it will set the time to the end of the start day.
Layout [Type: Modulelayout]
Use a layout from the supplied module or overrides in the templates.
Module Class [Type: Text]
Custom CSS [Type: Textarea]
Custom CSS code which will be added to the HTML document.

Comments (0)

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.