Google Maps JavaScript API Cookbook
eBook - ePub

Google Maps JavaScript API Cookbook

Alper Dincer, Balkan Uraz

Share book
  1. 316 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Google Maps JavaScript API Cookbook

Alper Dincer, Balkan Uraz

Book details
Book preview
Table of contents
Citations

About This Book

In Detail

Day by day, the use of location data is becoming more and more popular, and Google is one of the main game changers in this area. The Google Maps JavaScript API is one of the most functional and robust mapping APIs used among Geo developers. With Google Maps, you can build location-based apps, maps for mobile apps, visualize geospatial data, and customize your own maps.

Google Maps JavaScript API Cookbook is a practical, hands-on guide that provides you with a number of clear, step-by-step recipes that will help you to unleash the capabilities of the Google Maps JavaScript API in conjunction with open source or commercial GIS servers and services through a number of practical examples of real world scenarios.

This book begins by covering the essentials of including simple maps for Web and mobile, adding vector and raster layers, styling your own base maps, creating your own controls and responding to events, and including your own events.

You will learn how to integrate open source or commercial GIS servers and services including ArcGIS Server, GeoServer, CartoDB, Fusion Tables, and Google Maps Engine with the Google Maps JavaScript API. You will also extend the Google Maps JavaScript API to push its capabilities to the limit with additional libraries and services including geometry, AdSense, geocoding, directions, and StreetView.

This book covers everything you need to know about creating a web map or GIS applications using the Google Maps JavaScript API on multiple platforms.

Approach

Google Maps JavaScript API Cookbook follows a fast-paced, high-level, structured cookbook approach, with minimal theory and an abundance of practical, real-world examples explained in a thorough yet concise manner to help you learn quickly and efficiently.

Who this book is for

Google Maps JavaScript API Cookbook is for developers who wish to learn how to do anything from adding a simple embedded map to a website to developing complex GIS applications with the Google Maps JavaScript API. It is targeted at JavaScript developers who know how to get by but who are also seeking the immediacy of recipe-based advice.

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on ā€œCancel Subscriptionā€ - itā€™s as simple as that. After you cancel, your membership will stay active for the remainder of the time youā€™ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlegoā€™s features. The only differences are the price and subscription period: With the annual plan youā€™ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, weā€™ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is Google Maps JavaScript API Cookbook an online PDF/ePUB?
Yes, you can access Google Maps JavaScript API Cookbook by Alper Dincer, Balkan Uraz in PDF and/or ePUB format, as well as other popular books in Computer Science & Web Services & APIs. We have over one million books available in our catalogue for you to explore.

Information

Year
2012
ISBN
9781849698825
Edition
1

Google Maps JavaScript API Cookbook


Table of Contents

