ToolTips Layers

Within this forum we want to offer discussions all around our .NET based Map control including all .Net-language specific questions concerning calls of the xServer-API. Attention: xServer-relevant concepts can be found in further forums such as xRoute or xTour.
Post Reply
Patricia
Posts: 7
Joined: Wed Feb 25, 2015 7:42 am

ToolTips Layers

Post by Patricia »

Hello,
Currently we are using the map control FormsMap (via web service). When we used the old map control (Map&Guide versión 5) this control automatically show tooltips where hovering the mouse on Pois, streets, zip codes, counties, etc. How can we enable theses tooltips with then new control (FormsMap via web service)?
Thanks
User avatar
Bernd Welter
Site Admin
Posts: 2564
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: ToolTips Layers

Post by Bernd Welter »

Hello Patricia,

sounds like your question belongs to this forum?
http://xserver.ptvgroup.com/forum/viewforum.php?f=14

I'll move the post and keep a shadow copy in place :roll:

Best regards,
Bernd
User avatar
Oliver Heilig
Posts: 154
Joined: Tue May 13, 2014 12:10 pm
Location: Karlsruhe, Germany
Contact:

Re: ToolTips Layers

Post by Oliver Heilig »

Hello Patricia,

technically the Basemap element for xMapServer has no tooltips, as these are only bitmaps. The solution for xServer.NET (or any interactive client) would be to do a reverse-gecoding when the mouse pointer doesn't move for a while. I can do a little demo for this use-case next week.

Oliver
User avatar
Oliver Heilig
Posts: 154
Joined: Tue May 13, 2014 12:10 pm
Location: Karlsruhe, Germany
Contact:

Re: ToolTips Layers

Post by Oliver Heilig »

Hello Patricia,

i've added a sample "BasemapTooltips" to

https://github.com/ptv-logistics/xservernet-bin

The sample has a class that adds a tool tip function by calling xLocate:findLocation whenever the mouse is moved. As i said, the xServer.NET control doesn't to this by itself.

Oliver

Image
Post Reply