Commit Graph

43 Commits

Author SHA1 Message Date
Schuyler Erle
44fee8a018 Added an 'alpha' option to Layer.Grid by which Layers can have the PNG alpha hack enabled on a per-Layer basis.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@840 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-30 15:41:40 +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
8e0793b191 Only draw transparent images if the tiles are transparent.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@681 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-22 19:02:33 +00:00
Schuyler Erle
ead31f6dc6 Added license headers to all JS source files.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@657 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-21 15:22:48 +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
euzuro
0853af657b doesnt look like we're going to add a logger any time soon. might as well get rid of these old logger references.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@550 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-07 19:03:04 +00:00
euzuro
95d2d2275a call Tile's destroy() after cleaning up our own business
git-svn-id: http://svn.openlayers.org/trunk/openlayers@522 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-05 17:09:41 +00:00
euzuro
97185540fa not sure if this is necessary or not, but just in case
git-svn-id: http://svn.openlayers.org/trunk/openlayers@521 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-05 17:08:29 +00:00
euzuro
6d40072b4f just to be absolutely sure...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@514 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-05 15:57:38 +00:00
euzuro
7999a4fc06 draw function is not defined in the standard Tile class. it is meant to be implemented by subclasses. no reason to call it.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@513 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-05 15:47:35 +00:00
euzuro
a4d0badaeb Fix for bug introduced with r510. Only make the removeChild call if the parentNode is properly set. This way we can zap the grid div contents quickly with the div.innerHTML = "" but still have a valid good destroy() function.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@511 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-05 15:33:05 +00:00
euzuro
0a1385b22d have the Tile add itself to it's layer's div. give it a destroy() function that removes itself
git-svn-id: http://svn.openlayers.org/trunk/openlayers@510 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-05 14:34:48 +00:00
crschmidt
137cf76e8e Typo. Was causing syntax error in Safari.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@506 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-02 18:29:52 +00:00
euzuro
1c9fc7ae36 we dont use handlers any more since r487
git-svn-id: http://svn.openlayers.org/trunk/openlayers@500 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-02 16:04:36 +00:00
euzuro
f85fb1674d add destroy() which will iterate and destroy all the features
git-svn-id: http://svn.openlayers.org/trunk/openlayers@499 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-02 16:03:52 +00:00
euzuro
60eba3e782 change Ajax.js's loadURL() function to take directly function references instead of strings to be dereferenced through a 'handlers' variable. Update code in Tile.WFS... only place it is used.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@487 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-01 01:15:23 +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
da27fafa98 give WFS a featureClass and have it be set in the constructor
git-svn-id: http://svn.openlayers.org/trunk/openlayers@406 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-26 17:56:46 +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
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
3440da2c5e WFS tiles will keep track of markers, not features. Update the requestSuccess() loop to handle new Feature architecture
git-svn-id: http://svn.openlayers.org/trunk/openlayers@371 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-25 18:02:33 +00:00
crschmidt
c0ec7f9a00 Change @require to @require:
git-svn-id: http://svn.openlayers.org/trunk/openlayers@326 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-24 17:17:22 +00:00
euzuro
ad41a1df69 move xml helper functions into Util.js and adapt code to use them-- is this where we want to keep them? do we want to keep them? tests need to be written.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@292 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-23 17:35:16 +00:00
euzuro
c506e039d8 typo. Openlayer->OpenLayers
git-svn-id: http://svn.openlayers.org/trunk/openlayers@289 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-23 17:14:14 +00:00
crschmidt
9190dd18d2 Add @require pragma to all source files.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@277 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-23 15:20:31 +00:00
euzuro
1041515bfd udpatoing Tile.WFS code, removing ol.Application calls. AddingAjax.js file (do we want this?) and including it in the dynamic loader
git-svn-id: http://svn.openlayers.org/trunk/openlayers@275 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-23 00:22:22 +00:00
crschmidt
e7c6d4df19 Change order of Marker creation from icon, latlon to latlon,icon. I don't know why I would have done it the other way.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@215 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-20 20:39:33 +00:00
crschmidt
149d65a045 Commit old Feature class as Feature.MetaCarta. This may move out of the main OL repository at some point, and no matter what, it needs to get cleaned up before it goes too much farther.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@209 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-20 04:42:33 +00:00
euzuro
3c740acf17 append markers and features.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@194 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-19 18:41:47 +00:00
euzuro
072e0a2b04 this is a dummy commit just because on the last commit, i forgot to specify that i didnt want to commit the changes i had made to Tile/WFS.js. So, know that in [186], the change to fix the bug was *just* the modification to Grid.js. The modifications to Tile/WFS.js were just more small steps in the process of getting WFS ported and working again...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@187 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-19 17:41:37 +00:00
euzuro
61d3c4412f fixing bug introduced in [184]. just needed to be dereferencing grid (this.grid) and also to be making sure to only try to clean out when the grid has actually been initialized. SOMEBODY PUT THIS BOY IN A SANDBOX UNTIL HE CAN LEARN TO RUN THE DAMN TESTS BEFORE CHECKING IN.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@186 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-19 17:37:10 +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
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
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
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
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
crschmidt
40a00ab46b this.img, not img
git-svn-id: http://svn.openlayers.org/trunk/openlayers@97 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 15:28:07 +00:00
crschmidt
2d312835ad Can't setPosition before image exists.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@96 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 15:11:31 +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
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