On May 1, 1:01 am, Jean-Nicolas Boulay Desjardins
<[email protected]> wrote:
>
> It says Uncaught TypeError: Object #<an Object> has no method 'setMap'
>
the code iterates through all elements of markers by this loop:
>> for (i in markers) {
this will return everything in markers, including the $family object
added by Mootools, which isn't a marker and doesn't have the setMap
method.
Mootools makes changes to native javascript objects. For example, it
contains this code which adds the $family object to the following
javascript classes:
var
a={Array:Array,Date:Date,Function:Function,Number:Number,RegExp:RegExp,String:String};
for(var h in a){new Native({name:h,initialize:a[h],protect:true});
...
var Native=function(k){
...
var f=k.initialize;
var d=f||i;
d.$family={name:"native"};
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-js-api-v3?hl=en.