|
|
|
|
|
|
|
Example 1
This simple map places a single marker at a specified address. Nothing too fancy,
but still very cool.
Here's the code we used:
<googlemaps:map id="map" width="250" height="300" version="2" type="STREET"
zoom="12">
<googlemaps:key domain="localhost" key="xxxx"/>
<googlemaps:point id="point1" address="74 Connors Lane" city="Elkton"
state="MD" zipcode="21921" country="US"/>
<googlemaps:marker id="marker1" point="point1"/>
</googlemaps:map>
This particular marker uses a street address to define it's location. We could
just as easily used a longitude/latitude pair or even an IP address.
There's not much we could do with this. I mean, who cares about a little red marker on some non-descript place?
In example 2, we'll add a clickable info window to display what we're looking at.
|
|
|
|
|
|
|
|
|
|
Google™ and the GoogleMaps API are copyright of Google.
|