|
|
|
|
|
|
|
Example 8 - Map Clicks
Here we're going to examine all 4 map events. For simplicity, we've created a separate
map for each event type.
This map hears click events. If you click on the map you'll see the resulting event:
http://www.lamatek.com/GoogleMaps/example_8.jsp?event=click&map=map1&longitude=xxx&latitude=xxx
These parameters are provided:
- map
The id of the map that generated the event.
- event
The event type that was triggered (this example is click)
- longitude
The longitude at which the event occured.
- latitude
The latitude at which the event occured.
Here's the code we used:
<googlemaps:map id="map1" width="250" height="300" version="2"
type="STREET" zoom="12">
<googlemaps:key domain="www.lamatek.com" key="xxxxx"/>
<googlemaps:point id="point1" address="74 Connors Lane"
city="Elkton" state="MD" zipcode="21921" country="US"/>
<googlemaps:event action="click" url="/GoogleMaps/example_8.jsp"/>
<googlemaps:message>
<img src="/GoogleMaps/images/loading.gif"/> Please wait...
</googlemaps:message>
</googlemaps:map>
Our next example examines the moveend event.
|
|
|
|
|
|
|
|
|
|
Google™ and the GoogleMaps API are copyright of Google.
|