Mapping with Drupal and OpenLayers
Upcoming SlideShare
Loading in...5
×
 

Mapping with Drupal and OpenLayers

on

  • 7,468 views

From Drupal Camp NYC 8

From Drupal Camp NYC 8

Statistics

Views

Total Views
7,468
Views on SlideShare
7,468
Embed Views
0

Actions

Likes
3
Downloads
90
Comments
1

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

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…
  • Nice overview - I am still trying to understand the drupal side of it (fields, views etc) - I will try to draw a picture!
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Mapping with Drupal and OpenLayers Mapping with Drupal and OpenLayers Presentation Transcript

  • Mapping
    Drupal and OpenLayers
  • Why map with Drupal?
    Because you can use Drupal stuff for mapping
    Views, CCK, etc.
    Map social
    http://opengreenmap.org/greenmap
    http://nycwhisky.com
    But…
    MySQL is not a great spatial server
  • How to map with Drupal
    GMap & Location
    Been around since 4.7
    Views integration
    Feature rich
    Huge module, opaque javascript
    Geo
    postgres, postgis integration
    Views integration
    Allie Micka is looking for clients to work on geo
  • What is OpenLayers?
    Open source JavaScript library
    An API to display map data
    Cross browser
    Except older Safari and Konquerer
    No server-side dependencies
  • Sites Using OpenLayers
    http://outsideindc.com/stumblesafely/
    ???
  • Modules to Install
    Required
    OpenLayers
    CTools
    • Very Useful
    • Views
    • CCK
    • Features
    • openlayerscck
    • openlayersgeocoder
    • openlayersui
    • openlayersviews
    • mapbox
  • Presets Configuration
    Layers
    Styles
    Behaviors
    Settings
    Zoom, center, width, height, etc.
    Everything except putting the map on the page
  • Layers
    Raster & vector data
    Base Layers
    Background for data
    Google Maps, Open Street Map, custom
    Overlay Layers
    Views, KML, other?
  • Styles
    javascriptStyleMap objects
    icon, fill color, border, and radius of points or polygons
    Only for overlay layers
    Associate with layers in presets
    Some nice defaults in MapBox
  • Behaviors
    How users interact with the map
    Enabled on map presets to control
    Includes
    Zoom & pan
    Layer switching
    Clustering
    etc.
  • Source of js file
    option to build your own version of js for speed http://trac.openlayers.org/wiki/Profiles
  • Other Configuration
    API keys
    Permissions
  • Setting up content types
    Lat & Lon
    OpenLayers Geocoder
  • Setting up Views
    Data view
    Loads the appropriate nodes
    Fields containing title, popup, location
    Remember the style plugin!
    Use this to build a new map preset
    Page view
    OpenLayers Map style
  • Features
    Everything can be exported to features
    Code control
    Sharable