19
FINDING YOUR WAY FIXING (CONFLICTING) MAP DATA & BUILDING AN INTERACTIVE CAMPUS MAP Aaron Knight @farktal #heweb14 #WRK6

Finding Your Way (WRK6) - Post-Conference Workshop at HighEdWeb 2014

  • Upload
    farktal

  • View
    536

  • Download
    2

Embed Size (px)

DESCRIPTION

Wayfinding and map data: so many (conflicting) data sources out there, so little time - but so much potential for losing your future students before you’ve even made the pitch. We’ll look at ways to correct your campus data in major mapping systems, and then we’ll use that to form the building blocks of a fairly easy to build, inexpensive, mobile-friendly interactive map for your campus. (This workshop requires at least a working knowledge of JavaScript.)

Citation preview

Page 1: Finding Your Way (WRK6) - Post-Conference Workshop at HighEdWeb 2014

FINDING YOUR WAYFIXING (CONFLICTING) MAP DATA &BUILDING AN INTERACTIVE CAMPUS MAP

Aaron Knight@farktal

#heweb14#WRK6

Page 2: Finding Your Way (WRK6) - Post-Conference Workshop at HighEdWeb 2014

About Me

Senior Programmer/Analyst, Information SystemsState University of New York College of Environmental Science and Forestry (SUNY-ESF)

Syracuse University

2007 B.S. Computer Science/History

2014 M.S. Computer Engineering

From HighEdWeb 2013, photo by Anne Petersen (@apetersen)

Page 3: Finding Your Way (WRK6) - Post-Conference Workshop at HighEdWeb 2014

Today’s Agenda

Background on Mapping

Using the Open Street Map Editor

Introducing Leaflet.js

Building the Big Picture

Where do we go from here?

Q&A

http://www.westga.edu/~distance/orientation/roadsign.jpg

Page 4: Finding Your Way (WRK6) - Post-Conference Workshop at HighEdWeb 2014

Background

One Map To Rule Them All?

Don’t we wish?

How much has your campus changed in the last few years?

Have mapping services caught up?

Many tools, many data sources

http://images1.fanpop.com/images/photos/2300000/Map-of-Middle-Earth-lord-of-the-rings-2329809-1600-

1200.jpg

Page 5: Finding Your Way (WRK6) - Post-Conference Workshop at HighEdWeb 2014

Fixing Mapping Data

Often a tedious process.

Making complete edits is important.

Expedites review

Yes, you will have to do this in many places.

We’re going to talk about one, primarily, today.

Page 6: Finding Your Way (WRK6) - Post-Conference Workshop at HighEdWeb 2014

Be Patient

Be prepared for setbacks.

Page 7: Finding Your Way (WRK6) - Post-Conference Workshop at HighEdWeb 2014

Let’s Talk OpenStreetMap

OpenStreetMap: Open and Free

Extensive Community Support

Rapid Development

Quickly Live

Major Usage

Foursquare/Swarm

Craigslist

MapQuest Open

Let’s have a demo!

Page 8: Finding Your Way (WRK6) - Post-Conference Workshop at HighEdWeb 2014

Let’s Do An Exercise

Log in to OpenStreetMap and make some changes in your campus area.

You can use OpenId, Google, Wordpress, AOL even…

OpenStreetMap.org

Page 9: Finding Your Way (WRK6) - Post-Conference Workshop at HighEdWeb 2014

Leaflet.js

Powerful and lightweight (33kb) JavaScript library

Free

Current version: 0.7.3

http://www.leafletjs.com

Plays nicely on touch devices

Let’s take a tour…

The Leaflet.js logo (leafletjs.com)

Page 10: Finding Your Way (WRK6) - Post-Conference Workshop at HighEdWeb 2014

Let’s Do An ExerciseIntroduction to Leaflet.js

Download Leaflet.js

Create a map and center it on your campus (or a location of your choosing)

Set default zoom levels to a reasonable viewport

Useful reference: http://leafletjs.com/reference.html

Page 11: Finding Your Way (WRK6) - Post-Conference Workshop at HighEdWeb 2014

Let’s take a break!

Page 12: Finding Your Way (WRK6) - Post-Conference Workshop at HighEdWeb 2014

What Now?

Now, you have a map, embedded in a web page, centered on your campus.

Let’s layer some content on it.

Controls

Popups

Useful Plugin

Awesome-Markers

Page 13: Finding Your Way (WRK6) - Post-Conference Workshop at HighEdWeb 2014

Let’s Do An Exercise

Start from the map from the first Leaflet.js exercise.

Add a few points of interest (POIs) to your map.

Make at least one of them pop up with details about it when clicked.

Experiment with other marker types

Circles, Polygons, Lines, Icons

Page 14: Finding Your Way (WRK6) - Post-Conference Workshop at HighEdWeb 2014

Advanced Leaflet.js

Cut Clutter with Layer Groups

Built in option for Leaflet.js

Two kinds: base layers and overlays

Page 15: Finding Your Way (WRK6) - Post-Conference Workshop at HighEdWeb 2014

Let’s Do An Exercise

Last one, I promise!

Group some of the POIs you created in the last exercise into some Layer Groups.

Add those Layer Groups to your map and play with the Layers control.

Create more POIs if you need to.

You may find the Leaflet.jstutorial on the subject useful:http://leafletjs.com/examples/layers-control.html

Leaflet.js Layers Control Example Map

http://leafletjs.com/examples/layers-control-example.html

Page 16: Finding Your Way (WRK6) - Post-Conference Workshop at HighEdWeb 2014

Where do we go from here?

Lots of work being done in this area.

Other tools

http://3.bp.blogspot.com/_urG9xPtgh8E/TCHOm-

sAhAI/AAAAAAAACwk/i4VjlmAkaOk/s1600/Funny+traffic+signs.jpg

Page 17: Finding Your Way (WRK6) - Post-Conference Workshop at HighEdWeb 2014

Integration

WordPress: Maps Marker plugin

Plug and play Leaflet.js for WordPress

gmaps.js

Similar option for Google API

It just works (mostly)

Page 18: Finding Your Way (WRK6) - Post-Conference Workshop at HighEdWeb 2014

Q&A

Any questions?

Page 19: Finding Your Way (WRK6) - Post-Conference Workshop at HighEdWeb 2014

Thank You!

Please fill out your session evaluations!

Slides and Sample Code:http://www.acknight.com/speaking/

Contact Me

Aaron Knight@farktal on [email protected]