Skip to content

Latest commit

 

History

History
executable file
·
37 lines (24 loc) · 1.35 KB

README.md

File metadata and controls

executable file
·
37 lines (24 loc) · 1.35 KB

DVF GeoJSON

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 is a proof of concept

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.

How to use

  • 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
  • Add a center lat/lng that aligns with your GeoJSON data
  • Save and view, you should see a map that looks something like this

Settings example (source)

Settings

Output example (style)

Map

Author

Jeremy Graham from Doghouse Agency

Sponsored by govCSM