Your SlideShare is downloading. ×
  • Like
Mapping with Drupal and OpenLayers
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Now you can save presentations on your phone or tablet

Available for both IPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Mapping with Drupal and OpenLayers

  • 6,424 views
Published

From Drupal Camp NYC 8

From Drupal Camp NYC 8

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
  • 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
No Downloads

Views

Total Views
6,424
On SlideShare
0
From Embeds
0
Number of Embeds
1

Actions

Shares
Downloads
90
Comments
1
Likes
3

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Mapping
    Drupal and OpenLayers
  • 2. 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
  • 3. 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
  • 4. What is OpenLayers?
    Open source JavaScript library
    An API to display map data
    Cross browser
    Except older Safari and Konquerer
    No server-side dependencies
  • 5. Sites Using OpenLayers
    http://outsideindc.com/stumblesafely/
    ???
  • 6. Modules to Install
    Required
    OpenLayers
    CTools
  • Presets Configuration
    Layers
    Styles
    Behaviors
    Settings
    Zoom, center, width, height, etc.
    Everything except putting the map on the page
  • 15. Layers
    Raster & vector data
    Base Layers
    Background for data
    Google Maps, Open Street Map, custom
    Overlay Layers
    Views, KML, other?
  • 16. 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
  • 17. Behaviors
    How users interact with the map
    Enabled on map presets to control
    Includes
    Zoom & pan
    Layer switching
    Clustering
    etc.
  • 18. Source of js file
    option to build your own version of js for speed http://trac.openlayers.org/wiki/Profiles
  • 19. Other Configuration
    API keys
    Permissions
  • 20. Setting up content types
    Lat & Lon
    OpenLayers Geocoder
  • 21. 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
  • 22. Features
    Everything can be exported to features
    Code control
    Sharable