Hi,

Appreciate a confirmation before I file a bug report.

in map-view.js, I don't think the center and zoom code is working
correctly:

    if (bounds && typeof settings.zoom == "undefined") {
        var zoom = Math.max(0, self._map.getBoundsZoomLevel(bounds) -
1);
        zoom = Math.min(zoom, maxAutoZoom, settings.maxAutoZoom);
        self._map.setZoom(zoom);
    }
    if (bounds && typeof settings.center == "undefined") {
        self._map.setCenter(bounds.getCenter());
    }

settings.zoom and settings.center can't be "undefined", they are setup
in _settingSpecs as:

    "center":           { type: "float",    defaultValue: [20,0],
dimensions: 2 },
    "zoom":             { type: "float",    defaultValue: 2         },

settings.maxAutoZoom is not available, it is missing from the
_settingSpecs.

Am I not looking at this correctly?

Bob

-- 
You received this message because you are subscribed to the Google Groups 
"SIMILE Widgets" 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/simile-widgets?hl=en.

Reply via email to