Skip to content

OpenStreetMap maps for the WordPress theme 'Vantage' by AppThemes

License

Notifications You must be signed in to change notification settings

jxpsert/vantage-osm

Repository files navigation

vantage-osm

OpenStreetMap & Nominatim integration for Vantage WordPress theme (https://www.appthemes.com/themes/vantage/)

Geocoder Map
preview preview

Installation:

Add files:

- /wp-content/themes/appthemes-vantage/includes/geo/geocoders/nominatim-geocoder.php
- /wp-content/themes/appthemes-vantage/includes/geo/map-providers/openstreetmap.php
- /wp-content/themes/appthemes-vantage/includes/geo/map-providers/openstreetmap.js
- /wp-content/themes/appthemes-vantage/includes/maps/class-openstreetmap.php

Edit files:

- /wp-content/themes/appthemes-vantage/includes/geo/load.php
	- Find: require_once (dirname(__FILE__) . '/map-providers/google-maps.php');
	- On next line, add: require_once (dirname(__FILE__) . '/map-providers/openstreetmap.php');
- /wp-content/themes/appthemes-vantage/includes/maps/load.php
	- Add to $load_files array: 'class-openstreetmap.php'

Usage:

- Open 'Vantage' -> 'Geo Services' in admin panel
- Select 'Nominatim' as Geocoder and 'OpenStreetMap' as Map provider

Compatibility

Made and tested on Vantage 4.2.13

License

This project is licensed under the MPL-2.0 license.

It was made during my internship at Wux and permission for release has been granted.