<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hi Len,<div>I stuck your code the following function definition but even thought the &nbsp;popup shows up it does not contain any information.</div><div><br></div><div>this.onLoadedMapbook = function(mapbookXML) {</div><div>#your hover code</div><div><br></div><div>}</div><div><br></div><div>&nbsp;I changed the line setting the url to the identify.php like this to suite my local settings.</div><div>&nbsp;</div><div>var url = 'http://localhost/moosecache2/php/identify.php?';</div><div><br></div><div>I am not sure if there is something else I need to do to. I have seen it work on your site so it should work on my I suppose.</div><div><br></div><div>Franz</div><div><br></div><div><br></div><div>&gt; From: lkne@houstoneng.com<br>&gt; To: bfraser@geoanalytic.com<br>&gt; Date: Thu, 3 Jun 2010 15:40:50 +0000<br>&gt; CC: geomoose-users@lists.sourceforge.net<br>&gt; Subject: Re: [Geomoose-users] Mouseover map area to show pop up or link<br>&gt; <br>&gt; Performance seems ok, you can try it at http://dev.houstoneng.net/geomoose.html.  Hover over a parcel for 1 second and you should get a popup.  It's different than passing over a marker in OL because the handler is triggered after a pause in mouse movement vs. going over the marker.  The downside is there will be a lot of calls back to the server (could be an issue on a high use app) and in the case of parcels, the number of popups could get annoying to the person looking at the map.  Might work better with point data.<br>&gt; <br>&gt; Len<br>&gt; <br>&gt; -----Original Message-----<br>&gt; From: Brent Fraser [mailto:bfraser@geoanalytic.com] <br>&gt; Sent: Thursday, June 03, 2010 10:05 AM<br>&gt; To: Len Kne<br>&gt; Cc: Geomooselist<br>&gt; Subject: Re: [Geomoose-users] Mouseover map area to show pop up or link<br>&gt; <br>&gt; Len,<br>&gt; <br>&gt; That's impressive!  How's the performance?<br>&gt; <br>&gt; Brent<br>&gt; <br>&gt; Len Kne wrote:<br>&gt; &gt; One way would be to use OL Hover handler - see <br>&gt; &gt; http://openlayers.org/dev/examples/hover-handler.html.  Basically it <br>&gt; &gt; is going to make an ajax call to the identify service when the cursor <br>&gt; &gt; hovers over a spot for a set time.  The script below works in my <br>&gt; &gt; testing environment... it could be enabled as a tool or in onLoadedMapbook().<br>&gt; &gt; <br>&gt; &gt;  <br>&gt; &gt; <br>&gt; &gt; Len<br>&gt; &gt; <br>&gt; &gt;  <br>&gt; &gt; <br>&gt; &gt; // Hover support on WMS and MapServr layers<br>&gt; &gt; <br>&gt; &gt;                 var popup;<br>&gt; &gt; <br>&gt; &gt;                 OpenLayers.Control.Hover = <br>&gt; &gt; OpenLayers.Class(OpenLayers.Control, {               <br>&gt; &gt; <br>&gt; &gt;                 defaultHandlerOptions: {<br>&gt; &gt; <br>&gt; &gt;                     'delay': 500,<br>&gt; &gt; <br>&gt; &gt;                     'pixelTolerance': 20,<br>&gt; &gt; <br>&gt; &gt;                     'stopMove': false<br>&gt; &gt; <br>&gt; &gt;                 },<br>&gt; &gt; <br>&gt; &gt;  <br>&gt; &gt; <br>&gt; &gt;                 initialize: function(options) {<br>&gt; &gt; <br>&gt; &gt;                     this.handlerOptions = OpenLayers.Util.extend(<br>&gt; &gt; <br>&gt; &gt;                         {}, this.defaultHandlerOptions<br>&gt; &gt; <br>&gt; &gt;                     );<br>&gt; &gt; <br>&gt; &gt;                     OpenLayers.Control.prototype.initialize.apply(<br>&gt; &gt; <br>&gt; &gt;                         this, arguments<br>&gt; &gt; <br>&gt; &gt;                     );<br>&gt; &gt; <br>&gt; &gt;                     this.handler = new OpenLayers.Handler.Hover(<br>&gt; &gt; <br>&gt; &gt;                         this,<br>&gt; &gt; <br>&gt; &gt;                         {'pause': this.onPause, 'move': this.onMove},<br>&gt; &gt; <br>&gt; &gt;                         this.handlerOptions<br>&gt; &gt; <br>&gt; &gt;                     );<br>&gt; &gt; <br>&gt; &gt;                 },<br>&gt; &gt; <br>&gt; &gt;  <br>&gt; &gt; <br>&gt; &gt;                 onPause: function(evt) {<br>&gt; &gt; <br>&gt; &gt;                                                 var feature = <br>&gt; &gt; Map.getLonLatFromPixel(evt.xy);<br>&gt; &gt; <br>&gt; &gt;                                                 var url = <br>&gt; &gt; '/php/identify.php?';<br>&gt; &gt; <br>&gt; &gt;                                                 var layersArray = <br>&gt; &gt; GeoMOOSE.getVisibleLayers();<br>&gt; &gt; <br>&gt; &gt;                                                 layers = <br>&gt; &gt; layersArray.join(':');<br>&gt; &gt; <br>&gt; &gt;                                                 var requestOptions = <br>&gt; &gt; OpenLayers.Request.GET({<br>&gt; &gt; <br>&gt; &gt;                                                                 url: <br>&gt; &gt; url,<br>&gt; &gt; <br>&gt; &gt;                                                                 params: <br>&gt; &gt; {'shape': 'POINT(' + feature.lon + ' ' + feature.lat + ')',<br>&gt; &gt; <br>&gt; &gt;                                                                                 <br>&gt; &gt; 'layers': layers,<br>&gt; &gt; <br>&gt; &gt;                                                                                 <br>&gt; &gt; '_moosetime': (new Date()).getTime() },<br>&gt; &gt; <br>&gt; &gt;                                                                 async: <br>&gt; &gt; false<br>&gt; &gt; <br>&gt; &gt;                                                 });<br>&gt; &gt; <br>&gt; &gt;    <br>&gt; &gt; <br>&gt; &gt;                                                 <br>&gt; &gt; if(requestOptions.responseText) {<br>&gt; &gt; <br>&gt; &gt;                                                                 popup <br>&gt; &gt; = new OpenLayers.Popup.FramedCloud("wms",<br>&gt; &gt; <br>&gt; &gt;                                                                                 <br>&gt; &gt; Map.getLonLatFromPixel(evt.xy),<br>&gt; &gt; <br>&gt; &gt;                                                                                 <br>&gt; &gt; null,<br>&gt; &gt; <br>&gt; &gt;                                                                                 <br>&gt; &gt; requestOptions.responseText,<br>&gt; &gt; <br>&gt; &gt;                                                                                 <br>&gt; &gt; null, false);<br>&gt; &gt; <br>&gt; &gt;                                                                 <br>&gt; &gt; Map.addPopup(popup);<br>&gt; &gt; <br>&gt; &gt;                                                 }             <br>&gt; &gt; <br>&gt; &gt;                 },<br>&gt; &gt; <br>&gt; &gt;  <br>&gt; &gt; <br>&gt; &gt;                 onMove: function(evt) {<br>&gt; &gt; <br>&gt; &gt;                                                 if (popup != null) {<br>&gt; &gt; <br>&gt; &gt;                                                 popup.destroy();<br>&gt; &gt; <br>&gt; &gt;                                                 popup = null;<br>&gt; &gt; <br>&gt; &gt;                                                 }<br>&gt; &gt; <br>&gt; &gt;  <br>&gt; &gt; <br>&gt; &gt;                     // if this control sent an Ajax request (e.g. <br>&gt; &gt; GetFeatureInfo) when<br>&gt; &gt; <br>&gt; &gt;                     // the mouse pauses the onMove callback could be <br>&gt; &gt; used to abort that<br>&gt; &gt; <br>&gt; &gt;                     // request.<br>&gt; &gt; <br>&gt; &gt;                 }<br>&gt; &gt; <br>&gt; &gt;             });<br>&gt; &gt; <br>&gt; &gt;  <br>&gt; &gt; <br>&gt; &gt;                 hover = new OpenLayers.Control.Hover();              <br>&gt; &gt; <br>&gt; &gt;                 Map.addControl(hover);<br>&gt; &gt; <br>&gt; &gt;                 hover.activate();<br>&gt; &gt; <br>&gt; &gt;  <br>&gt; &gt; <br>&gt; &gt;  <br>&gt; &gt; <br>&gt; &gt;  <br>&gt; &gt; <br>&gt; &gt; *From:* FRANZ OKYERE [mailto:franzzoa@hotmail.com]<br>&gt; &gt; *Sent:* Wednesday, June 02, 2010 4:28 PM<br>&gt; &gt; *To:* Geomooselist<br>&gt; &gt; *Subject:* Re: [Geomoose-users] Mouseover map area to show pop up or <br>&gt; &gt; link<br>&gt; &gt; <br>&gt; &gt;  <br>&gt; &gt; <br>&gt; &gt; Thanks,<br>&gt; &gt; <br>&gt; &gt;  <br>&gt; &gt; <br>&gt; &gt; But is geomoose not based on open layers? If it is then what we can do <br>&gt; &gt; in open layers should be possible in geomoose, right? I really need to <br>&gt; &gt; do this so if you can point me in the right direction and show me <br>&gt; &gt; which of the javascript files I should be editing that would be nice.<br>&gt; &gt; <br>&gt; &gt;  <br>&gt; &gt; <br>&gt; &gt; Franz<br>&gt; &gt; <br>&gt; &gt; ----------------------------------------------------------------------<br>&gt; &gt; --<br>&gt; &gt; <br>&gt; &gt; Date: Wed, 2 Jun 2010 14:29:24 -0500<br>&gt; &gt; From: Bob.Basques@ci.stpaul.mn.us &lt;mailto:Bob.Basques@ci.stpaul.mn.us&gt;<br>&gt; &gt; To: bfraser@geoanalytic.com &lt;mailto:bfraser@geoanalytic.com&gt;; <br>&gt; &gt; franzzoa@hotmail.com &lt;mailto:franzzoa@hotmail.com&gt;<br>&gt; &gt; CC: geomoose-users@lists.sourceforge.net<br>&gt; &gt; &lt;mailto:geomoose-users@lists.sourceforge.net&gt;<br>&gt; &gt; Subject: Re: [Geomoose-users] Mouseover map area to show pop up or <br>&gt; &gt; link<br>&gt; &gt; <br>&gt; &gt; All,<br>&gt; &gt; <br>&gt; &gt;  <br>&gt; &gt; <br>&gt; &gt; Not on the feature(s), but the layer name/metadata icon in the side menu.<br>&gt; &gt; <br>&gt; &gt;  <br>&gt; &gt; <br>&gt; &gt; bobb<br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt;&gt; &gt;&gt; Brent Fraser &lt;bfraser@geoanalytic.com<br>&gt; &gt; &lt;mailto:bfraser@geoanalytic.com&gt;&gt; wrote:<br>&gt; &gt; <br>&gt; &gt; You mean by simply moving the cursor over the feature but not clicking it?<br>&gt; &gt; Geomoose no (as far as I know). OpenLayers has a hover handler so we <br>&gt; &gt; might be able to use that...<br>&gt; &gt; <br>&gt; &gt; Brent Fraser<br>&gt; &gt; <br>&gt; &gt; FRANZ OKYERE wrote:<br>&gt; &gt;&gt;  Hello all,<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;  I am using geomoose 2.2 and wish to do what google maps or bing maps <br>&gt; &gt;&gt; are  able to do- i.e. mouseover a location on the map and then get <br>&gt; &gt;&gt; the popup  showing up. Any ideas? Is such a thing possible at all in geomoose?<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;  Cheers.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;  Franz<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;  GIS Specialist, Ghana.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;  <br>&gt; &gt;&gt; ---------------------------------------------------------------------<br>&gt; &gt;&gt; ---  Get a free e-mail account with Hotmail. Sign-up now.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;  <br>&gt; &gt;&gt; ---------------------------------------------------------------------<br>&gt; &gt;&gt; ---<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; <br>&gt; &gt; ----------------------------------------------------------------------<br>&gt; &gt; --------<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;  <br>&gt; &gt;&gt; ---------------------------------------------------------------------<br>&gt; &gt;&gt; ---<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;  _______________________________________________<br>&gt; &gt;&gt;  Geomoose-users mailing list<br>&gt; &gt;&gt;  Geomoose-users@lists.sourceforge.net<br>&gt; &gt; &lt;mailto:Geomoose-users@lists.sourceforge.net&gt;<br>&gt; &gt;&gt;  https://lists.sourceforge.net/lists/listinfo/geomoose-users<br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; ----------------------------------------------------------------------<br>&gt; &gt; -------- ThinkGeek and WIRED's GeekDad team up for the Ultimate <br>&gt; &gt; GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental <br>&gt; &gt; unit.  See the prize list and enter to win:<br>&gt; &gt; http://p.sf.net/sfu/thinkgeek-promo<br>&gt; &gt; _______________________________________________<br>&gt; &gt; Geomoose-users mailing list<br>&gt; &gt; Geomoose-users@lists.sourceforge.net<br>&gt; &gt; &lt;mailto:Geomoose-users@lists.sourceforge.net&gt;<br>&gt; &gt; https://lists.sourceforge.net/lists/listinfo/geomoose-users<br>&gt; &gt; <br>&gt; &gt;  <br>&gt; &gt; <br>&gt; &gt; ----------------------------------------------------------------------<br>&gt; &gt; --<br>&gt; &gt; <br>&gt; &gt; Get a new e-mail account with Hotmail - Free. Sign-up now. <br>&gt; &gt; &lt;http://clk.atdmt.com/UKM/go/197222280/direct/01/&gt;<br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; ----------------------------------------------------------------------<br>&gt; &gt; --<br>&gt; &gt; <br>&gt; &gt; ----------------------------------------------------------------------<br>&gt; &gt; -------- ThinkGeek and WIRED's GeekDad team up for the Ultimate <br>&gt; &gt; GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental <br>&gt; &gt; unit.  See the prize list and enter to win:<br>&gt; &gt; http://p.sf.net/sfu/thinkgeek-promo<br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; ----------------------------------------------------------------------<br>&gt; &gt; --<br>&gt; &gt; <br>&gt; &gt; _______________________________________________<br>&gt; &gt; Geomoose-users mailing list<br>&gt; &gt; Geomoose-users@lists.sourceforge.net<br>&gt; &gt; https://lists.sourceforge.net/lists/listinfo/geomoose-users<br>&gt; <br>&gt; <br>&gt; ------------------------------------------------------------------------------<br>&gt; ThinkGeek and WIRED's GeekDad team up for the Ultimate <br>&gt; GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the <br>&gt; lucky parental unit.  See the prize list and enter to win: <br>&gt; http://p.sf.net/sfu/thinkgeek-promo<br>&gt; _______________________________________________<br>&gt; Geomoose-users mailing list<br>&gt; Geomoose-users@lists.sourceforge.net<br>&gt; https://lists.sourceforge.net/lists/listinfo/geomoose-users<br></div>                                               <br /><hr />Get a new e-mail account with Hotmail - Free. <a href='http://clk.atdmt.com/UKM/go/197222280/direct/01/' target='_new'>Sign-up now.</a></body>
</html>