euzuro
a8bf08cca3
coding standards proposal using logger to document unimplemented functions in subclasses
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@41 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 17:48:04 +00:00
euzuro
ac918d50a4
JSAN
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@40 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 17:39:30 +00:00
euzuro
db1c5afc7b
found and noted unused variable
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@39 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 17:27:52 +00:00
euzuro
39622d5676
JSAN
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@38 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 17:26:53 +00:00
euzuro
27f2842519
removed 'status' variable. no reason to duplicate the storage of visibility when it can always be read directly from the layer's div.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@37 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 17:25:12 +00:00
euzuro
d20e764172
JSAN commenting
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@36 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 17:05:43 +00:00
euzuro
3cb109fe70
if the triggerMapEvent takes a variable 'type', which is coming directly from evt.type, then we might as well keep things consistent and use it in our register function as well
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@35 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 17:04:52 +00:00
euzuro
a9b696d000
JSAN commenting
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@34 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 16:54:27 +00:00
crschmidt
b27500e511
Add PanZoomBar, make PanZoom not also have a bar, remove LayerSwitcher control for the time being.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@33 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-15 18:28:57 +00:00
crschmidt
a6f794be8d
Modify tests to work in FF on Mac -- functions are not run alphabetically there, so work needs to be repeated in 'subsequent' calls.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@32 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-14 02:50:38 +00:00
crschmidt
54c0403850
add LayerSwitcher control. Currently, when added, this will simply loop through all the map layers, display a div (with text in it) which allows you tu turn the layer on or off. Layer visibility is a new concept in Layer.js, including a getter and setter, which uses the style.visibility prop to change the status of the layer.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@31 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-14 02:44:49 +00:00
crschmidt
45655e12a2
Change Google Maps API key to be a key for localhost (127.0.0.1) so that people can test it on their own local webservers.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@30 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-14 02:06:06 +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
8dc75d0d7c
Convert zoom levels to be a slider. Graphics need much improvement, and the code also needs a good twice over, but it works.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@27 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-13 14:13:32 +00:00
crschmidt
89d7a7d852
Convert tabs to spaces. (need to fix vi on my linux machine.)
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@26 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-13 12:10:51 +00:00
crschmidt
d5e46cd5d8
Reorder tests by dependancy.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@25 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-13 01:48:25 +00:00
crschmidt
a758b9f3e8
Add 'destroy' function to PanZoom control which unsets the 'map' item on all the buttons. This should prevent memory
...
leaks by removing the circular references to buttons.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@24 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-13 01:34:27 +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
8bb245832c
Adding latlon and bounds tests. These may need to change if we decide to switch to "Lon,Lat" ordering for GIS
...
correctness over language semantics.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@22 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-13 01:27:31 +00:00
crschmidt
29c62da8ee
Add Pixel unit test.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@21 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-13 01:04:06 +00:00
crschmidt
768f800430
Test that setcenter creates a latlon, and that the values are equal to what we expect. (This would break if we ever
...
changed the order of LatLon's args, for example.)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@20 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-12 23:28:56 +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
crschmidt
05d213a806
Add a test for map.setCenter().
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@18 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-12 22:53:28 +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
aceaa334b3
Fixed incorrect plan in test_Layer.html.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@16 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-12 22:37:29 +00:00
Schuyler Erle
250b7758da
Got tests working.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@15 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-12 22:36:52 +00:00
Schuyler Erle
ab312e867d
Added basic tests for Map, Layer, and Control base classes.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@14 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-12 22:31:14 +00:00
Schuyler Erle
50caed2d35
One last fix to make OpenLayers.js work with the new directory scheme.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@13 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-12 22:15:56 +00:00
Schuyler Erle
6f421094d2
Fixed example.html and OpenLayers.js to use lib/ instead of js/.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-12 22:02:21 +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
Schuyler Erle
059cef7570
Add test/ directory, including run-tests.html from Test.AnotherWay, and some of Phil's work from the original Hunut code base. Test.AnotherWay lives at http://www.openjsan.org/src/a/ar/artemkhodush/Test.AnotherWay-0.51/doc/ .
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-12 21:12:41 +00:00
crschmidt
45f0b84316
Double click should zoom and center.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-12 20:32:14 +00:00
crschmidt
2d44a29619
Correct syntax. Needed for IE to work.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-12 20:20:08 +00:00
crschmidt
9f29b0e9a6
Fixing typo of "resolution" in PanZoom -- this fixes panning up and down.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-12 20:09:43 +00:00
crschmidt
0b5e49cd48
Removing an unused function from Tile -- should be in the subclassed WFS tile, but not here.
...
Cleaning up example.html problems -- commenting out closing comment in <script> tag
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-12 19:59:51 +00:00
Schuyler Erle
9b7861b42c
Removed SVN commit garbage. Oops.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-12 19:36:22 +00:00
Schuyler Erle
6810d70bdd
Importing OpenLayers "newAPI" branch.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@2 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-12 19:35:22 +00:00