
202 Web Cartography: Map Design for Interactive and Mobile Devices
rules, each with a selector and a descriptor. JavaScript is an object-oriented
programming (OOP) language. It is quite robust. With JavaScript, you can
create new variables (or objects) and functions (or methods that do things to
objects), and you can create loops and conditionals so that functions are only
run on certain objects or when certain parameters are met. Better yet, you
can write a script that does something—say, creates a button that minimizes
all open map elements except the mapped area when it is clicked—and share
it with others or reuse it on all of your maps ( ...