Map Scripting 101 and over 1.5 million other books are available for Amazon Kindle . Learn more


or
Sign in to turn on 1-Click ordering.
Trade in Yours
For a £8.21 Gift Card
Trade in
More Buying Choices
Have one to sell? Sell yours here
Sorry, this item is not available in
Image not available for
Colour:
Image not available

 
Start reading Map Scripting 101 on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Map Scripting 101: A Guide to Building Interactive Maps and Mashups with Bing, Yahoo!, and Google Maps [Paperback]

Adam DuVander
4.7 out of 5 stars  See all reviews (3 customer reviews)
RRP: £27.49
Price: £21.44 & this item Delivered FREE in the UK with Super Saver Delivery. See details and conditions
You Save: £6.05 (22%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
Only 1 left in stock (more on the way).
Dispatched from and sold by Amazon. Gift-wrap available.
Want delivery by Saturday, 25 May? Choose Express delivery at checkout. See Details

Formats

Amazon Price New from Used from
Kindle Edition £18.22  
Paperback £21.44  
Amazon.co.uk Trade-In Store
Did you know you can trade in your old books for an Amazon.co.uk Gift Card to spend on the things you want? Visit the Books Trade-In Store for more details. Learn more.

Book Description

16 Aug 2010 1593272715 978-1593272715 1

Websites like MapQuest and Google Maps have transformed the way we think about maps. But these services do more than offer driving directions—they provide APIs that web developers can use to build highly customized map-based applications.

In Map Scripting 101, author Adam DuVander delivers 73 immediately useful scripts that will show you how to create interactive maps and mashups. You'll build tools like a local concert tracker, a real-time weather map, a Twitter friend-finder, an annotated map of Central Park, and much more. And because the book is based on the cross-platform Mapstraction JavaScript library, everything you create will be able to use nearly any mapping service, including OpenStreetMap, MapQuest, Google, Yahoo!, and Bing.

You'll also learn how to:

  • Create, embed, and manipulate basic maps by setting zoom levels and map boundaries
  • Show, hide, and filter location markers and info-bubbles
  • Customize your maps for visitors based on their location
  • Use common data formats like GPS XML, Google Earth's KML, and GeoRSS
  • Create graphical overlays on maps to better analyze data and trends
  • Use freely available geodata from websites like Yelp and Upcoming—and public domain geodata from the US government

Map Scripting 101 is perfect for any web developer getting started with map scripting, whether you want to track earthquakes around the world, or just mark the best coffee shops in Dubuque.


Special Offers and Product Promotions

  • Find Your Way Home--Bestselling Sat Navs

    Plan ahead and avoid traffic jams with one of our bestselling sat navs from top brands including TomTom and Garmin. We also stock a great range of up-to-date and fully-routable maps for your device, including popular destinations such as France, Portugal, North America and Scotland.


Frequently Bought Together

Map Scripting 101: A Guide to Building Interactive Maps and Mashups with Bing, Yahoo!, and Google Maps + Beginning Google Maps API 3 2nd Edition (Expert's Voice in Web Development)
Price For Both: £46.00

Buy the selected items together


Product details

  • Paperback: 352 pages
  • Publisher: NO STARCH PRESS; 1 edition (16 Aug 2010)
  • Language: English
  • ISBN-10: 1593272715
  • ISBN-13: 978-1593272715
  • Product Dimensions: 17.9 x 2.3 x 23.7 cm
  • Average Customer Review: 4.7 out of 5 stars  See all reviews (3 customer reviews)
  • Amazon Bestsellers Rank: 184,099 in Books (See Top 100 in Books)
  • See Complete Table of Contents

More About the Author

Discover books, learn about writers, and more.

Product Description

About the Author

Adam DuVander writes about geolocation, web development, and APIs for Programmable Web and WebMonkey, Wired.com's web developer resource. He has presented his work at SXSW and O'Reilly's Where 2.0 conference. He lives at 45° 33' 25" N, 122° 31' 55" W (otherwise known as Portland, Oregon).


Inside This Book (Learn More)
Browse Sample Pages
Front Cover | Copyright | Table of Contents | Excerpt | Index | Back Cover
Search inside this book:

What Other Items Do Customers Buy After Viewing This Item?


Customer Reviews

3 star
0
2 star
0
1 star
0
4.7 out of 5 stars
4.7 out of 5 stars
Most Helpful Customer Reviews
1 of 1 people found the following review helpful
4.0 out of 5 stars Good book - but you need to understand... 7 May 2012
By Stephen Emm TOP 1000 REVIEWER
Format:Paperback|Amazon Verified Purchase
...that this book is built around the opensource Mapstraction project: an abstraction layer that encapsulates multiple heterogeneous mapping service providers - Google, Yahoo and Microsoft-Bing being the three biggies. This is NOT a Google/Bing/Yahoo mapping reference tome.

I can see this being a point of contention with some people just wanting an introductory Google/Yahoo/Bing maps guide who read no further than the book's title and then buy, only to do a massive "wtf?" when they start reading. In defence of the book - it is clearly states in the "Product Description" that Mapstraction will be used - anyone complaining should probably consider being a bit more thorough in their research. Having said that, having "Mapstraction" somewhere in the title could equally have helped.

So, to the book. The style is conversational and, in my opinion, engaging. The initial chaper is a whistle-stop tour of map service providers, plotting coordinates and the obligatory "Hello World" in map format - all good stuff, and nice to actually have a map up and running within a few pages. Mapstraction is introduced and the ability to quickly switch mapping providers is highlighted. By the close, we're playing with map controls and centering.

This leads me to my most valuable gem of information for you - get the code samples from the website, don't type them in from the book. I found at least one typographical error and then ran into (what I think was) a version mismatch between code in the book and the Mapstraction library that I downloaded from the website. This book was published in the dim and distant 2010: that's about 10 years in opensource/perpetual-beta land. I can imagine that this sort of thing will wind-up a proportion of the readership and they'll moan that if this had just been a google maps reference the code would work. I don't mind the challenge (such as it was...) and, crucially, don't have deadlines looming for any mapping projects! From what I can see - the book's website is the de-facto location for working code: use it.

The rest of the book takes you on a nice broad tour of maps and what you can do with them (using Mapstraction). Of particular note - and use - is Chapter 8 which discusses data formats for representing the underlying data, and Chapter 9 which is a little glimpse into the world of driving maps from MySQL databases with PHP as the server-side language of choice. Seasoned PHP/MySQL programmers won't find much of use in Chapter 9 - but those without exposure should benefit - if they can see what's to be gained.

All in all:
- I thought the writing style was good.
- I thought the content was broad, and, though the code is tied to Mapstraction, a lot of the basic material is independent of vendors/implementations.
- I was a little discouraged by the problems with the code in the book, but, once I'd got the code from the web all was well.
- It sparked some ideas that I'd not previously considered.

You can search the contents online - but I thought i'd drop in my own "management summary" of the contents:

Chapter 1: Mapping Basics
- Available mapping apis (500 ft view)
- Takes you through the "hello world" project of mapping
- Shows how to manipulate the basic map controls.
- Shows how to capture a mouse click.

Chapter 2: Plotting Markers and Message Boxes
- Adding/removing markers
- Message boxes for various events
- Custom marker icons
- Zooming to include all markers
- Enumerate markers

Chapter 3: Geocoding
- Javascript vs. HTML geocoders
- Geocoding with Javascript
- Geocoding with HTML Web services (Google, Yahoo + Others)
- Reverse Geocoding with Javascript, Google Web Service
- Post code coordinates database.

Chapter 4: Layer it on
- Drawing lines and shapes
- Draw lines along clicks
- Colour in shapes
- Image overlays
- Custom tiles

Chapter 5: Handling Map Events
- Clicks, Drags and Zoom-level changes
- Marker added/removed
- Line/Shape added/removed
- Message box open/close
- Click marker

Chapter 6: Proximity
- Distance between two points.
- Create driving directions
- Find closest marker
- Plot local routes on map
- Retrieve local results with HTTP
- Check point is within a bounding box/Get random point within a bounding box/shape.
- Get nearest locations from your database

Chapter 7: User Location
- Determining a user's location via JavaScript, Fire Eagle and IP addresses
- Roll your own IP Database

Chapter 8: Data Formats
- XML, JSON, GeoRSS, KML, GPX
- Conversions: XML to JSON
- Yahoo Pipes for sorting/filtering data.

Chapter 9: Go Server-Side
- Installing PHP, PHP Intro, Install MySQL
- Store/Get locations to a database
- Import data from spreadsheet
- Accessing MySQL from PHP
- Get nearest locations from a db
- Get nearest locations to a Post Code

Chapter 10: Mashup Projects
- Weather Map, Recent Earthquakes, Music Events by Location, Twitter Geo-Tweets, Find a coffee shop

There's also Javascript and Mapstraction references in two Appendices.
Comment | 
Was this review helpful to you?
1 of 1 people found the following review helpful
By Vicchi
Format:Paperback
We live in a world where rich and varied software and APIs are freely available on the internet, free to download and free to use. But as it is in the commercial world of software, so it is in the open source and free world of software; however great the product, the documentation ... lacks something.

There's a reason why, 8 years after publication and multiple editions later, David Pogue's "Mac OS X; The Missing Manual" is still one of the most used and most well thumbed books I have ... and that's because it allows me to use my operating system of choice far more effectively than reading the online documentation and searching the various newgroups and online resources.

As it is with OS X, so it is with Mapstraction and Adam DuVander's Map Scripting 101 well warrants the unwritten subtitle of "Mapstraction: The Missing Manual" (we'll gloss over the trademark and legal ramifications of why that can't happen here).

As I'm a contributor of code to Mapstraction my opinion may be considered not without some bias, but if it wasn't for Adam's book allowing me to understand how rich the Mapstraction API is and how it should work, I would never have been able to write the code that I contributed to the project.

The book assumes little technical know how beyond having the ability to edit files and to upload them to a web server. Beyond that, all that is required of the reader is the desire to use maps on a web page. Even if you know no JavaScript a helpful primer in this scripting language is included in the book.

Adam writes from a position of knowledge and passion but at no point is the reader left feeling they're being patronised or spoken down to; often a problem with some technical books.

If you want to put maps on your web site, buy this book. If you want to know how online maps work, buy this book.
Comment | 
Was this review helpful to you?
1 of 1 people found the following review helpful
5.0 out of 5 stars Essential reading for the budding map scripter 1 Mar 2011
Format:Paperback
This book is a great introduction to get you up and running with JavaScript mapping but it covers loads more besides including consuming geographic data services and how you can serve up your own geographic data from a web application. There are a surprisingly wide variety of different scenarios in the book's examples but the concepts and techniques illustrated really open the door for the savvy developer to take their own map applications a lot further.
Comment | 
Was this review helpful to you?
Would you like to see more reviews about this item?
Were these reviews helpful?   Let us know
Search Customer Reviews
Only search this product's reviews

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 

Search Customer Discussions
Search all Amazon discussions
   


Listmania!

Create a Listmania! list

Look for similar items by category


Feedback


Amazon.co.uk Privacy Statement Amazon.co.uk Delivery Information Amazon.co.uk Returns & Exchanges