SlideShare a Scribd company logo
Mapping in Drupal
using OpenLayers
Peter Vanhee
7th April 2011 - drupal.cat
Who am I?
‣ Consumer and contributor to Drupal for
  over 5 years
‣ Co-founder Youth Agora (@youthagora)
  and Nuvole (@nuvoleweb)
‣ Independent consultant in Barcelona
  (@pvhee)
europeancampus.eu
managingnews.com
2010.afghanistanelectiondata.org/maps
maps.ed.gov
What is OpenLayers?
OpenLayers is ...

‣ a framework for building map
  applications
‣ javascript
‣ open source (BSD licensed)
‣ your escape from Google Maps
What is Drupal?
Modules

‣ ctools
‣ openlayers, openlayers_ui,
  openlayers_cck,
  openlayers_views
‣ views
Example
Geo Data
‣ Data with latitude/
  longitude (point)
‣ CCK Field:
  OpenLayers WKT or
  integer
‣ Lines, polygons, ...
‣ Can be anything that
  is available in Views!
Mapping in 3 steps
1. Layers
   Services: Google Maps, MapBox, ...
   Files: KML, XML, ...
   Drupal nodes via Views
2. Map presets
   Configuration for a single map
3. Map views
   Displays the map using Views
1. Layer
2. Map preset
3. Map view




                use Views to select data from CCK
1. Layer
2. Map preset
3. Map view




    configure data source to pick up the location
1. Layer
2. Map preset
3. Map view




                pass additional data to the layer
1. Layer
2. Map preset
3. Map view




        use OpenLayers to configure map
1. Layer
2. Map preset
3. Map view




            set map center and bounds
1. Layer
2. Map preset
3. Map view




        configure map behaviors (php + javascript)
1. Layer
2. Map preset
3. Map view




        set layers (tiles and data) and styles
1. Layer
2. Map preset
3. Map view




                use Views to display map
1. Layer
2. Map preset
3. Map view




                select map to display
Step by step

1. Create geodata (CCK)
2. Create data layer (Views)
3. Create map preset (OpenLayers)
4. Create map view (Views)
Improvements
Improvement #1
Add map
behaviors
(Javascript)
‣   Pop Up

‣   Zoom to layer

‣   Clustering

‣   Write your own
Improvement #2

Change layers
‣   Google Maps

‣   MapBox

‣   Create your own
    via TileMill
Extending via
Contributed Modules
openlayers_geocoder


‣ From address
  to location
‣ Save address in
  node via token
openlayers_filters




          insert map in content
geotaxonomy




geo-aware terms
                  term with lat/long
openlayers_plus




    scale points, add tooltips, ...
         https://github.com/developmentseed/openlayers_plus
Extending via Code
‣ hook_openlayers_map_preprocess_alter()
  hook_openlayers_map_alter()

‣ hook_openlayers_layer_types()
  hook_openlayers_layers()

‣ hook_openlayers_behaviors()

‣ hook_openlayers_styles()

‣ hook_openlayers_presets()



                      see openlayers.api.php
Drupal 7
‣ Works!
  2.0-alpha1
‣ openlayers_cck
  geofield
‣ Under heavy
  development
Links

‣ http://drupal.org/project/openlayers
‣ https://github.com/pvhee/
  openlayers_demo
Thanks!

    Contact:
    Peter Vanhee
    Twitter: @pvhee

More Related Content

PDF
Mapping in Drupal 7 using OpenLayers
KEY
Drupal mapping
PDF
51811680 open layers
PPTX
Drupal mapping modules
ODP
OpenLayers vs. Leaflet
PPTX
OpenLayer's basics
PDF
Web Mapping with Drupal
PDF
OpenLayers 3
Mapping in Drupal 7 using OpenLayers
Drupal mapping
51811680 open layers
Drupal mapping modules
OpenLayers vs. Leaflet
OpenLayer's basics
Web Mapping with Drupal
OpenLayers 3

What's hot (20)

PDF
以 Leaflet 濫用^H^H呈現開放街圖資料
PDF
Answer togoogleearthuniverseandevrythingelse abbreviated
PDF
Marble Virtual Globe 1.4 Factsheet (English)
PDF
Marble - ein Schweizer Taschenmesser für Karten
PDF
Marble Virtual Globe 1.3 Factsheet (English)
PDF
Marble Virtual Globe 1.6 Factsheet (English)
PPTX
Open layers
PDF
Vector Tiles with GeoServer and OpenLayers
PDF
Using QGIS to create 3D indoor maps
PDF
Cartaro Workshop at the Geosharing Conferenc in Bern
PDF
G3m overview
PDF
Where in the world is Franz Kafka? | Will LaForest, Confluent
PDF
Integrating Geospatial Data to your Applications
PPTX
Vectorial Streaming. Como FOSS4G Europe 2015
PPTX
Glob3 Mobile. Point Cloud Streaming
PDF
AGIT 2017: Cesium 1.35, WebGL Virtual Globe and Map Engine
PDF
QGIS training class 1
PPT
Google Earth
PPT
Google earth
PPTX
Yet Another Solar System
以 Leaflet 濫用^H^H呈現開放街圖資料
Answer togoogleearthuniverseandevrythingelse abbreviated
Marble Virtual Globe 1.4 Factsheet (English)
Marble - ein Schweizer Taschenmesser für Karten
Marble Virtual Globe 1.3 Factsheet (English)
Marble Virtual Globe 1.6 Factsheet (English)
Open layers
Vector Tiles with GeoServer and OpenLayers
Using QGIS to create 3D indoor maps
Cartaro Workshop at the Geosharing Conferenc in Bern
G3m overview
Where in the world is Franz Kafka? | Will LaForest, Confluent
Integrating Geospatial Data to your Applications
Vectorial Streaming. Como FOSS4G Europe 2015
Glob3 Mobile. Point Cloud Streaming
AGIT 2017: Cesium 1.35, WebGL Virtual Globe and Map Engine
QGIS training class 1
Google Earth
Google earth
Yet Another Solar System
Ad

