WordPress Travel Map Plugin (CMMRM) - How To - Highlight Locations On Click


How To Highlight Locations On Click

Back to User Guides

Since the version 5.0.3 of the WordPress Travel Map plugin, you can let users highlight locations on the route page by clicking on them either on the map or in the list.

Front-end Example

Highlighting locations on the map by clicking on them in the list - WordPress Plugin Show Route
Highlighting locations on the map by clicking on them in the list

Settings

To enable this feature, navigate to Admin Dashboard â†’ CM Maps Route Manager Pro â†’ Settings → Route Page tab.

Route page settings tab - Route Display WordPress
Route page settings tab

Scroll down to the section Marker and turn on the option Enable highlight marker list on click, then save the changes.

Enabling hightlighting locations - Route Display Plugin
Enabling hightlighting locations

TIP

Don't forget to add locations to your route.

To do this, while creating a route click the button Add markers above the map, then add needed locations to the map. You can move them by dragging and dropping. Below the map you can change the name of each location and add a description.

You can also change other location details. Learn more: WordPress Travel Map Plugin (CMMRM) - Adding Route Locations Markers

Adding locations to the route - Travel Plugins For WordPress
Adding locations to the route

Front-end Example

Now the user will be able to highlight locations on the route page by clicking on them in the list or on the map.

Highlighting locations on the map by clicking on them in the list:

Highlighting locations on the map by clicking on them in the list - Travel Map Plugin
Highlighting locations on the map by clicking on them in the list

Hghlighting locations in the list by clicking on them on the map:

Hghlighting locations in the list by clicking on them on the map - WordPress Plugins For Travel Website
Hghlighting locations in the list by clicking on them on the map

TIP

To show tooltips with info for each location as it is shown above, you need to enable the option Show info window for the location on the Route Page tab in the plugin settings.

Below this option you can also configure what should be displayed in the tooltip. Learn more: WordPress Travel Map Plugin (CMMRM) - Settings - Route Page

Enabling locations tooltips - WordPress Plugins For Travel Blogs
Enabling locations tooltips

How To Display the Locations List Next to the Map

As the most convenient way of using this option is when the locations list is displayed next to the map, let's learn how to do this.

You create a custom route page template using shortcodes.

For this case we need the following shortcodes:

  • [route-map-canvas] - to display the map.
  • [route-locations] - to display the list.
    • height - this parameter that allows to define the height of the list in pixels.

We use the Divi theme, so we created two Code blocks next to each other and added there needed shortcodes:

Creating custom route page template - Travel Map WordPress Plugin
Creating custom route page template

After saving this page, we need to specify it as a template for the route page.

Navigate to Admin Dashboard â†’ CM Maps Route Manager Pro â†’ Settings → Route Page tab. Using the option Custom page for a single route, choose the needed page.

Choosing route page template - Add WordPress Plugin Of Travel Map
Choosing route page template

Then save the changes.

You can enhance the route page template with other details using other shortcodes.

Learn more about the plugin shortcodes: WordPress Travel Map Plugin (CMMRM) - Shortcodes



More information about the WordPress Travel Map Plugin

Other WordPress products can be found at CreativeMinds WordPress Store

Let us know how we can Improve this Product Documentation Page

To open a Support Ticket visit our support center
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.