Map View Skin Settings
Map View Skin in the Modern Events Calendar is one of the most practical views. Your website visitors can get to know the event location and find those that are close to them at a glance. Or go for hotspots and the most attractive event sites.
Note: This skin is only available in the MEC Pro version.
Map View Skin Shortcode
Section titled “Map View Skin Shortcode”You can use shortcodes in your internal pages to have this on your website. The shortcodes are located in M.E. Calendar > Shortcodes. If you want to use “Geolocation,” you need to enable this feature:
Then, on the front end of the website, the end-user should be allowed access to the location on the browser. The geolocation feature works only on secure (https) websites.
Map View Layout
Section titled “Map View Layout”Here is the demo of Map View Skin in the Modern Events Calendar:
Map View Shortcode Options
Section titled “Map View Shortcode Options”These are the options you see in M.E. Calendar > Shortcodes after choosing the Map View skin. MEC Pro and some addons can add more styles and options.
| Option | What it does | Values |
|---|---|---|
| Start Date | The date the view starts showing events from. | Today / Tomorrow / Yesterday / Start of Last Month / Start of Current Month / Start of Next Month / On a certain date |
| Certain Start Date | The exact start date, used when Start Date is set to “On a certain date”. | Date |
| Maximum events | Maximum number of events shown on the map (default 200). | Number |
| Geolocation | Centers the map on the visitor’s location. | On / Off |
| Disable Geolocation Force Focus | Stops the map from forcing focus to the visitor’s location. Shown only when Geolocation is on. | On / Off |
Map View FAQ
Section titled “Map View FAQ”How do I add the Map View to a page?
Section titled “How do I add the Map View to a page?”Go to M.E. Calendar > Shortcodes, add a new shortcode, choose Map View as the skin, set the options above and publish it. Then copy the generated shortcode (for example [MEC id="123"]) into any page, post or widget.
How do I show only some events?
Section titled “How do I show only some events?”Open the Filter Options of the same shortcode and limit events by category, location, organizer, label, tag or author. See Making Advanced Shortcodes for every filter.
Why is the Map View empty or gray?
Section titled “Why is the Map View empty or gray?”The map needs a Google Maps API key and events with a location. Add your key in the Map section of the MEC settings (see Event Modules) and check MEC Not Working if it still does not load.