Adds README and php plugin code
This commit is contained in:
1 parent
2beb4375c2
commit
81234875be
2 files changed
+116
No files matched your search
@@ -0,0 +1,30 @@
|
||||
# WP OpenFreeMap - OpenFreeMap WordPress Plugin
|
||||
|
||||
A [WordPress plugin](https://wordpress.org/plugins) that renders [OpenFreeMap](https://openfreemap.org) using [MapLibre GL](https://maplibre.org).
|
||||
|
||||
## Installation
|
||||
1. Upload the plugin to your `/wp-plugins/` directory
|
||||
2. Activate the plugin through the 'Plugins' menu in WordPress
|
||||
3. Go to "Settings > OpenFreemap" to configure the plugin
|
||||
|
||||
|
||||
## Basic Usage
|
||||
Once activated you can render [OpenFreeMap](https://openfreemap.org) map widgets using the shortcode
|
||||
```
|
||||
[openfreemap [options...]]
|
||||
```
|
||||
The options are as follows
|
||||
- `lat`
|
||||
Vertical center of the map (default: `47.1092664`)
|
||||
- `lon`
|
||||
Horizontal center of the map (default: `12.3453356`)
|
||||
- `zoom`
|
||||
Initial zoom of the map (default: `16.5`)
|
||||
- `color`
|
||||
Marker color in CSS notation (default: `#ff0000`)
|
||||
- `height`
|
||||
Height of the map widget in CSS notation (default: `450px`)
|
||||
|
||||
## Links
|
||||
- https://openfreemap.org
|
||||
- https://maplibre.org
|
||||
Reference in new issue
Block a user