Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Chapter 8
Creating Filters and 2D Objects
WHAT’S IN THIS CHAPTER?
In the previous chapter, you created your first layer. You now have the database configured and you should be familiar enough with MySQL to be able to add new POIs and add actions to your POIs. In this chapter, you will build upon your knowledge of Layar by adding advanced functionality (such as radio buttons or checkboxes to filter content). Before you begin, make sure you’ve read Chapter 7.
Since you may want to keep the layer you created in the previous chapter, make a copy of your work by taking a copy of the mylayar.php file. For the sample code used in this chapter, I have created a new layer with the name aprealestate by copying the mylayer.php file created in the previous chapter to create a new file called realestate.php. As you upload the new realestate.php file, remember the URL because this will be the endpoint you enter when you create the layer.