search for: getnortheast

Displaying 1 result from an estimated 1 matches for "getnortheast".

2009 Jun 01
0
[mapstraction commit] r12 - Implemented most Cloudmade functions. Still requires image, tile and KML/GeoRSS overlays
...// TODO: Add provider code - - return zoom; + var map = this.maps[this.api]; + return map.getZoom(); }, getZoomLevelForBoundingBox: function( bbox ) { @@ -136,15 +145,16 @@ // NE and SW points from the bounding box. var ne = bbox.getNorthEast(); var sw = bbox.getSouthWest(); - var zoom; - - // TODO: Add provider code + var zoom = map.getBoundsZoomLevel(new CM.LatLngBounds(sw.toProprietary(this.api), ne.toProprietary(this.api))); return zoom; }, setMapType: fun...