Commit Graph

260 Commits

Author SHA1 Message Date
Schuyler Erle
dc13cd1ab6 Bug fix for r[56].
git-svn-id: http://svn.openlayers.org/trunk/openlayers@59 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 21:06:07 +00:00
Schuyler Erle
143fd8d170 Map constructor now calls on div argument, so that developer doesn't need to.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@57 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 19:31:59 +00:00
Schuyler Erle
47bf4cdad8 Changed DEFAULT_ZOOM_LEVELS to maxZoomLevel, DEFAULT_FULL_EXTENT to maxExtent,
and RESOLUTION_AT_ZOOM_LEVEL_0 to maxResolution. These values are no longer constants,
but have (thanks to JavaScript object prototyping) sensible defaults.

These defaults can now be overridden by passing a hash as the second argument of
the Map constructor.

Added tests to verify.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@56 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 19:27:22 +00:00
Schuyler Erle
58b202b359 Added addLayers() method to Map class; also, added tests to support it.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@55 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 19:16:02 +00:00
crschmidt
46035298a5 Begin work on Google Maps Layer. In order to create this layer, layer div creation has been moved into Layer.js, and the div that is created is then slotted into the right place by the map.addLayer function. (This is so that, at layer creation time, a div is available). However, it seems like Google Maps does not know how large the div is for reasons I don't yet understand, and there'se also the fact that our zoom levels differ from Google's at the moment. But it's getting there.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@29 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-13 16:11:52 +00:00
crschmidt
7b62f33544 More zoom level bounds checking.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@28 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-13 15:25:28 +00:00
crschmidt
bc8197969d Add buttons to the PanZoom control which currently allow you to zoom to any level. Add a 'zoomTo' function that
allows you to specify a level. This will need to be refactored: Possibly the zoom control will become part of a 
subclass of PanZoom, "largePanZoom", which has a smaller set of controls.

Also add a DEFAULT_ZOOM_LEVELS setting, and an accesssor for said setting.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@23 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-13 01:29:19 +00:00
crschmidt
f2fa6622f1 Change "OpenLayers.Point" to OpenLayers.Pixel, so there's no confusion between LatLon and Point (a problem that has
and still does afflict the Google Maps API).


git-svn-id: http://svn.openlayers.org/trunk/openlayers@19 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-12 22:59:47 +00:00
Schuyler Erle
c0bea6397a Eliminate any possible circular references to controls in OpenLayers.Map.destroy().
git-svn-id: http://svn.openlayers.org/trunk/openlayers@17 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-12 22:38:33 +00:00
Schuyler Erle
04ba28f5a4 Revised directory structure (js/ -> lib/, test/ -> tests/) to match JSAN distribution standards, as documented at http://www.openjsan.org/documentation/dists.html.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-12 21:15:53 +00:00