.comment-link {margin-left:.6em;}

all things tasmanian

food - wine - wilderness - culture - art - craft - accommodation - tourism - events - attractions - politics - green things - development - economy - social - mary mania -industry - news - happenings - people - weather - nature - history - creatives - thinkers - science - innovators ... et al ... and the list goes on ... & on ... anon ... in this timeless island

<

Monday, March 20, 2006

Google Maps API Basic Tutorial

Google Maps API Basic Tutorial: "This tutorial is intended to help you create your own interactive maps using the Google API. Do take a look at the Google documentation first.
There are two ways to use this tutorial:
Read it and try to understand the principles involved.
Use the example files as templates. Paste the code into your own web page and change the API key and data. Read the 'potential pitfalls' sections, and try to avoid them.
Using the Google Map API is not easy if you don't have much Javascript experience.
If you find the Google documentation too difficult to understand, it's not because it's badly written it's just that the subject is not easy.
I've put together some of the concepts that are explained in the Google documentation to achieve some of the basic mapping applications that might be useful.
The tutorial covers some of the standard types of operations that you may like to perform. Each of the operations is covered twice, once using 'conventional' programming techniques and once using a slightly more elegant approach that makes use of the object-oriented language features.
If you're a programming newbie, or more familiar with non-object-oriented programming languages, then I suggest that you just follow the conventional programming sections.
If you're familiar with object-oriented programming, then why not try the object-oriented approach.
Conventional programming
Part 1 Markers with info windows
Part 2 Adding a clickable sidebar
Part 3 Loading the data from an XML file
Part 4 Getting directions
Part 5 Onload functions and external controls
Part 6 Images and Links in info windows
Part 7 Loading polyline data from an XML file
Part 8 Maps in articles

Object-oriented approach
Part 1 Markers with info windows
Part 2 Adding a clickable sidebar"

0 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home