O'Reilly logo

OpenLayers Cookbook by Antonio Santiago Perez

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

Chapter 1. Web Mapping Basics

In this chapter we cover:

  • Creating a simple full screen map
  • Different ways to include OpenLayers
  • Understanding base and non-base layers
  • Avoiding the need of a base layer
  • Playing with the map's options
  • Managing map's stack layers
  • Managing map's controls
  • Moving around the map view
  • Restricting the map extent

Introduction

Every history has a beginning, in the same way every recipe starts with the initial condiments.

This chapter shows us the basics and more important things that we need to know when we start creating our first web mapping applications with OpenLayers.

As we will see in this chapter and the following chapters, OpenLayers is a big and complex framework but, at the same time it is also very powerful and flexible.

In contrast ...

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