|
|
|
|
|
|
|
Example 8 - Map Moveend
This map hears moveend events. Moveend events are triggered after users have panned the map.
If you click and drag the map you'll see the resulting event:
http://www.lamatek.com/GoogleMaps/example_8.jsp?event=moveend&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 moveend)
- longitude
The new longitude centerpoint of the map.
- latitude
The new latitude centerpoint of the map.
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="moveend" url="/GoogleMaps/example_8b.jsp"/>
<googlemaps:message>
<img src="/GoogleMaps/images/loading.gif"/> Please wait...
</googlemaps:message>
</googlemaps:map>
Our next example examines the zoom event.
|
|
|
|
|
|
|
|
|
|
Google™ and the GoogleMaps API are copyright of Google.
|