Google Maps JavaScript API Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Google Maps JavaScript API Basics
Introduction
Creating a simple map in a custom DIV element
Getting ready
How to do itā€¦
How it works...
Creating a simple fullscreen map
Getting ready
How to do itā€¦
How it works...
There's more...
See also
Moving from the Web to mobile devices
Getting ready
How to do itā€¦
How it works...
There's more...
See also
Changing map properties programmatically
Getting ready
How to do itā€¦
How it works...
See also
Changing base maps
Getting ready
How to do itā€¦
How it works...
There's more...
See also
2. Adding Raster Layers
Introduction
Styling of Google base maps
Getting ready
How to do itā€¦
How it works...
There's more...
Using different tile sources as base maps
Getting ready
How to do itā€¦
How it works...
See also
Adding tile overlays to maps
Getting ready
How to do itā€¦
How it works...
There's more...
Adding image overlays to maps
Getting ready
How to do itā€¦
How it works...
Changing the transparency of overlays
Getting ready
How to do itā€¦
How it works...
Creating a heat map
Getting ready
How to do itā€¦
How it works...
There's more...
See also
Adding the traffic layer
Getting ready
How to do itā€¦
How it works...
Adding the transit layer
Getting ready
How to do itā€¦
How it works...
Adding the bicycling layer
Getting ready
How to do itā€¦
How it works...
Adding the weather and cloud layers
Getting ready
How to do itā€¦
How it works...
There's more...
Adding the Panoramio layer
Getting ready
How to do itā€¦
How it works...
There's more...
3. Adding Vector Layers
Introduction
Adding markers to maps
Getting ready
How to do itā€¦
How it works...
There's more...
See also
Adding popups to markers or maps
Getting ready
How to do itā€¦
How it works...
See also
Adding lines to maps
Getting ready
How to do itā€¦
How it works...
See also
Adding polygons to maps
Getting ready
How to do itā€¦
How it works...
See also
Adding circles/rectangles to maps
Getting ready
How to do itā€¦
How it works...
There's more...
See also
Adding animated lines to maps
Getting ready
How to do itā€¦
How it works...
There's more...
See also
Adding KML/GeoRSS layers
Getting ready
How to do itā€¦
How it works...
See also
Adding GeoJSON to the Google Maps JavaScript API
Getting ready
How to do itā€¦
How it works...
See also
Adding WKT to the Google Maps JavaScript API
Getting ready
How to do itā€¦
How it works...
See also
4. Working with Controls
Introduction
Adding and removing controls
Getting ready
How to do itā€¦
How it works...
There's more...
Changing the position of controls
Getting ready
How to do itā€¦
How it works...
Creating and adding a geolocation control
Getting ready
How to do itā€¦
How it works...
Creating a table of contents control for layers
Getting ready
How to do itā€¦
How it works...
Adding your own logo as a control
Getting ready
How to do itā€¦
How it works...
5. Understanding Google Maps JavaScript API Events
Introduction
Creating two synced maps side by side
Getting ready
How to do itā€¦
How it works...
There's moreā€¦
See also
Getting the coordinates of a mouse click
Getting ready
How to do itā€¦
How it works...
There's moreā€¦
See also
Creating a context menu on a map
Getting ready
How to do itā€¦
How it works...
See also
Restricting the map extent
Getting ready
How to do itā€¦
How it works...
See also
Creating a control that shows coordinates
Getting ready
How to do itā€¦
How it works...
See also
Creating your own events
Getting ready
How to do itā€¦
How it works...
See also
6. Google Maps JavaScript Libraries
Introduction
Drawing shapes on the map
Getting ready
How to do it...
How it works...
There's more...
Calculating the length/area of polylines and polygons
Getting ready
How to do it...
How it works...
There's more...
See also
Encoding coordinates
Getting ready
How to do it...
How it works...
Searching for and showing nearby places
Getting ready
How to do it...
How it works...
There's more...
Finding places with the autocomplete option
Getting ready
How to do it...
How it works...
There's more...
Adding drag zoom to the map
Getting ready
How to do it...
How it works...
See also
Creating custom popups/infoboxes
Getting ready
How to do it...
How it works...
See also
7. Working with Services
Introduction
Finding coordinates for an address
Getting ready
How to do itā€¦
How it works...
There's more...
See also
Finding addresses on a map with a click
Getting ready
How to do itā€¦
How it works...
See also
Getting elevations on a map with a click
Getting ready
How to do itā€¦
How it works...
See also
Creating a distance matrix for the given locations
Getting ready
How to do itā€¦
How it works...
See also
Getting directions for the given locations
Getting ready
How to do itā€¦
How it works...
See also
Adding Street View to your maps
Getting ready
How to do itā€¦
How it works...
8. Mastering the Google Maps JavaScript API through Advanced Recipes
Introduction
Adding WMS layers to maps
Getting ready
How to do itā€¦
How it works...
There's moreā€¦
See also
Adding Fusion Tables layers to maps
Getting ready
How to do itā€¦
How it works...
See also
Adding CartoDB layers to maps
Getting ready
How to do itā€¦
How it wo...

Table of contents