This is an example Drupal module demonstrating a potential use case for Data Visualisation Framework (DVF) with geospatial data, specifically GeoJSON. It also provides an example for how a developer might implement a third party frontend library that is not included out-of-the-box with DVF.
This module isn't intended for production use, it is more of a demonstration of how maps could be integrated with DVF with a working example.
- Install and enable this module
- Create a new DVF "Visualisation URL" field on your entity of choice
- Select "GeoJSON" as a source type
- Create a new entity and in your DVF GeoJSON field, add a url to some valid GeoJSON
- Eg Brooklyn layer
https://jsonkeeper.com/b/DM11
- A few other examples here
- Eg Brooklyn layer
- Add a center lat/lng that aligns with your GeoJSON data
- Save and view, you should see a map that looks something like this
Jeremy Graham from Doghouse Agency
Sponsored by govCSM