Showing posts with label tools. Show all posts
Showing posts with label tools. Show all posts

Monday, January 15, 2007

A simple tool for drawing a polyline

The bottom of the page of this log, you will find "Let's play with Google Map". This is a "HTML/JavaScript" page element with source as follows:

<div style="border-style:none;" class="post-body">
   <div style="height:450px;" class="OMapFramePH"></div>
   <p style="display:none;">Start by clicking
   <a href="http://maps.google.com/maps?ll=25.101747,121.548840">here</a>.</p>
   <div class="OMapMarkerWorkArea"></div>
</div>

If you click on the map, a marker appears. If you click again at another place, you will see a line on the map. And you can see the ordered list bellow the map. If you are using Firefox, please select this ordered list, make a right click to select "view selection source", you will see the html source for the line you draw by clicking on the map.

If you want to undo the last click, click the marker.