OpenStreetMap is a collaborative project to create a free editable map of the world while Leaflet is the leading open-source JavaScript library for mobile-friendly interactive maps. Quickly enhance the contact and location pages on your site with an informative and colourful map.
You can install the plugin using any of the following methods:
composer require initbiz/oc-leafletpro-plugin
plugins/initbiz/leafletpro
directory of your project and run composer install in your project's directoryThe plugin will automatically install maxhelias/php-nominatim, which is used to query Nominatim service. If you are going to use the Nominatim service, recall the Nominatim usage policy.
You can embed a map using the Leaflet map component.
As you see in the above screenshot you can specify a few parameters:
The popup content is defined individually for every marker. By default, it's seeded with the content of plugins/initbiz/leafletpro/models/marker/_default_popup_content.htm
.
The partial can be easily overridden by creating the _default_popup_content.htm
file in your theme in the partials
directory. Remember that overriding the partial will not change current marker popups. This partial is used only as a seeder when popup content is empty while saving marker.
The plugin is nicely integrated with the Initbiz.CumulusCore plugin.
inIT has been consistently providing a discreet and professional development service for October CMS users since 2015. We have successfully played major and minor development roles in over 100 October based projects supporting and partnering with clients around the world.
Why not make us a part of your next October development crew.
inIT.biz is a trading name of inIT.biz sp. z o.o., a company registered in Poland (REGON: 367829790, VAT: 8661738221)