For more information, refer to our Special Bulk Sales–Licensing eBook webpage at www.apress.com/info/bulksales. Although every precaution has been taken in the preparation of this work, neither the author(s) nor Apress shall have any liability to any person or entity in respect of any loss or damage caused or alleged to be caused directly or indirectly by the information contained. in this work.
About the Author
About the Technical Reviewer
Acknowledgments
Introduction
Who This Book Is For
Downloading the Code
Introducing the Google Maps API
That's why the Maps API includes methods for making Ajax calls and other things that we now depend on other third-party libraries to do for us. This is not something to worry about as the Google Maps API only uses the decimal degree form.
Transferring from Version 2 to 3
GLOBAL VARIABLES ARE EVIL
I think this is great as it makes the API consistent and makes it really easy to extend. An example of this is when you need to use map boundaries.
Synchronous method calls
You cannot simply call the Map object's getBounds() method after initializing the map, because the map is not ready at that point and has no boundaries. Instead, you should listen for the bounds_changed event before trying to grab it.
Asynchronous method calls
Create a new polygon and immediately add it to the map var polyline = new google.maps.Polyline({. Create a new polygon and immediately add it to the map var polyline = new google.maps.Polyline({.
Creating Your First Map
It is loaded with the
Gambar
Dokumen terkait
Currently, local communities in Soppeng District are building small-scale adaptation strategies based on learned experiences and previous flood events.. Therefore,