<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Tooltip performance</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.5730.11" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=895412718-17112006><FONT face=Arial
color=#0000ff size=2>Or, the one single layer to fetch tooltip information for
could be pre-determined by the variables of display priority, selectability, and
whether they have a tooltip definition. Then, only one query would
occur.</FONT></SPAN></DIV>
<DIV> </DIV><!-- Converted from text/rtf format -->
<P><SPAN lang=en-us><FONT face=Tahoma size=1>Andy </FONT></SPAN><BR></P>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Jason Birch
[mailto:Jason.Birch@nanaimo.ca] <BR><B>Sent:</B> Friday, November 17, 2006 10:22
AM<BR><B>To:</B> users@mapguide.osgeo.org<BR><B>Subject:</B> RE:
[mapguide-users] RE: Tooltip performance<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><SPAN class=820462018-17112006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=820462018-17112006><FONT face=Arial
color=#0000ff size=2>Yes, ideally layers with tooltip properties set would
be queried top-down until there is a hit, and then the loop would short
circuit. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=820462018-17112006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=820462018-17112006><FONT face=Arial
color=#0000ff size=2>Jason</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Andy Morsell
[mailto:amorsell@spatialgis.com] <BR><B>Sent:</B> Friday, November 17, 2006
10:19<BR><B>To:</B> users@mapguide.osgeo.org<BR><B>Subject:</B> RE:
[mapguide-users] RE: Tooltip performance<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><SPAN class=082401718-17112006><FONT face=Arial
color=#0000ff size=2>Why is each FeatureSource for each layer queried when it is
only the top-most layer in the display priority that should display the
tooltip?</FONT></SPAN></DIV>
<DIV> </DIV><!-- Converted from text/rtf format -->
<P><SPAN lang=en-us><FONT face=Tahoma size=1>Andy </FONT></SPAN><BR></P>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Trevor Wekel
[mailto:trevor.wekel@autodesk.com] <BR><B>Sent:</B> Friday, November 17, 2006
9:54 AM<BR><B>To:</B> Campbell, Keith A;
users@mapguide.osgeo.org<BR><B>Subject:</B> [mapguide-users] RE: Tooltip
performance<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><SPAN class=032083117-17112006><FONT face=Arial
color=#0000ff size=2>Hi Keith,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=032083117-17112006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=032083117-17112006><FONT face=Arial
color=#0000ff size=2>You are correct with the basic flow of events for
generating the tooltips. The AJAX client sends the map coordinates of the
point along with the map name to the Web Extensions. The Web
Extensions in turn, forwards this information to the Server.
Once at the server, all of the layers in the map are queried to see
if they have any features underneath the point. Since every layer is
queried, the performance will depend on the number of layers in
the Map. Each FeatureSource for each layer will be queried. If
you have a number of layers from external databases, the database will be
queried for each layer.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=032083117-17112006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=032083117-17112006><FONT face=Arial
color=#0000ff size=2>Feature Service connection pooling and caching may
help. These are controlled by the following settings in serverconfig.ini
and should be accessible from Server Admin.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=032083117-17112006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=032083117-17112006><FONT face=Arial
color=#0000ff size=2>[FeatureServiceProperties]</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=032083117-17112006><FONT face=Arial
color=#0000ff size=2>DataConnectionPoolSize =
20<BR>DataConnectionPoolExcludedProviders =
OSGeo.SDF,OSGeo.SHP<BR>DataConnectionPoolEnabled = 1<BR>DataCacheSize =
100<BR>CacheSize = 100</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=032083117-17112006></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=032083117-17112006><FONT face=Arial
color=#0000ff size=2>Just as a side note, I think MapGuide 6.x handles tooltip
generation client side. I don't think it goes back to the server so it
will be less affected by server load.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=032083117-17112006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=032083117-17112006><FONT face=Arial
color=#0000ff size=2>Thanks,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=032083117-17112006><FONT face=Arial
color=#0000ff size=2>Trevor</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Campbell, Keith A
[mailto:keith.campbell@atkinsglobal.com] <BR><B>Sent:</B> Friday, November 17,
2006 6:53 AM<BR><B>To:</B> users@mapguide.osgeo.org<BR><B>Subject:</B> Tooltip
performance<BR></FONT><BR></DIV>
<DIV></DIV><!-- Converted from text/rtf format -->
<P><FONT face=Arial size=2>I'm finding that the performance of the tooltips is
varying greatly and I'd like to understand what is going on behind the scenes
and therefore what factors are affecting this.</FONT></P>
<P><FONT face=Arial size=2>Presumably when the cursor s moved over the map, a
mouseover event is triggered and this sends the position information and state
of the layers is sent back to the server via an xmlhttprequest. The web
extensions are used to identify what object on what layer is at the map
location, and the tooltip data is queried and returned to the client, which is
then displayed. So factors affecting this process will be what is happening on
the client machine, the network, and the server at the time the process
occurs.</FONT></P>
<P><FONT face=Arial size=2>The performance seems to change a great deal from
very good to unacceptably slow (the user would give up). I find this change
strange because other applications (e.g. MapGuide 6.x) run from the same client
to the same server are not varying nearly as much. It is also strange in that
the initial request for the layout and subsequent requests for layer data are
not particularly slow when the tooltips are. Are there any settings which can be
altered to improve this? This kind of unreliability could almost rule this
technology out in my view.</FONT></P>
<P><FONT face=Arial size=2>Keith</FONT> </P><BR><BR>
<P align=center><FONT style="BACKGROUND-COLOR: #ffffff"
color=#ff0000><STRONG><FONT color=#000000>This email and any attached files are
confidential and copyright protected. If you are not the addressee, any
dissemination of this communication is strictly prohibited. Unless otherwise
expressly agreed in writing, nothing stated in this communication shall be
legally binding</FONT>.</STRONG></FONT><A
href="http://www.blackspider.com/"><FONT style="BACKGROUND-COLOR: #ffffff"
color=#000000></FONT></A></P></BODY></HTML>