Mapping With Drupal - Alan Palazzolo [55]
block
content type
contrib
core
entity
field
issue
module
node
taxonomy
theme
views
About the Authors
Alan Palazzolo is a Code for America fellow, and has been a big contributor to mapping modules, most notably OpenLayers. He maintains several Drupal modules and has been a featured speaker at Drupal events around the world. Alan led the first ever Code Review Sprint to review project applications at DrupalCon Chicago 2011.
Thomas Turnbull has been building websites in PHP since 2002, and working with Drupal since 2006. He has been an organizer for Drupal Camp New York, and has been contributor and maintainer for several Drupal modules. He has done Drupal development for Sony Music in New York, where he built sites for artists on their record labels using Drupal, and is currently working for Zagat, helping to migrate their website over to Drupal.
Table of Contents
Mapping with Drupal
Preface
Audience
Drupal and Mapping Glossary
Drupal 7 Modules
Conventions Used in This Book
Using Code Examples
Safari® Books Online
How to Contact Us
Acknowledgments
1. Why Map with Drupal
The Power of Maps
Story Telling
The Persuasion
Conversations in Maps
Why Use Maps
What Maps to Use
Further Resources
The Power of Drupal
Drupal as a CMS
Mapping in Drupal
2. Web Mapping Basics
Projections and Coordinate Systems
Map Projections
Spherical Mercator
More resources
Coordinate Systems
Longitude first
Data Storage
Data Types
Vector data
Vector data standards
Raster data
Databases
Challenges of Web-Based Mapping
Browser Capabilities
Client-side clustering
Library size
Tile rendering
Usability
3. Spatial Data
Data Storage
Database Layer in Drupal
Methods
Geofield
Location
Text fields
Geo
Data Input
Geofield Module
Basic configuration of Geofield
Adding geographic data to a node with Geofield
Location Module
Basic configuration of location
Adding geographic data to a node with the Location module
Extending the Location module with the GMap module
Geocoding
Modules
Geocoder and Addressfield
Other geocoding modules and services
4. Displaying Maps
Mapping with the OpenLayers Module
Basic Configuration of OpenLayers
Setting Up an OpenLayers Map
OpenLayers layers
OpenLayers Maps
Using Views to display an OpenLayers map
OpenLayers styles
Exploring OpenLayers Behaviors
Advanced OpenLayers Configuration
Creating an OpenLayers Map Layer from KML
Mapping with the GMap Module
Basic Configuration
Integrating with Views
Other Ways of Displaying Spatial Data
Spatial Data in Tables and Lists
Creating Feeds
5. Extending Map Interactions
GMap
Architecture
Geolocation Example
Creating the geolocation block
Add geolocation options to maps
Add JavaScript
Bind interactions to the map
OpenLayers
Architecture
Geolocation Example
Define Behavior
The Behavior plug-in object
JavaScript interactions
The final touch
Conclusion
6. Making Beautiful Maps
Markers
OpenLayers Styles
GMap Markers
Marker location
Add a marker
The .ini file
Regenerate marker cache
Data-Driven Styling
GMap Marker Handling
OpenLayers Attribute Replacement
The Map Interface
OpenLayers Module
Theming Pop Ups
GMap Theming
OpenLayers Theming
OpenLayers Pop Up Style
Map Tiles
Adding Base Layers to GMap
Adding