Mapping in Drupal 7 using OpenLayers
Upcoming SlideShare
Loading in...5
×
 

Mapping in Drupal 7 using OpenLayers

on

  • 25,264 views

Presentation from DrupalCamp Spain 2011 about OpenLayers in Drupal 7.

Presentation from DrupalCamp Spain 2011 about OpenLayers in Drupal 7.

Statistics

Views

Total Views
25,264
Views on SlideShare
22,258
Embed Views
3,006

Actions

Likes
20
Downloads
376
Comments
4

12 Embeds 3,006

http://www.scoop.it 2698
http://propellernet.local 250
http://propellernet.db-dev.co.uk 19
http://mapping.obscuredestiny.com 12
http://www.ifusch.com 11
https://twitter.com 5
http://paper.li 4
http://webcache.googleusercontent.com 2
http://translate.googleusercontent.com 2
http://a0.twimg.com 1
http://us-w1.rockmelt.com 1
http://www.linkedin.com 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
  • kakaokakao
    Are you sure you want to
    Your message goes here
    Processing…
  • Excellent module
    Are you sure you want to
    Your message goes here
    Processing…
  • Hi,

    Great slide! Better than reading about it. One question, did you populate the lat lon fields with the marker on the map? If so, is this custom code or it it easy to do with the modules?

    Thanks!
    Brian
    Are you sure you want to
    Your message goes here
    Processing…
  • read http://www.interworks.com/blogs/mmueggenborg/2012/01/03/setting-drupal-7-locations-map instead.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Mapping in Drupal 7 using OpenLayers Mapping in Drupal 7 using OpenLayers Presentation Transcript

  • 7 drupalMapping in Drupalusing OpenLayersPeter Vanhee1st October 2011 - DrupalCamp Spain
  • Who am I?‣ Consumer and contributor to Drupal for over 5 years‣ Co-founder Youth Agora @youthagora and Nuvole @nuvoleweb‣ Web consultant in Barcelona @pvhee
  • What is OpenLayers?
  • OpenLayers is ...‣ a framework for building map applications‣ javascript‣ open source (BSD licensed)‣ your escape from Google Maps
  • www.europeancampus.eu
  • www.managingnews.com
  • maps.ed.gov
  • Under Development 7 drupal
  • 6 drupal 7 drupal‣ OpenLayers CCK ‣ Geofield‣ OpenLayers Geocoder ‣ Geocoder‣ OpenLayers Filter ‣ ?‣ Geo Taxonomy ‣ ?‣ OpenLayers Plus ‣ ?‣ OpenLayers Proximity ‣ ? Note that this list is incomplete
  • Modules‣ ctools‣ openlayers openlayers_ui, openlayers_views‣ geofield geoPHP‣ views
  • Example
  • Geo Data‣ CCK Field: ‣ Data with ‣ Can be geofield latitude/ anything that is supports points, longitude available in lines & polygons (e.g. integers) Views! field storage input field type
  • Adding geo data with lat/lng fieldswith OpenLayers Map Widget Data is stored in geofield
  • And our rendered node
  • Mapping in 3 steps1. Layer Services: Google Maps, MapBox, ... Files: KML, XML, ... Drupal nodes via Views2. Map Configuration for a single map3. View Displays the map using Views
  • 1. Layer2. Map3. View use Views to select data from CCK
  • 1. Layer2. Map3. View configure data source to pick up the location
  • 1. Layer2. Map3. View pass additional data to the layer
  • 1. Layer2. Map3. View use OpenLayers module to configure map
  • 1. Layer2. Map3. View use Views to display map
  • 1. Layer2. Map3. View select map to display
  • Step by stepAdd geofield (Field)1. Create data overlay (Views)2. Create map (OpenLayers)3. Render map style (Views)
  • Improvements
  • Map Behaviors‣ Pop Up‣ Zoom to layer‣ Cluster‣ Write your own (javascript)
  • Change Layers‣ Google Maps‣ MapBox‣ Create your own (e.g. via TileMill)
  • Geoserver1. Drupal outputs WFS via Views2. Geoserver reads WFS and creates map3. Openlayers reads Geoserver map, displays and facilitates interaction ! 6 drupal http://drupal.org/project/wfs http://geoserver.org
  • Tilemill Create your own tiles, and render in Drupal
  • Extending viaContributed Modules
  • openlayers_plus source: www.europeancampus.eu 6 drupal scale points, add tooltips, ... https://github.com/developmentseed/openlayers_plus
  • geocoder 7 drupal‣ From address to location‣ Use geocoder services (e.g. Google Geocoder)‣ Can take values from Address Field or any other text !
  • geocoder 7 drupal
  • geocoder 7 drupal
  • Would be nice to...‣ Render live output of geocoding‣ For Drupal 6, check out the excellent Openlayers Geocoder by @nuvoleweb !
  • 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_maps() see openlayers.api.php
  • Links‣ http://drupal.org/project/openlayers‣ OpenLayers for Drupal 6 presentation: http://www.slideshare.net/pvhee/introduction-to- openlayers-in-drupal
  • Thanks! Peter Vanhee @pvhee
  • Questions?Drupal + GIS: Convertiendo Drupal en un GeoCMSSunday, 4pm, Sala Microsoft plopescImporting and syncing content using Feeds Peter VanheeSunday, 12pm, Sala Cenatic pvhee @pvhee