O'Reilly logo

OpenLayers 3 : Beginner's Guide by Erik Hazzard, Paul Spencer, Thomas Gratier

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Turning our example into an application

So far, we've accessed data from Flickr, saved it to a file, added it to our map and created a simple photo thumbnail style. This is pretty cool, but we really haven't done much other than just load in the data, from an OpenLayers's point of view. It's useful, but we really haven't created a full-featured web application just yet. So, let's focus on how to build a more useful web-mapping application. To do this, we'll basically need to do two general things:

  1. Add some interactivity to our map.
  2. Use live data. We shouldn't have to manually download a data file every time we want new data—our web application should do it automatically.

Let's focus on the first part, and then change the data source after we develop ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required