SteveW
 Posts:684
View Profile
 |
| 25 Apr 2008 9:00 PM |
|
| Finally got round to doing this...
The idea is that you drag a selector tool onto an area of the map and then click a button. The click event will return records from the database within the selected area. The front end of this is done, I just need to write the SQL script and XML generator to return the data.
You can see the draft version here:
http://www.online-archaeology.co.uk/GoogleMap/pages/bounds.htm
Click the red selector icon in the top left. Drag the box around the map. Drag the right hand corner to resize. The click the magnifier icon. |
|
|
|
|
fabio
 Posts:5
View Profile
 |
| 01 Sep 2007 6:00 PM |
|
| Hi,
I suppose I should have replied to this post rather than creating a new topic...
I think the selector box is great. With firefox, though, the selector box goes crazy when you try to make it smaller.
I notice that the javascript is a further development of this:
http://www.cross-browser.com/x/examples/drag1.php
here resizing works also with firefox (though is not as nice as yours..).
Thanks,
Fabio
Fabio |
|
|
|
|
SteveW
 Posts:684
View Profile
 |
| 01 Sep 2007 6:08 PM |
|
| Yeah it's just a matter of getting some time to get into the details. I've taken my foot off the pedal a bit with the map to concentrate on getting some MapServer stuff integrated, but I'll get back to the UI soon.
Steve White |
|
|
|
|
SteveW
 Posts:684
View Profile
 |
| 25 Apr 2008 9:01 PM |
|
| This is now in the live version:
http://www.online-archaeology.co.uk/GoogleMap
The selector will find any items in any category based on the coordinates of the selection.
I've set a limit to display 100 items at once on the map. Items are returned and grouped by categories in the Items tree node on the left.
You can hide the selector box by clicking the red selector icon at the top left of the map.
You can reset the map to the default by clicking the top left icon within the selector box.
I reckon this is a great addition as it gives a lot of control to the user. |
|
|
|
|