Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Mapping in Drupal 7 using OpenLayers

32,530 views

Published on

Presentation from DrupalCamp Spain 2011 about OpenLayers in Drupal 7.

Published in: Technology
  • Get Now to Download PDF eBook === http://hellowbookeas.cf/b00citnp8u-instant-openlayers-starter.html
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Dating for everyone is here: ❶❶❶ http://bit.ly/39sFWPG ❶❶❶
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Sex in your area is here: ♥♥♥ http://bit.ly/39sFWPG ♥♥♥
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THAT BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book that can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer that is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story That Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money That the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths that Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • kakaokakao
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

Mapping in Drupal 7 using OpenLayers

  1. 1. 7 drupalMapping in Drupalusing OpenLayersPeter Vanhee1st October 2011 - DrupalCamp Spain
  2. 2. 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
  3. 3. What is OpenLayers?
  4. 4. OpenLayers is ...‣ a framework for building map applications‣ javascript‣ open source (BSD licensed)‣ your escape from Google Maps
  5. 5. www.europeancampus.eu
  6. 6. www.managingnews.com
  7. 7. maps.ed.gov
  8. 8. Under Development 7 drupal
  9. 9. 6 drupal 7 drupal‣ OpenLayers CCK ‣ Geofield‣ OpenLayers Geocoder ‣ Geocoder‣ OpenLayers Filter ‣ ?‣ Geo Taxonomy ‣ ?‣ OpenLayers Plus ‣ ?‣ OpenLayers Proximity ‣ ? Note that this list is incomplete
  10. 10. Modules‣ ctools‣ openlayers openlayers_ui, openlayers_views‣ geofield geoPHP‣ views
  11. 11. Example
  12. 12. 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
  13. 13. Adding geo data with lat/lng fieldswith OpenLayers Map Widget Data is stored in geofield
  14. 14. And our rendered node
  15. 15. 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
  16. 16. 1. Layer2. Map3. View use Views to select data from CCK
  17. 17. 1. Layer2. Map3. View configure data source to pick up the location
  18. 18. 1. Layer2. Map3. View pass additional data to the layer
  19. 19. 1. Layer2. Map3. View use OpenLayers module to configure map
  20. 20. 1. Layer2. Map3. View use Views to display map
  21. 21. 1. Layer2. Map3. View select map to display
  22. 22. Step by stepAdd geofield (Field)1. Create data overlay (Views)2. Create map (OpenLayers)3. Render map style (Views)
  23. 23. Improvements
  24. 24. Map Behaviors‣ Pop Up‣ Zoom to layer‣ Cluster‣ Write your own (javascript)
  25. 25. Change Layers‣ Google Maps‣ MapBox‣ Create your own (e.g. via TileMill)
  26. 26. 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
  27. 27. Tilemill Create your own tiles, and render in Drupal
  28. 28. Extending viaContributed Modules
  29. 29. openlayers_plus source: www.europeancampus.eu 6 drupal scale points, add tooltips, ... https://github.com/developmentseed/openlayers_plus
  30. 30. geocoder 7 drupal‣ From address to location‣ Use geocoder services (e.g. Google Geocoder)‣ Can take values from Address Field or any other text !
  31. 31. geocoder 7 drupal
  32. 32. geocoder 7 drupal
  33. 33. Would be nice to...‣ Render live output of geocoding‣ For Drupal 6, check out the excellent Openlayers Geocoder by @nuvoleweb !
  34. 34. Extending via Code
  35. 35. ‣ 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
  36. 36. Links‣ http://drupal.org/project/openlayers‣ OpenLayers for Drupal 6 presentation: http://www.slideshare.net/pvhee/introduction-to- openlayers-in-drupal
  37. 37. Thanks! Peter Vanhee @pvhee
  38. 38. Questions?Drupal + GIS: Convertiendo Drupal en un GeoCMSSunday, 4pm, Sala Microsoft plopescImporting and syncing content using Feeds Peter VanheeSunday, 12pm, Sala Cenatic pvhee @pvhee

×