[Mapbender-commits] r3946 - branches/2.6/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri May 15 09:28:12 EDT 2009
Author: verenadiewald
Date: 2009-05-15 09:28:12 -0400 (Fri, 15 May 2009)
New Revision: 3946
Modified:
branches/2.6/http/javascripts/geometry.js
Log:
http://trac.osgeo.org/mapbender/ticket/470
Modified: branches/2.6/http/javascripts/geometry.js
===================================================================
--- branches/2.6/http/javascripts/geometry.js 2009-05-15 13:26:01 UTC (rev 3945)
+++ branches/2.6/http/javascripts/geometry.js 2009-05-15 13:28:12 UTC (rev 3946)
@@ -1499,6 +1499,9 @@
* @private
*/
this.drawGeometry = function(t,g,col){
+ var mapframeWidth = mb_mapObj[mapObjInd].width;
+ var mapframeHeight = mb_mapObj[mapObjInd].height;
+
if(t == geomType.point) {
var poiIcon = g.e.getElementValueByName("Mapbender:icon");
for(var i=0, ilen = g.count(); i < ilen; i++){
@@ -1680,12 +1683,6 @@
var diameter = 8;
var minWidth = 8;
var lineWidth = aLineWidth || 2;
- var mapframeWidth = mb_mapObj[mapObjInd].width;
- var mapframeHeight = mb_mapObj[mapObjInd].height;
- eventResizeMap.register(function () {
- mapframeWidth = mb_mapObj[mapObjInd].width;
- mapframeHeight = mb_mapObj[mapObjInd].height;
- });
var style = aStyle;
var canvas = new jsGraphics(aTagName, mb_mapObj[mapObjInd].getDomElement().frameName ? window.frames[mapframe] : window);
canvas.setStroke(lineWidth);
More information about the Mapbender_commits
mailing list