Geospatial Drupal Adam Bramley Introduction Catalyst IT - 3+ - - PowerPoint PPT Presentation

geospatial drupal
SMART_READER_LITE
LIVE PREVIEW

Geospatial Drupal Adam Bramley Introduction Catalyst IT - 3+ - - PowerPoint PPT Presentation

Geospatial Drupal Adam Bramley Introduction Catalyst IT - 3+ years Senior Drupal Developer Live public projects www.health.govt.nz www.transpower.co.nz www.scmp.com www.systemoperator.co.nz


slide-1
SLIDE 1

Geospatial Drupal

Adam Bramley

slide-2
SLIDE 2

Geospatial Drupal

Introduction

  • Catalyst IT - 3+ years
  • Senior Drupal Developer
  • Live public projects

○ www.health.govt.nz ○ www.transpower.co.nz ○ www.scmp.com ○ www.systemoperator.co.nz ○ www.elections.org.nz

  • Twitter - @theacbramley
  • Drupal - @acbramley
  • NB: I’m not an Openlayers or Leaflet expert
slide-3
SLIDE 3

Geospatial Drupal

Why are you here?

  • Help you decide which mapping library is for you.

○ Comparing a popular library to a new/upcoming library.

  • Show you how easy it is to build something powerful without

coding.

  • Inspire you to build something epic with a glimpse at a more

complex system using a map frontend.

slide-4
SLIDE 4

Geospatial Drupal

Background

  • Worked with Openlayers when implementing a mapping

solution for transpower.co.nz

  • It was a love hate relationship.
  • Upgrades broke things.
  • When another project required a clever mapping

solution we used our experience with Openlayers.

slide-5
SLIDE 5

Geospatial Drupal

Background

  • Part of the way through, it was clear that Openlayers

was not going to meet all of our requirements.

  • We installed and configured Leaflet and, through black

magic, all of our issues disappeared.

slide-6
SLIDE 6

Geospatial Drupal

IE Compatibility Accessibility (keyboard) Load times Point/cluster styling

slide-7
SLIDE 7

Geospatial Drupal

Clash of the Titans

A comparative overview

July 2011 version 1.1 2k+ sites using 13k+ downloads Sept 2007 version beta7 10k+ sites using 160k+ downloads

Leaflet Openlayers Module release

slide-8
SLIDE 8

Geospatial Drupal

Clash of the Titans

A comparative overview

Lib total: 360kB Module total: 20kB Minified js: 125kB Lib total: 70MB Module total: 300kB Minified js: ~800kB

Leaflet Openlayers Module/Library size

slide-9
SLIDE 9

Geospatial Drupal

Clash of the Titans

A comparative overview

  • Libraries
  • Geofield (for our purposes)

○ geophp

  • Views (for our purposes)
  • Libraries
  • Proj4js (+lib)
  • Ctools
  • File
  • Image
  • Geofield (for our purposes)

○ geophp

  • Views (for our purposes)

Leaflet Openlayers Dependencies

slide-10
SLIDE 10

Geospatial Drupal

Clash of the Titans

A comparative overview

8.x release Single layer (views) No external CDN option No 8.x release Infinite layers External CDN available

Leaflet Openlayers Misc.

slide-11
SLIDE 11

Geospatial Drupal

Clash of the Titans

A comparative overview

Plugins through other modules 2 files per “plugin” (.js and .inc)

Leaflet Openlayers Module implementation

slide-12
SLIDE 12

Geospatial Drupal

Leaflet Module implementation

  • Extend functionality with other modules (clustering, url hashing

etc). ○ http://drupal.org/project/leaflet_markercluster ○ http://drupal.org/project/leaflet_more_maps

  • Admin interface = views interface
  • Settings controlled via a hook.
  • Some configuration moving into views.
slide-13
SLIDE 13

Geospatial Drupal

Leaflet Module implementation Hook configuration

slide-14
SLIDE 14

Geospatial Drupal

Leaflet Map Administration Views configuration

slide-15
SLIDE 15

Geospatial Drupal

slide-16
SLIDE 16

Geospatial Drupal

Openlayers Module implementation

  • Extend functionality with ctools plugins (a lot exist in the main

module) ○ 1 js file, 1 .inc file ○ These can be behaviours (cluster, zoom to layer) or other things like layer types.

  • Admin interface overload.
  • Settings entirely through admin interfaces.
slide-17
SLIDE 17

Geospatial Drupal

Openlayers Map Administration

slide-18
SLIDE 18

Geospatial Drupal

Openlayers Map Administration

slide-19
SLIDE 19

Geospatial Drupal

Openlayers Map Administration

slide-20
SLIDE 20

Geospatial Drupal

Openlayers Map Administration

slide-21
SLIDE 21

Geospatial Drupal

Openlayers Module implementation

slide-22
SLIDE 22

Geospatial Drupal

Openlayers Map Administration

slide-23
SLIDE 23

Geospatial Drupal

slide-24
SLIDE 24

Geospatial Drupal

slide-25
SLIDE 25

Geospatial Drupal

Case Study - Ministry of Health

  • Goal of project: provide more information to the public
  • n certified providers for health care (public hospitals,

rest homes, fertility clinics etc)

  • Display certified providers on a filterable, searchable

map with links to more details.

Provider Regulatory Monitoring System

slide-26
SLIDE 26

Geospatial Drupal

Provider Regulatory Monitoring System

XML (update/delete) Drupal

POST

slide-27
SLIDE 27

Geospatial Drupal

Provider Regulatory Monitoring System

Entity Parse Query

slide-28
SLIDE 28

Geospatial Drupal

  • Integration with

○ Apache Solr ○ Facetapi ○ Page Manager ○ Entity cache ○ Field API ○ Views ○ Pathauto

Provider Regulatory Monitoring System

slide-29
SLIDE 29

Geospatial Drupal

Provider Regulatory Monitoring System

DEMO

http://www.health.govt.nz/resthomes

slide-30
SLIDE 30

Geospatial Drupal

Conclusions

  • Leaflet’s slim and modern approach makes it easy for site builders to use

and easy for developers to maintain and extend.

  • Openlayers is good for complex, multi-layered maps without having to write

any code. ○ Advanced layer types ○ External layer data

  • Openlayers has a much steeper learning curve.
slide-31
SLIDE 31

Geospatial Drupal

slide-32
SLIDE 32

Geospatial Drupal

slide-33
SLIDE 33

Geospatial Drupal

slide-34
SLIDE 34

Geospatial Drupal

Questions?

adam@catalyst.net.nz Slides: http://bit.ly/1bU3s2V