15
Maps in Drupal Finding your way... literally. Thursday, June 27, 13

Maps in Drupal...Drupal dev since 2006 Cat herder Thursday, June 27, 13 The Drupal Way... GMap Open Layers Leaflet MapBox IP Geolocation Views & Maps Geofield Location Geolocation

  • Upload
    others

  • View
    10

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Maps in Drupal...Drupal dev since 2006 Cat herder Thursday, June 27, 13 The Drupal Way... GMap Open Layers Leaflet MapBox IP Geolocation Views & Maps Geofield Location Geolocation

Maps in DrupalFinding your way... literally.

Thursday, June 27, 13

Page 2: Maps in Drupal...Drupal dev since 2006 Cat herder Thursday, June 27, 13 The Drupal Way... GMap Open Layers Leaflet MapBox IP Geolocation Views & Maps Geofield Location Geolocation

BioEric Aitala

Earth and Space Science Partnership - College of Earth & Mineral [email protected]@aitalaDrupal dev since 2006Cat herder

Thursday, June 27, 13

Page 3: Maps in Drupal...Drupal dev since 2006 Cat herder Thursday, June 27, 13 The Drupal Way... GMap Open Layers Leaflet MapBox IP Geolocation Views & Maps Geofield Location Geolocation

The Drupal Way...GMap

Open Layers

Leaflet

MapBox

IP Geolocation Views & Maps

Geofield

Location

Geolocation Field

Addressfield

GeoPHP

Geofile

Geocoder

and so on, and so on...

Thursday, June 27, 13

Page 4: Maps in Drupal...Drupal dev since 2006 Cat herder Thursday, June 27, 13 The Drupal Way... GMap Open Layers Leaflet MapBox IP Geolocation Views & Maps Geofield Location Geolocation

So what do I do...?Check d.o.

https://drupal.org/node/241563

Get this book.‘Mapping with Drupal’ - O’Reilly

Not perfect, but it’s a start.http://shop.oreilly.com/product/0636920021230.do

Stare at the screen...

Thursday, June 27, 13

Page 5: Maps in Drupal...Drupal dev since 2006 Cat herder Thursday, June 27, 13 The Drupal Way... GMap Open Layers Leaflet MapBox IP Geolocation Views & Maps Geofield Location Geolocation

What do you need to map?What modules you need will really depend on what you need to map...

GIS data - state borders, rivers

Single location - address, lat / long, GPS

Distances - directions, user distance from a location

Data - city population, heat maps

...?

Thursday, June 27, 13

Page 6: Maps in Drupal...Drupal dev since 2006 Cat herder Thursday, June 27, 13 The Drupal Way... GMap Open Layers Leaflet MapBox IP Geolocation Views & Maps Geofield Location Geolocation

IPMS/USA Events exampleIn this case, hobby shows across the US.

Place

Time

Type - Local, Regional, National

So create a map and a calendar site...

Thursday, June 27, 13

Page 7: Maps in Drupal...Drupal dev since 2006 Cat herder Thursday, June 27, 13 The Drupal Way... GMap Open Layers Leaflet MapBox IP Geolocation Views & Maps Geofield Location Geolocation

Event Example...A specific place

An address

4600 World Dr.Lake Buena Vista, FL 32830

Searchable by State

Placed on a map

Link to Google Maps

Thursday, June 27, 13

Page 8: Maps in Drupal...Drupal dev since 2006 Cat herder Thursday, June 27, 13 The Drupal Way... GMap Open Layers Leaflet MapBox IP Geolocation Views & Maps Geofield Location Geolocation

Event Example...In a specific Region

IPMS/USA has 12 Regions across the US

Events need to be within a Region

Searchable by Region

Regions have a geographical extent

All of NC & SC, for example

Thursday, June 27, 13

Page 9: Maps in Drupal...Drupal dev since 2006 Cat herder Thursday, June 27, 13 The Drupal Way... GMap Open Layers Leaflet MapBox IP Geolocation Views & Maps Geofield Location Geolocation

Event Content TypeName

Date - start & end

Location - addressLink to Google Maps

Mini Map on event node

Type - taxonomyLocal, Regional, National

Indicate this on the map(s) via color?

RegionDisplay on map(s)

Make it a new content type

Plus some other admin items...

Thursday, June 27, 13

Page 10: Maps in Drupal...Drupal dev since 2006 Cat herder Thursday, June 27, 13 The Drupal Way... GMap Open Layers Leaflet MapBox IP Geolocation Views & Maps Geofield Location Geolocation

Region Content TypeName

Number - 1 to 13Color for map(s)

Geographical Extentneed a location that is a boundary

actually ‘drew’ these by hand

Thursday, June 27, 13

Page 11: Maps in Drupal...Drupal dev since 2006 Cat herder Thursday, June 27, 13 The Drupal Way... GMap Open Layers Leaflet MapBox IP Geolocation Views & Maps Geofield Location Geolocation

Event - ModulesLocation

AddressfieldGeocoderGeofield

Geofield MapGeoPHPAddress Field Static Map

TaxonomyColorsjQuery Colorpicker

RegionEntity Reference

Thursday, June 27, 13

Page 12: Maps in Drupal...Drupal dev since 2006 Cat herder Thursday, June 27, 13 The Drupal Way... GMap Open Layers Leaflet MapBox IP Geolocation Views & Maps Geofield Location Geolocation

Region - ModulesNumber

ColorsjQuery Colorpicker

Geographical ExtentTime to pick a mapping method!

Open Layers......

Open LayersOL ModuleOL UIOL ViewsProj4JS - required libraryViews

Thursday, June 27, 13

Page 13: Maps in Drupal...Drupal dev since 2006 Cat herder Thursday, June 27, 13 The Drupal Way... GMap Open Layers Leaflet MapBox IP Geolocation Views & Maps Geofield Location Geolocation

What is Open Layers?OL is an open source JavaScript library for displaying map data in web browsers

D7 module supports OpenStreetMap, Google Maps, Yahoo Maps, Bing Maps, TMS, WMS, CloudMade, XYZ map types and the MapBox maps

Views integration

http://openlayers.org

https://drupal.org/project/openlayers

Thursday, June 27, 13

Page 14: Maps in Drupal...Drupal dev since 2006 Cat herder Thursday, June 27, 13 The Drupal Way... GMap Open Layers Leaflet MapBox IP Geolocation Views & Maps Geofield Location Geolocation

Why Open Layers?Multiple pieces of information on a map

US MapRegion Location of showType of show

D7 GMap Module in dev

Multiple map servicesi.e. not Google

Google map API changes

US Map

Regions

Locations

Ability to add styles

Other slick behaviors

Thursday, June 27, 13

Page 15: Maps in Drupal...Drupal dev since 2006 Cat herder Thursday, June 27, 13 The Drupal Way... GMap Open Layers Leaflet MapBox IP Geolocation Views & Maps Geofield Location Geolocation

Demo...

Thursday, June 27, 13