Commit Graph

182 Commits

Author SHA1 Message Date
euzuro
c59e66f167 fixing bug introduced with [179]. basically, the Layer constructor should not be making new divs when it is initialized by a subclass. that was the point of [179]. the problem is that because of the way Layer.Grid is making the call to Layer's initialize() -- createing a new arguments array regardless of the orginal (ie although name is void, it nonetheless creates a new array with one element, a void element) well so then when init gets called it thinks it does have arguments. The real god's truth here is that we need a better way than if (arguments.length > 0) to distinguish between actual object creation and the creation of the classes.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@185 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-19 17:34:16 +00:00
euzuro
20a13f43a6 make a destroy method and a clear grid. preventing circular refrences and memory leaks
git-svn-id: http://svn.openlayers.org/trunk/openlayers@184 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-19 16:25:19 +00:00
euzuro
54f519a255 code fixes for [180]. smack me again
git-svn-id: http://svn.openlayers.org/trunk/openlayers@183 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-19 15:53:35 +00:00
euzuro
e114a80311 updating tests for [180]. smack me. some of them are still failing. seems like it might be browser-related
git-svn-id: http://svn.openlayers.org/trunk/openlayers@182 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-19 15:52:21 +00:00
euzuro
af81e44e9a JSDOC
git-svn-id: http://svn.openlayers.org/trunk/openlayers@181 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-19 15:21:04 +00:00
euzuro
59fb5b050d give tiles a reference back to their container OpenLayers.Grid
git-svn-id: http://svn.openlayers.org/trunk/openlayers@180 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-19 15:19:49 +00:00
euzuro
9b638d91c6 coordinate method calling of subclasses
git-svn-id: http://svn.openlayers.org/trunk/openlayers@179 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-19 15:05:39 +00:00
euzuro
a5671cd452 subclass WFS layer off of Layer.Marker as well.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@178 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-19 14:48:26 +00:00
euzuro
95d8c8f2c8 still need to get into the habit of testing *before* committing. im working on it. i promise. fixing test for Tile.Image based on [173].
git-svn-id: http://svn.openlayers.org/trunk/openlayers@177 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-19 14:46:21 +00:00
euzuro
50fe4e712f update loadFeatures() function
git-svn-id: http://svn.openlayers.org/trunk/openlayers@176 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-19 14:29:51 +00:00
euzuro
55e0e47c89 bring in Feature.js from old repository
git-svn-id: http://svn.openlayers.org/trunk/openlayers@175 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-19 14:26:52 +00:00
euzuro
b183aa69ba add ajax code to WFS
git-svn-id: http://svn.openlayers.org/trunk/openlayers@174 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-19 14:20:47 +00:00
euzuro
70a702a9b0 bubble up the setPosition into the main Tile class. then let subclasses override it if they need to do special things (as in the case of Image).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@173 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-19 14:11:56 +00:00
crschmidt
519fb6da15 Add working version of text file layer. (For those of you playing along at home, this was about 45 minutes of work -- part of which was trying to figure out why the data file wouldn't work, only to find out I had expandtab on in vim -- so I wasn't typing tabs, i was typing spaces!)
This has uncovered the fact that there is some logical error in our code somewhere: Visit markers.html then click the purple marker repeatedly.  Despite the fact that you start clicking in the sea, the marker moves north, as does your center point.

This text file layer does not yet support popups or anything else, just drawing the images at a lat/lon with an 'image' given in the textfile.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@172 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-19 02:26:00 +00:00
crschmidt
9bff4c30f8 Remove "Hack hack hack" comment, which is no longer true.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@171 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-19 00:50:53 +00:00
Schuyler Erle
006053f769 Added CLASS_NAME to OpenLayers.Map.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@170 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 19:36:32 +00:00
euzuro
3f60da6dd4 use new WFS tile
git-svn-id: http://svn.openlayers.org/trunk/openlayers@169 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 19:18:37 +00:00
euzuro
78ba803e36 this guy was supposed to get updated in [167]. typo on the commit.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@168 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 19:17:12 +00:00
euzuro
b7e043df92 bubble up more common functionality. no need for multiple accessors
git-svn-id: http://svn.openlayers.org/trunk/openlayers@167 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 19:16:38 +00:00
euzuro
27d2ac30d3 created WFS tile class based on Image tile
git-svn-id: http://svn.openlayers.org/trunk/openlayers@166 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 19:12:10 +00:00
euzuro
b7d58fe9fe bubble up common functionality
git-svn-id: http://svn.openlayers.org/trunk/openlayers@165 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 18:58:36 +00:00
euzuro
ca2c0dba41 wfs doesnt take width and height parameters
git-svn-id: http://svn.openlayers.org/trunk/openlayers@164 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 18:52:58 +00:00
euzuro
f5a5c49ce9 adding a default parameter
git-svn-id: http://svn.openlayers.org/trunk/openlayers@163 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 18:50:20 +00:00
euzuro
28fe8c5a88 JSDOC coding standards
git-svn-id: http://svn.openlayers.org/trunk/openlayers@162 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 18:48:15 +00:00
euzuro
6f57cb4736 oops. forgot a comma. must always remember to test.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@161 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 18:47:11 +00:00
euzuro
bfc49a3ef4 JSDOC coding standards
git-svn-id: http://svn.openlayers.org/trunk/openlayers@160 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 18:38:14 +00:00
euzuro
525c40fd4d take advantage of createImage to set the position on creation. change point to pixel
git-svn-id: http://svn.openlayers.org/trunk/openlayers@159 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 18:29:31 +00:00
euzuro
4d27baa639 JSDOC / coding standards OpenLayers.Tile.Image
git-svn-id: http://svn.openlayers.org/trunk/openlayers@158 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 18:25:36 +00:00
euzuro
14ee4e1146 coding standards. define CLASS_NAME
git-svn-id: http://svn.openlayers.org/trunk/openlayers@157 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 18:01:20 +00:00
euzuro
18e0393d00 renamed to WFS
git-svn-id: http://svn.openlayers.org/trunk/openlayers@156 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 17:58:10 +00:00
euzuro
c8d2628f0d set default parameters (taken from old trunk)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@155 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 17:55:53 +00:00
euzuro
fc2082fd6a svn copying WMS.js to WFS.js
git-svn-id: http://svn.openlayers.org/trunk/openlayers@154 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 17:54:49 +00:00
euzuro
5a01d3b510 last test function for Util.js. In theory, that entire file is now fully tested
git-svn-id: http://svn.openlayers.org/trunk/openlayers@153 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 17:13:47 +00:00
euzuro
db33b7b260 more tests! createDiv and createImage now testable.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@152 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 16:59:39 +00:00
euzuro
89a45025af thank you testing. only set this if a value is passed in
git-svn-id: http://svn.openlayers.org/trunk/openlayers@151 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 16:56:55 +00:00
euzuro
a177cdb508 oops. forgot to save Util.js before committing [149]
git-svn-id: http://svn.openlayers.org/trunk/openlayers@150 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 13:43:14 +00:00
euzuro
60013db953 correctly identify getParameterString as a Util function
git-svn-id: http://svn.openlayers.org/trunk/openlayers@149 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 13:42:14 +00:00
euzuro
233600a284 new util test
git-svn-id: http://svn.openlayers.org/trunk/openlayers@148 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 13:41:19 +00:00
euzuro
8f95619539 coding standards
git-svn-id: http://svn.openlayers.org/trunk/openlayers@147 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 13:25:31 +00:00
euzuro
6eae15b4dc JSDOC coding standards
git-svn-id: http://svn.openlayers.org/trunk/openlayers@146 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 13:24:32 +00:00
euzuro
2f9e809bad removing unused function
git-svn-id: http://svn.openlayers.org/trunk/openlayers@145 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 13:19:05 +00:00
euzuro
a3941b683e change pt to px (point is now pixel)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@144 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 13:18:47 +00:00
euzuro
90918dad48 JSDOC / coding standards createDiv function
git-svn-id: http://svn.openlayers.org/trunk/openlayers@143 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 13:11:13 +00:00
euzuro
312e7cb7a8 JSDOC / codingstandards for Array/String extention functions
git-svn-id: http://svn.openlayers.org/trunk/openlayers@142 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 13:06:26 +00:00
euzuro
18f911af50 JSDOC
git-svn-id: http://svn.openlayers.org/trunk/openlayers@141 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 12:58:38 +00:00
euzuro
eeba5a34c6 Changed OpenLayers.Bounds to use left, bottom, right, top INSTEAD OF minlon, minlat, maxlon, maxlat. Removed OpenLayers.Box which was not getting used. JSDOC/coding standard-ified the OpenLayers.Bounds code and wrote thorough testing for it. Should be all good.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@140 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 12:48:52 +00:00
crschmidt
6ab326f67d Changing all tabs to spaces, per CodingStandards.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@139 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 12:42:38 +00:00
crschmidt
147a45feff Test for r137, event constructor with null EventTypes.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@138 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 12:33:41 +00:00
crschmidt
e843291bce fix failing test in test_Marker: Events.js should not loop through a null eventTypes var.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@137 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 12:29:27 +00:00
crschmidt
6f997014c0 Test case for 'addlayer': check if markers.length is set correctly. (This would have failed with r133, had I written it earlier.)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@136 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 12:23:42 +00:00