[Mapbender-commits] r5837 - trunk/mapbender/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Mar 26 04:39:22 EDT 2010


Author: christoph
Date: 2010-03-26 04:39:17 -0400 (Fri, 26 Mar 2010)
New Revision: 5837

Modified:
   trunk/mapbender/http/javascripts/geometry.js
Log:


Modified: trunk/mapbender/http/javascripts/geometry.js
===================================================================
--- trunk/mapbender/http/javascripts/geometry.js	2010-03-26 07:44:57 UTC (rev 5836)
+++ trunk/mapbender/http/javascripts/geometry.js	2010-03-26 08:39:17 UTC (rev 5837)
@@ -1830,13 +1830,16 @@
 	 */
 	var drawCircle = function(x, y, diameter, color) {
 		if (typeof Raphael !== "undefined") {
-			var c = canvas.circle(x, y, diameter);
+			var c = canvas.circle(x, y, diameter/2);
 			c.attr({
 				"fill": color,
 				"stroke": color,
 				"stroke-width": lineWidth,
 				"fill-opacity": 0.5
 			});		
+			c.animate({
+				"r" : diameter
+			}, 500, "bounce");
 		}
 		else {
 			canvas.setColor(color);
@@ -1935,6 +1938,9 @@
 	var style = aStyle;
 	if (typeof Raphael !== "undefined") {
 		var canvas = Raphael(this.canvasDivTag.getTag(), map.getWidth(), map.getHeight());
+		map.events.dimensionsChanged.register(function (obj) {
+			canvas.setSize(obj.width, obj.height);
+		});
 	}
 	else {
 		var canvas = new jsGraphics(aTagName, map.getDomElement().frameName ? window.frames[mapframe] : window);



More information about the Mapbender_commits mailing list