Viewers also liked (20)

DOC
Mau danh sach thuc tap tot nghiep K40CDL.doc
DOC
Brand identityguide
PPTX
Take your drupal sites offline
PPTX
Build an OSM mapping platform with Drupal
PPT
Drupal 7 Feeds Intro Drupal Camp Indianapolis 2011
PDF
Feeds. использование и создание плагинов. Feeds API
PDF
Importing and synchronizing content using Feeds
PDF
Getting started with Ansible. Be efficient.
PDF
Of Nodes and Maps (Web Mapping with Drupal - Part II)
PDF
Drupal and diversity of Single sign-on systems
PDF
Build your application in seconds and optimize workflow as much as you can us...
PDF
Guide sur le traitement ARV en arabe
PDF
Cloud Driven Development: a better workflow, less worries, and more power
PDF
Building rednoseday.com on Drupal 8
PDF
Leading Through Burnout - K. Wiens Dissertation
PPTX
State of art
PDF
Nine Pages You Should Optimize on Your Blog and How
PPTX
Projeto gelo
PPTX
The Next Tsunami AI Blockchain IOT and Our Swarm Evolutionary Singularity
PDF
Inaugural Addresses
Mau danh sach thuc tap tot nghiep K40CDL.doc
Brand identityguide
Take your drupal sites offline
Build an OSM mapping platform with Drupal
Drupal 7 Feeds Intro Drupal Camp Indianapolis 2011
Feeds. использование и создание плагинов. Feeds API
Importing and synchronizing content using Feeds
Getting started with Ansible. Be efficient.
Of Nodes and Maps (Web Mapping with Drupal - Part II)
Drupal and diversity of Single sign-on systems
Build your application in seconds and optimize workflow as much as you can us...
Guide sur le traitement ARV en arabe
Cloud Driven Development: a better workflow, less worries, and more power
Building rednoseday.com on Drupal 8
Leading Through Burnout - K. Wiens Dissertation
State of art
Nine Pages You Should Optimize on Your Blog and How
Projeto gelo
The Next Tsunami AI Blockchain IOT and Our Swarm Evolutionary Singularity
Inaugural Addresses
Ad

Similar to Mapping in Drupal using OpenLayers (20)

PPT
Performance and Scalability for Maps API Sites (Dev Fest '10 Mexico)
PDF
LocationTech Tour 2016 - Vectortiles
PDF
GIS in Pharo PharoOWS & GeoView (ESUG 2025)
PPTX
Mapping with Drupal and OpenLayers
PPT
Sharing the Openness of the Maps via FOSS4G and the Web
PDF
Qgis walkthrough
ODP
Java Tech & Tools | Mapping, GIS and Geolocating Data in Java | Joachim Van d...
ODP
Mapping, GIS and geolocating data in Java @ JAX London
PPTX
Plugins in QGIS and its uses
PPTX
OpenStreetMap in 3D - current developments
PDF
Geographic Data and Leaflet.js
ODP
OpenLayers for Drupal: The 10,000 Foot View
PDF
Easily Create Maps in Drupal with Leaflet
ODP
Mapping, GIS and geolocating data in Java
PDF
Putting Your Data on a Map
PDF
Building Location-Aware Apps using Open Source (AnDevCon SF 2014)
PDF
Dmytro Safonov "Open-Source Map Viewers"
PPTX
Geographic information system and remote sensing
Performance and Scalability for Maps API Sites (Dev Fest '10 Mexico)
LocationTech Tour 2016 - Vectortiles
GIS in Pharo PharoOWS & GeoView (ESUG 2025)
Mapping with Drupal and OpenLayers
Sharing the Openness of the Maps via FOSS4G and the Web
Qgis walkthrough
Java Tech & Tools | Mapping, GIS and Geolocating Data in Java | Joachim Van d...
Mapping, GIS and geolocating data in Java @ JAX London
Plugins in QGIS and its uses
OpenStreetMap in 3D - current developments
Geographic Data and Leaflet.js
OpenLayers for Drupal: The 10,000 Foot View
Easily Create Maps in Drupal with Leaflet
Mapping, GIS and geolocating data in Java
Putting Your Data on a Map
Building Location-Aware Apps using Open Source (AnDevCon SF 2014)
Dmytro Safonov "Open-Source Map Viewers"
Geographic information system and remote sensing

Recently uploaded (20)

PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
Cloud computing and distributed systems.
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
A Presentation on Artificial Intelligence
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Approach and Philosophy of On baking technology
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Empathic Computing: Creating Shared Understanding
PDF
Electronic commerce courselecture one. Pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
Digital-Transformation-Roadmap-for-Companies.pptx
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
20250228 LYD VKU AI Blended-Learning.pptx
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
NewMind AI Weekly Chronicles - August'25-Week II
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Cloud computing and distributed systems.
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
MYSQL Presentation for SQL database connectivity
A Presentation on Artificial Intelligence
MIND Revenue Release Quarter 2 2025 Press Release
“AI and Expert System Decision Support & Business Intelligence Systems”
Diabetes mellitus diagnosis method based random forest with bat algorithm
Approach and Philosophy of On baking technology
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
Empathic Computing: Creating Shared Understanding
Electronic commerce courselecture one. Pdf
Review of recent advances in non-invasive hemoglobin estimation

Mapping in Drupal using OpenLayers