[OpenLayers-Users] "P is undefined"-Error after builing a singleFile-edition

Marco Scheuble mail at marco-scheuble.de
Fri Aug 26 07:40:46 EDT 2011


Hi all,

I extended Openlayers with the Class = OpenLayers.Layer.Wetter4.
As long as I'm using 'lib/OpenLayers.js' everything works fine. 
But if I take the builded singleFile 'OpenLayers.js' I get the error: "P is
undefined".

Anyone can give me a hint?

Thanks in advance,
Marco

---------------------------------------------

OpenLayers.Layer.Wetter4 = OpenLayers.Class(OpenLayers.Layer.TMS, {

        initialize: function(name, url, options) {
            OpenLayers.Layer.TMS.prototype.initialize.apply(this, [name,
url, options]);
            this.singleTile = true;
            this.ratio = 1;
            this.options.setting = '&leg=nil&a=image';
        },
        
        getURL: function(bounds) {
	    var x1 = bounds.left;
	    var x2 = bounds.right;
	    var y1 = bounds.bottom;
	    var y2 = bounds.top;

	    var date = (this.options.dt != undefined) ? this.options.dt : '';
	    var q = this.options.query;
	    var setting = this.options.setting;
            setting += '&x=' + this.tileSize.w + '&y=' + this.tileSize.h;
	    var src = this.url + 'q=' + q + setting + '&x1=' + x1 + '&x2=' + x2 +
'&y1=' + y1 + '&y2=' + y2 + '&dt=' + date;

            return src;
        },

        CLASS_NAME: 'OpenLayers.Layer.Wetter4'
    }); 

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/P-is-undefined-Error-after-builing-a-singleFile-edition-tp6728395p6728395.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list