[Seaside] Re: GMZoomLevelMarkers d'ont work fine when call from SUComponent subclass

dtrussardi at tiscali.it dtrussardi at tiscali.it
Fri Mar 12 10:10:48 UTC 2010


Hi ,

| i do a test do display the GMZoomLevelMarkers.
|
| When i call it from a SUComponent subclass the markers aren't  display into map.
|
| For test it add to SUAllTests this:
|
| add: 'testDTR' -> (Array 
| 			with: 'test' -> GMZoomLevelMarkers new );
|
|
| The browser debug report error but I d'ont understand because ?
|
| Any considerations ?
|
|
i found this problem :


the data relative to the markers are load at: 

	updateRoot: anHtmlRoot

		super updateRoot: anHtmlRoot.
		anHtmlRoot javascript  url: 'http://gmaps-utility-library.googlecode.com/svn/trunk/markermanager/release/src/markermanager.js';
		yourself.
		 anHtmlRoot javascript 	url: 'http://gmaps-utility-library.googlecode.com/svn/trunk/markermanager/release/examples/google_northamerica_offices.js';
 		yourself. 

Now when i call the application from SUComponent subclass the data is load but with some other informations ( i think relative methods ) and this create the error.

For example the zoom Array result:

Object
places: Array
zoom: Array
0: 0
1: 3
_each: function forEach() {
_reverse: function reverse() {
all: function (C, B) {C=C?C.bind(B):Prototype.K;var A=true;this.each(function(E,D){A=A&&!!C(E,D);if(!A){throw $break}});return A;}
any: function (C, B) {C=C?C.bind(B):Prototype.K;var A=false;this.each(function(E,D){if(A=!!C(E,D)){throw $break}});return A;}
clear: function () {this.length=0;return this;}
clone: function () {return[].concat(this);}
collect: function (C, B) {C=C?C.bind(B):Prototype.K;var A=[];this.each(function(E,D){A.push(C(E,D))});return A;}
compact: function () {return this.select(function(A){return A!=null});}
detect: function (C, B) {C=C.bind(B);var A;this.each(function(E,D){if(C(E,D)){A=E;throw $break}});return A;}
each: function (C, B) {var A=0;C=C.bind(B);try{this._each(function(E){C(E,A++)})}catch(D){if(D!=$break){throw D}}return this;}
eachSlice: function (D, C, B) {C=C?C.bind(B):Prototype.K;var A=-D,E=[],F=this.toArray();while((A+=D)<F.length){E.push(F.slice(A,A+D))}return E.collect(C,B);}
entries: function () {return this.map();}
every: function (C, B) {C=C?C.bind(B):Prototype.K;var A=true;this.each(function(E,D){A=A&&!!C(E,D);if(!A){throw $break}});return A;}
filter: function (C, B) {C=C.bind(B);var A=[];this.each(function(E,D){if(C(E,D)){A.push(E)}});return A;}
find: function (C, B) {C=C.bind(B);var A;this.each(function(E,D){if(C(E,D)){A=E;throw $break}});return A;}
findAll: function (C, B) {C=C.bind(B);var A=[];this.each(function(E,D){if(C(E,D)){A.push(E)}});return A;}
first: function () {return this[0];}
flatten: function () {return this.inject([],function(B,A){return B.concat(Object.isArray(A)?A.flatten():[A])});}
grep: function (D, C, B) {C=C?C.bind(B):Prototype.K;var A=[];if(Object.isString(D)){D=new RegExp(D)}this.each(function(F,E){if(D.match(F)){A.push(C(F,E))}});return A;}
inGroupsOf: function (B, A) {A=Object.isUndefined(A)?null:A;return this.eachSlice(B,function(C){while(C.length<B){C.push(A)}return C});}
include: function (A) {if(Object.isFunction(this.indexOf)){if(this.indexOf(A)!=-1){return true}}var B=false;this.each(function(C){if(C==A){B=true;throw $break}});return B;}
inject: function (A, C, B) {C=C.bind(B);this.each(function(E,D){A=C(A,E,D)});return A;}
inspect: function () {return"["+this.map(Object.inspect).join(", ")+"]";}
intersect: function (A) {return this.uniq().findAll(function(B){return A.detect(function(C){return B===C})});}
invoke: function (B) {var A=$A(arguments).slice(1);return this.map(function(C){return C[B].apply(C,A)});}
last: function () {return this[this.length-1];}
map: function (C, B) {C=C?C.bind(B):Prototype.K;var A=[];this.each(function(E,D){A.push(C(E,D))});return A;}
max: function (C, B) {C=C?C.bind(B):Prototype.K;var A;this.each(function(E,D){E=C(E,D);if(A==null||E>=A){A=E}});return A;}
member: function (A) {if(Object.isFunction(this.indexOf)){if(this.indexOf(A)!=-1){return true}}var B=false;this.each(function(C){if(C==A){B=true;throw $break}});return B;}
min: function (C, B) {C=C?C.bind(B):Prototype.K;var A;this.each(function(E,D){E=C(E,D);if(A==null||E<A){A=E}});return A;}
partition: function (D, B) {D=D?D.bind(B):Prototype.K;var C=[],A=[];this.each(function(F,E){(D(F,E)?C:A).push(F)});return[C,A];}
pluck: function (B) {var A=[];this.each(function(C){A.push(C[B])});return A;}
reduce: function () {return this.length>1?this:this[0];}
reject: function (C, B) {C=C.bind(B);var A=[];this.each(function(E,D){if(!C(E,D)){A.push(E)}});return A;}
select: function (C, B) {C=C.bind(B);var A=[];this.each(function(E,D){if(C(E,D)){A.push(E)}});return A;}
size: function () {return this.length;}
some: function (C, B) {C=C?C.bind(B):Prototype.K;var A=false;this.each(function(E,D){if(A=!!C(E,D)){throw $break}});return A;}
sortBy: function (B, A) {B=B.bind(A);return this.map(function(D,C){return{value:D,criteria:B(D,C)}}).sort(function(F,E){var D=F.criteria,C=E.criteria;return D<C?-1:D>C?1:0}).pluck("value");}
toArray: function () {return[].concat(this);}
toJSON: function () {var A=[];this.each(function(B){var C=Object.toJSON(B);if(!Object.isUndefined(C)){A.push(C)}});return"["+A.join(", ")+"]";}
uniq: function (A) {return this.inject([],function(D,C,B){if(0==B||(A?D.last()!=C:!D.include(C))){D.push(C)}return D});}
without: function () {var A=$A(arguments);return this.select(function(B){return !A.include(B)});}
zip: function () {var B=Prototype.K,A=$A(arguments);if(Object.isFunction(A.last())){B=A.pop()}var C=[this].concat(A).map($A);return this.map(function(E,D){return B(C.pluck(D))});}
, 
Object
, 
Object
]




How i can solve this problem? 

Any pointers would be greatly appreciated !

Thanks,

	Dario

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20100312/af143ce3/attachment-0001.htm


More information about the seaside mailing list