Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Part III: Layar > Chapter 8: Creating Filters and 2D Objects

Chapter 8

Creating Filters and 2D Objects

WHAT’S IN THIS CHAPTER?

  • How to add filtering options
  • How to extend database tables
  • How to add 2D objects to the layer

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.

image

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.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint