[mapguide-users] Tooltips for Point Layers

uXuf yousuf.hassan at gmail.com
Mon Nov 19 19:30:34 EST 2007


Well that's a neat hack smamap, it doesn't amply but somewhat resolves my
problem. Need to go through it a little bit more to exactly fit my needs.
Thanks for the insight.

I hope there comes out a better solution for this...

Regards,
uXuf



smamap wrote:
> 
> I had the same problem.  Changing the size of the icons in MapGuide Studio
> has no effect, the selectable area continues to be almost impossibly
> small.  I edited ajaxmappane.templ to make my application work better. 
> I'm pretty new at this too, so there may be a better way.   
> 
> Adjust tolerance for point selection from 2 to 10 by changing function
> ExecuteRectangleTool
> 		
> 
> 	    else if(tool == 0)
> 	    {
> 	        if((x2 - x1 <= 2) && (y2 - y1 <= 2))
> 	        {
> 	            pt1 = ScreenToMapUnits(x1-10, y1-10); 
> 	            pt2 = ScreenToMapUnits(x1+10, y1+10);
> 	            RequestPointSelection(pt1.X, pt1.Y, pt2.X, pt2.Y, appending);
> 	        }
> 	        else
> 	        {
> 	            pt1 = ScreenToMapUnits(x1, y1);
> 	            pt2 = ScreenToMapUnits(x2, y2);
> 	            RequestRectSelection(pt1.X, pt1.Y, pt2.X, pt2.Y, appending);
> 	        }
> 
> Adjust tolerance for tool tips from 2 to 10 in function
> RequestHyperLinkData
> 
> 
> 	    req.setRequestHeader("Content-Type",
> "application/x-www-form-urlencoded");
> 	    x1 = x - 10; x2 = x + 10;
> 	    y1 = y - 10; y2 = y + 10;
> 	    pt1 = ScreenToMapUnits(x1,y1);
> 	    pt2 = ScreenToMapUnits(x2,y2);
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Tooltips-for-Point-Layers-tf4806687s16610.html#a13848623
Sent from the MapGuide Users mailing list archive at Nabble.com.



More information about the mapguide-users mailing list