Commit Graph

120 Commits

Author SHA1 Message Date
crschmidt
15a47c6513 Add support to Permalink control to automatically create Permalink inside map div if no element is given. This isn't pretty, but it's a good way to quickly/easily add a permalink to your map.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@847 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-01 02:41:21 +00:00
crschmidt
9f0a77aa92 Add PermaLink control. Add test for permalink control. This control will automatically center and zoom the map to lat/lon/zoom args, and allows you to set an <a> element whose href is modified when the map moves. controls.html implements an example.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@846 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-01 02:14:03 +00:00
crschmidt
72e44d6638 Commit GeoRSS tests.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@845 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-01 01:32:18 +00:00
crschmidt
2117aa0539 Commit a 'changeParams' method, along with test and example, to show how it would be possible to use WMS-T with changeParams. ChangeParams sets the new params, then recalls initTiles with the new params set.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@843 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-30 23:59:42 +00:00
crschmidt
5fda900240 Commit a test for maxResolution: 'auto', maxResolution: null
git-svn-id: http://svn.openlayers.org/trunk/openlayers@824 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-28 23:49:49 +00:00
euzuro
ff0e83d0a0 bringing all changes from sandbox/euzuro/LayersReworking down into the trunk. this is a merge of r656:HEAD http://svn.openlayers.org/sandbox/euzuro/LayersReworking
git-svn-id: http://svn.openlayers.org/trunk/openlayers@806 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-27 23:16:26 +00:00
Schuyler Erle
c92cd6d88a Pulled down bug fixes, example updates, etc. r717:r787 from source:/branches/openlayers/1.0.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@788 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-27 04:40:52 +00:00
crschmidt
bd166b5ac1 Fix tests for Tile.Image // Layer.WMS changes for alphaImage #96.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@688 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-22 19:52:39 +00:00
Schuyler Erle
bf6ad055df Renamed zoomExtent to zoomToFullExtent, added tests for it and for the new lonlat/px convenience functions.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@663 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-21 17:12:19 +00:00
euzuro
59b48c755e remove extraneous alert()
git-svn-id: http://svn.openlayers.org/trunk/openlayers@658 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-21 16:04:06 +00:00
euzuro
c36d63d0ec use correct resolution
git-svn-id: http://svn.openlayers.org/trunk/openlayers@653 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-21 15:11:30 +00:00
crschmidt
9b9a902ec0 Add additional fallback for Map.js if getDimensions doesn't work. I think this is essentially a 'special case' for our testing process, but it fixes it for this case.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@652 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-21 15:04:59 +00:00
euzuro
adf91b1d10 again, change function name from ScreenPx to ViewPortPx
git-svn-id: http://svn.openlayers.org/trunk/openlayers@631 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-20 22:57:18 +00:00
euzuro
ed3c2a6f0b change function name from ScreenPx to ViewPortPx
git-svn-id: http://svn.openlayers.org/trunk/openlayers@630 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-20 22:51:55 +00:00
crschmidt
2ab99c6c8d Tests changed per new default maxResolution.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@624 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-20 19:26:06 +00:00
euzuro
86b99df3f3 modify all equals() functions in Util.js (Size, Pixel, LonLat, Bounds) such that if a null value is passed in, they return false. Tests updated to make sure this is true.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@608 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-17 14:12:56 +00:00
euzuro
836b47c192 fix for #77. alpha png transparency. and tests. yay.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@605 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-15 19:02:21 +00:00
crschmidt
f5a5777e2a Fix URL changes to WMS.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@601 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-15 17:29:15 +00:00
euzuro
450f7b0460 add a static function to make a Bounds from a Size. test included.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@531 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-06 16:52:45 +00:00
euzuro
c7ea21480d fix tests to comply with new tile-appends-itself paradigm
git-svn-id: http://svn.openlayers.org/trunk/openlayers@512 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-05 15:36:59 +00:00
euzuro
77c168462b need to make WMS & WFS case-independent. I dont know why I chose to move them all to uppercase instead of lowercase, but I did. This required changing the test cases and the 'srs' property which is set in Grid. Personally, I dont think that is the best place to set it, but so be it jedi. As long as I have the mic, i'd add that having 'projection' stored in both map and layer objects seems a bit redundant as well.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@493 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-01 11:54:31 +00:00
euzuro
c7aee7fd25 add OpenLayers.Util.upperCaseObject() function and test
git-svn-id: http://svn.openlayers.org/trunk/openlayers@491 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-01 10:52:22 +00:00
euzuro
e29e309ef1 adding test for OpenLayers.Bounds.fromArray()
git-svn-id: http://svn.openlayers.org/trunk/openlayers@485 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-01 00:32:04 +00:00
euzuro
31f887a586 adding test for getSize() to OpenLayers.Bounds
git-svn-id: http://svn.openlayers.org/trunk/openlayers@484 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-01 00:14:02 +00:00
euzuro
dc2e71a1e4 merge two fromString tests into one
git-svn-id: http://svn.openlayers.org/trunk/openlayers@483 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-01 00:12:11 +00:00
euzuro
0c698ad7e0 create tests for the OpenLayers.Bounds's getCenter functions
git-svn-id: http://svn.openlayers.org/trunk/openlayers@481 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-01 00:08:00 +00:00
crschmidt
cd8e9a61ec Fix tests, now that I've re-added the zoom-to-world button.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@480 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-31 23:38:25 +00:00
euzuro
be936216a0 fix panzoom test to set to control constant from map. this test breakage was introduced (by me) in r404.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@453 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-29 18:09:31 +00:00
euzuro
77e618482a order of arguments backwards
git-svn-id: http://svn.openlayers.org/trunk/openlayers@449 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-29 13:41:28 +00:00
euzuro
cd0b43d938 add OpenLayers.Util.modifyAlphaImage() function and tests
git-svn-id: http://svn.openlayers.org/trunk/openlayers@448 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-29 13:30:11 +00:00
euzuro
0985ac299e add offset() operation to OpenLayers.Pixel
git-svn-id: http://svn.openlayers.org/trunk/openlayers@444 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-29 11:48:42 +00:00
crschmidt
f1093679f9 r407@creusa: crschmidt | 2006-05-27 12:41:55 -0400
Commit changes to textfile, and also a change to the Layer.Text tests to actually test events and popups. This is failing in svk, but I think this is because of not having up to date Layer.Text -- forgot to svk pull before I left -- so I'll fix this once I'm no longer at 35000 feet.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@431 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-27 19:17:45 +00:00
crschmidt
ed8109ab46 r406@creusa: crschmidt | 2006-05-27 12:26:35 -0400
Added tests for PanZoomBar, currently just a mirror of PanZoom, but at least will catch if something is horribly broken.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@430 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-27 19:17:41 +00:00
crschmidt
b00e6a7156 r405@creusa: crschmidt | 2006-05-27 12:23:17 -0400
Fix test to re-order arguments per my change earlier today.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@429 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-27 19:17:38 +00:00
euzuro
cd07fd2a93 make Icon's default offset 0,0. nullify a few more tests... :-)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@414 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-27 00:35:01 +00:00
euzuro
44760110bf add layer as first param to base OpenLayers.Feature class. Redo createMarker() and add createPopup(). Redo famous WFS loop so that now it just creates features (according to the feature class passed in) and stores those features in an array. update tests
git-svn-id: http://svn.openlayers.org/trunk/openlayers@407 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-26 23:00:28 +00:00
euzuro
cd779adf57 fix tests to pass in IE. border was bombing. add test for filter sizing method.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@402 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-26 16:00:05 +00:00
euzuro
ef37b10ef7 pass the position in as parameter on new tile creation. remove unnecessary setPosition() function, as tiles no longer really get moved. they get drawn in their div and then the div moves around. no need to make that any more complicated. update tests for that. Also, finish renaming 'grid' to 'layer' (from r369).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@390 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-26 02:56:49 +00:00
euzuro
75f9a6b2e0 add equals() function to OpenLayers.Bounds. plus test
git-svn-id: http://svn.openlayers.org/trunk/openlayers@389 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-26 02:42:58 +00:00
euzuro
f115b797a3 Changed around the order of arguments for createImage, createDiv, and createAlphaImage. bubbled out helper function OpenLayers.Util.modifyDOMElement() to handle common mods. Official order now is: id, px, sz, imgURL, position, border[, overflow]
git-svn-id: http://svn.openlayers.org/trunk/openlayers@384 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-26 01:23:11 +00:00
euzuro
dda9d167af add tests for createAlphaImageDiv function
git-svn-id: http://svn.openlayers.org/trunk/openlayers@365 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-25 17:12:51 +00:00
euzuro
022ffde95e moved oppositeQuadrant() function from Anchored.js to Util.js, where it is now a static function on the OpenLayers.Bounds class. Updated usage in code accordingly. Added test.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@343 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-25 00:54:45 +00:00
euzuro
e727450196 no reason for Popup to be using an OpenLayers construct in the declaration phase. make it WIDTH and HEIGHT instead of using OpenLayers.Size.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@338 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-25 00:27:46 +00:00
euzuro
b55debdd48 adding determineQuadrant() function to OpenLayers.Bounds. Tests included.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@334 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-24 23:43:09 +00:00
euzuro
06cbeb2f11 fix for #60
conversions to/from lonlat/px need to take into account
the offset of the layersContainerDiv. 


I have introduced the following functions for converting
between layer and screen pixel values:

getLayerPxFromScreenPx() and getScreenPxFromLayerPx()

they are pretty self-explanitory.


I then renamed:

getPixelFromLonLat() and getLonLatFromPixel()

to:

getScreenPxFromLonLat() and getLonLatFroScreenmPx()

and added:

getLayerPxFromLonLat() and getLonLatFromLayerPx()


updates were made throughout the code, demos, and tests
so everything should still run smoothly.

-e-

git-svn-id: http://svn.openlayers.org/trunk/openlayers@329 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-24 18:45:50 +00:00
Schuyler Erle
0e6b61c352 All tests now pass in IE.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@315 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-24 05:46:54 +00:00
Schuyler Erle
0417c9feb5 Fix test_Layer_Text.html, which was also broken by r301.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@313 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-24 04:34:27 +00:00
Schuyler Erle
3ebbf969f2 Fix test_Layer_WMS.html, which was broken by r301.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@312 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-24 04:31:57 +00:00
Schuyler Erle
b7e9c0596f Fix test function names in test_Layer_Markers.html.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@311 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-24 04:23:48 +00:00
euzuro
92571569af update map.addPopup() to automatically add the popup at the correct screen location... and add it to the layersContainerDiv so that it will move with the maps. and example. and tests.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@300 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-23 21:50:24 +00:00