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

Understanding how themes work using the img folder

Understanding how themes work using the img folder

As explained in the Introduction section of this chapter, there are controls that are themed simply using the images stored in the img folder.

This way is the oldest way to theme a control, and for newer implementations, the preferred way of theming is using CSS, that is, using the theme folder.

Until its update, we could make use of controls that work with any of the two forms of theming, so it is important to know how to theme both.

In this recipe, we are going to describe how to theme the PanZoomBar control that uses the old way based on the images in the img folder.

How to do it...

  1. Create an HTML ...

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