Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shahinam/openstreetmap
Integrate Open Street Map with Drupal.
https://github.com/shahinam/openstreetmap
drupal openstreetmap
Last synced: 30 days ago
JSON representation
Integrate Open Street Map with Drupal.
- Host: GitHub
- URL: https://github.com/shahinam/openstreetmap
- Owner: shahinam
- Created: 2018-07-10T07:14:33.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-07-10T09:16:08.000Z (over 6 years ago)
- Last Synced: 2024-11-14T14:46:18.331Z (3 months ago)
- Topics: drupal, openstreetmap
- Language: PHP
- Homepage:
- Size: 20.3 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Integrate OpenStreetMap with Drupal
## Setup
The setup is very straignt forward
* Clone the git repo locally
```
git clone [email protected]:shahinam/OpenStreetMap.git
```* Switch to the cloned project.
```
cd OpenStreetMap
```* Run the application
```
docker-compose up -d
```Make sure `docker` and `docker-compose` are installed.
* Wait for about a minute for container to spinup and import database.
* Check the site by pointing your browser to `http://localhost:8080/`
## Implemenation details
* The application uses two Drupal modules to integrate the OSM
- Geo Fieldgeofield
- Leaflet* There is a content type called `Place` with following fields
- `Title` A text field to store place name.
- `Description` A long text field to store short descrption about the place.
- `Coordinates` A geofield which stores latitude and longitute.* A view which display a map with all the published nodes displayed.
Check the view at `http://localhost:8080/map/osm`