[OpenLayers-Users] showing tooltip over a mapserver map

Arnd Wippermann arnd.wippermann at web.de
Sun Sep 13 16:16:22 EDT 2009


Hi,

You can select and unselect a feature by hover. See example
http://openlayers.org/dev/examples/select-feature.html
 
It should be possible to show and close the popup accordingly.

Arnd

-----Ursprüngliche Nachricht-----
Von: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] Im
Auftrag von sunny74
Gesendet: Sonntag, 13. September 2009 21:19
An: users at openlayers.org
Betreff: Re: [OpenLayers-Users] showing tooltip over a mapserver map


Hi Christopher,

Thanks for your reply.
I have used Popup in developing another functionality wherein I fetch the
data relating to the layers that a particular lonlat belongs to like
District,Station,Roads etc.I then display it in a pop-up.

The problem with pop-up is tthat it is fixed at one place and needs to be
closed manually.
The tooltip in fact will popup and remain as long as the mouse pointer is at
that particular lonlat but should disappear automatically once the mouse is
out of that position.

It is similar to the functionality in MS Office or Open Office.
Regarding the use of other js libraries like ExtJS or tooltip libraries I
wish to inform u that I don't have any knowledge about them unlike you.
I don't have too much time to do research bec' I need to implement it within
a couple of days in my workplace.

I shall be immensely thankful if you help me with your knowledge in ExtJS or
tooltip libraries so that I am able to achieve my objective.

Thanks again for your kind reply.

Warm Regards.


Christopher Schmidt-2 wrote:
> 
> On Fri, Sep 11, 2009 at 07:27:36AM -0500, sunny74 wrote:
>> 
>> Dear Friends,
>> 
>> I need to show the name of cities as a tooltip on a map.The tooltip 
>> should appear as soon as  the mouse moves over a city.While I am able 
>> to fetch the name of the city from the database I not very sure as to 
>> how to create and display the tooltip.
>> 
>> Pls give the detailed javascript code for the tooltip in the 
>> mousemove events.
> 
> Generally speaking, this type of code is beyond the scope of OpenLayers.
> It is possible to use "Popups" in OpenLayers to achieve this type of 
> functionality, but it is equally possible using other Javascript 
> toolkits like ExtJS or tooltip libraries. I recommend researching more 
> into this type of display outside of OpenLayers.
> 
> Best Regards,
> --
> Christopher Schmidt
> MetaCarta
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
> 
> 

--
View this message in context:
http://n2.nabble.com/showing-tooltip-over-a-mapserver-map-tp3625472p3637675.
html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users




More information about the Users mailing list