[mapguide-users] Tooltips for Point Layers

smamap andre at relajada.com
Sun Nov 18 15:01:31 EST 2007


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#a13822974
Sent from the MapGuide Users mailing list archive at Nabble.com.



More information about the mapguide-users mailing list