The function hasn't been exported for compiling. I can export it if needed
but you can set the maxZoom in the options when you create the object:

var mymarkerclusterer = new MarkerClusterer(map, null, {
  maxZoom: 11
});

-- Luke


On Wed, Mar 30, 2011 at 3:51 PM, Zonnepanelenwijzer <
[email protected]> wrote:

> Hi,
> I get the following JS Error consistently when trying to invoke the
> setMaxZoom function.
>    " Error: mymarkerclusterer.setMaxZoom is not a function "
>
> The error -only- occurs when using the compiled version of the
> library; both the standard and the packed versions work fine.
>
> I'm using the latest version of this great library and the browser
> used is Firefox V3.6.16.
> Code snippet:
>    ...
>    mymarkerclusterer = new MarkerClusterer( mymap );
>    ...
>    mymarkerclusterer.setMaxZoom(11);  //
> MyConstants.MARKER_CLUSTERER_MAXZOOM
>    ...
>
> I have attached a link to the sources that I'm using (just to be
> sure).
> - compiled version:
> http://dl.dropbox.com/u/5629939/lib-markerclusterer-compiled.js
> - standard version:
> http://dl.dropbox.com/u/5629939/lib-markerclusterer.js
> - packed version:
> http://dl.dropbox.com/u/5629939/lib-markerclusterer-packed.js
>
>
> -> Is this some kind of side effect of the JS compiler that was used?
> Thanks for your help!
>
> --
> 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.
>
>

-- 
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.

Reply via email to