Adding Views GeoJSON Layer to OL3 Map

Last updated on
6 April 2022

This is documentation for Drupal 7, which is no longer supported. Learn more and find resources for Drupal 7 sites

Create a OL3 Map with a local Views GeoJSON Source

  • Create a view with Views GeoJSON feed (Add: Feed)
  • Go to Structure->OpenLayers->Layers - add a layer
  • Choose Layer Type: "Vector"
  • Choose your desired Views GeoJSON feed in the "Source" select list (continue)
  • Choose your style and save
  • Go to "Maps" and Add a new map
  • Add your new GeoJSON layer (and a base map if desired)

Help improve this page

Page status: No known problems

You can: