Hi,
I am looking at the source for the TIGER demo in the GeoServer demo page and saw something like this:
document.onmouseover = mouseover;
Where is this mouseover declared?
I am trying to do the same hovering effect for my application. But instead of showing an image of the feature, I want to show some information (which is stored in my database) about it. I have the following questions:
- I assume this demonstration can work with other GIS mapping client besides MapBuilder?
- Can I just show some data of the feature retrieved from the WFS request instead of an image? How do I extract the information?
Would greatly appreciate if someone could help me on this. Thank you very much.
Regards,
Lee Wai See
[This e-mail is confidential and may be priviledged. If you are not the
intended recipient, please kindly notify us immediately and delete the message
from your system; please do not copy or use it for any purpose, nor disclose
its contents to any other person. Thank you.]
---ST Electronics Group---
–
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.16.4/615 - Release Date: 1/3/2007
The popup map Tiger demo does not use MapBuilder, it uses straight javascript.
How it works is that when the mouse stops moving, an even it triggered and a get feature request is sent to geoserver using a small bounding box around the mouse. If there is a point underneath (in the bounding box) then the resulting feature is returned and information from it is used to display the appropriate image. That information is just the image name and is stored as a field on the geometry. So yes it is possible to retrieve all of the other data associated with the features that get returned with the request.
The 'document.onmousedown = mousedown' lines you see are functions being assigned to the events. So here there is a function called mousedown() and the on mouse down event is set to use it when the mouse is depressed.
Brent Owens
(The Open Planning Project)
Lee Wai See wrote:
Hi,
I am looking at the source for the TIGER demo in the GeoServer demo page and saw something like this:
document.onmouseover = mouseover;
Where is this mouseover declared?
I am trying to do the same hovering effect for my application. But instead of showing an image of the feature, I want to show some information (which is stored in my database) about it. I have the following questions:
1. I assume this demonstration can work with other GIS mapping client besides MapBuilder?
2. Can I just show some data of the feature retrieved from the WFS request instead of an image? How do I extract the information?
Would greatly appreciate if someone could help me on this. Thank you very much.
Regards,
Lee Wai See
[This e-mail is confidential and may be priviledged. If you are not the
intended recipient, please kindly notify us immediately and delete the message
from your system; please do not copy or use it for any purpose, nor disclose
its contents to any other person. Thank you.]
---ST Electronics Group---
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.16.4/615 - Release Date: 1/3/2007
------------------------------------------------------------------------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users