# Custom Post Type to Map Store
An another Store Locator on WordPress but with OpenStreetMap &amp; Leaflet and Meta Fields

The plugin allows to :

1. Generate a [GEOJson](https://en.wikipedia.org/wiki/GeoJSON) feed from coordinates recorded in the sample posts.
2. Display this feed on a map with a shortcode.

## Fonctionality

- Mapping from a Post Type to generate a GeoJson feed of all posts.
- Exposure this Geojson feeds on the WordPress Rest-API
- Possibility to make a template for the map markers popup
- Coordinate reading compatibility for :
    - a text field
    - an ACF Google Map field
    - an ACF field for the [ACF OpenStreetMap Field](https://wordpress.org/plugins/acf-openstreetmap-field/) extension
- Displaying a map by shortcode of all points.

## Screenshot

### First page admin
Admin > Settings > CPT to Map Store
![Screenshot admin 1](https://raw.githubusercontent.com/lriaudel/cpt-to-map-store/master/.wordpress.org/screenshot-1.png "Screeshot admin 1")

### Second page admin

Admin > Settings > CPT to Map Store > Map

![Screenshot admin 2](https://raw.githubusercontent.com/lriaudel/cpt-to-map-store/master/.wordpress.org/screenshot-2.png "Screeshot admin 2")

### Rest-API
![GeoJson](https://raw.githubusercontent.com/lriaudel/cpt-to-map-store/master/.wordpress.org/screenshot-3.png "GeoJson")

### Map
![Map](https://raw.githubusercontent.com/lriaudel/cpt-to-map-store/master/.wordpress.org/screenshot-4.png "Map")