Commit Graph

65 Commits

Author SHA1 Message Date
crschmidt
dd0b86b6d9 Tag 2.5-rc1 (and update license files)
git-svn-id: http://svn.openlayers.org/tags/openlayers/release-2.5-rc1@4347 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-17 04:25:35 +00:00
Tim Schaub
c2148651ed Filling our log with cruft, adding meaningless conflicts for merges, and changing a comment style that ndocs could care less about, this commit changes Return to Returns (closes #945).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4110 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-29 18:44:10 +00:00
euzuro
b5ef77096c wiki/NaturalDocs says we should be using 'Return:' and not 'Returns:' so this patch is fixing that. Of course, in the process, I came across not a few instances where other ND related whitespace or typos were at odds with a peaceful, uniform OL codebase. No functional changes here, just makin' things pretty.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4109 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-29 18:08:32 +00:00
crschmidt
f04d110119 Documentation for Marker.destroy: We can't actually remove the marker from
the layer because we don't have a reference to the layer, but this isn't
adequately documented in the Marker.destroy api docs. (See #932)   


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4058 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-27 17:28:12 +00:00
crschmidt
6194452b8a Since John already went ahead and committed the main change, I'm just going
to finish this one up. All commits are in comments, so a review doesn't seem
strictly neccesary. This closes #918 and fixes all the copyrights that I could 
find in the code.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3984 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-23 11:29:06 +00:00
euzuro
fd4d2918f1 fix for #853 - remove JSDOC comments from CLASS_NAME variables
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3787 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-23 15:09:09 +00:00
crschmidt
454d77842e Typo in Layer.Markers.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3783 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-22 14:02:18 +00:00
crschmidt
4b752fbe5c Add docs clarifying that you should clone() before passing icons into the
marker constructor.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3782 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-22 13:59:24 +00:00
Tim Schaub
cc1b0269c9 #823 New class style. Instead of OldStyle = Class.create(); OldStyle.prototype = Class.inherit(Parent, prototype), we now use NewStyle = OpenLayers.Class(Parent, prototype). New style classes allow for backwards compatibility [you can use OldStyle = Class.create(); Class.inherit(NewStyle, prototype)]. The Class.create and Class.inherit functions are deprecated. Backwards compatibility will be removed at 3.0. Thanks Erik for the careful review.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3767 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-16 20:25:11 +00:00
crschmidt
4f70df0029 Documentation improvements provided by Glen Stampoultzis. (Thanks Glen!) Closes
#825, #836.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3728 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-13 11:14:46 +00:00
Tim Schaub
0a3de3fddc coding standards - getting rid of these tabs all at once
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3686 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-10 21:56:11 +00:00
crschmidt
3948913bfc Merge all changes from the naturaldocs sandbox. This brings all the work that
has been done in the NaturalDocs branch back to trunk. Thanks to everyone who
helped out in making this happen. (I could list people, but the list would
be long, and I'm already mentally on vacation.)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3545 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-06-29 15:59:20 +00:00
Schuyler Erle
74f557c158 Fix euzuro's broken apostrophe in Marker.js from r122.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@2956 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-04-01 21:37:17 +00:00
crschmidt
8e3856b4ac Commit small change to destroy events objects when destroying objects with
events. This removes a number of minor memory leaks with creating/destroying
popups, layers, features, and markers.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@2894 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-03-26 00:50:31 +00:00
Schuyler Erle
3f0b0286fc Marker objects now update their lonlat after moveTo. Fixes #519. Tests pass.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@2817 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-03-19 14:46:15 +00:00
crschmidt
3ca974acec Merge vector-2.4 branch back to trunk.
svn merge sandbox/vector-2.4/@2307 sandbox/vector-2.4/@HEAD trunk/openlayers/


git-svn-id: http://svn.openlayers.org/trunk/openlayers@2803 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-03-16 13:23:56 +00:00
crschmidt
68c06017e7 Committing fix to #469, rolling back mistaken change to defaultIcon from r1554.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@2137 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-01-11 19:31:33 +00:00
crschmidt
786c2a20fb Change files to point to repository-license. Part of build process will now
be to change the licensing terms in the final build.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@1721 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-10-24 18:16:39 +00:00
Schuyler Erle
3be99e67e6 Convert all classes to use new-style class definitions. All tests pass.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1651 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-10-06 15:57:33 +00:00
Schuyler Erle
67ced536c0 Merged r1559:r1587 from source:/sandbox/crschmidt/noprototype. OpenLayers is now Prototype-free(tm).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1588 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-10-05 14:50:47 +00:00
euzuro
994230e580 simplify defaultIcon now that default Icon sets offset to center
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1554 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-10-03 20:52:29 +00:00
euzuro
348b0b388d allow for setting opacity of alpha image divs. also give both Icon and Marker setOpacity() functions. added tests and modified examples/markers.html to show how to do it.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1541 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-10-03 17:36:03 +00:00
euzuro
3b60032995 use new functions from r1506.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1507 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-09-27 20:56:42 +00:00
euzuro
492b144147 add code so that if initialize() is called on a marker that already has an icon created, it resets the icon's data but preserves its DOMElement div
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1496 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-09-20 11:24:16 +00:00
euzuro
c1b8c8dd60 change the '@require:' to '@requires' so as to be compatible with JSDOC standards. put these directly inside the class definition comment block. update script to suggest this and update all source files to follow pattern. Caught a missing @requires in the EventPane.js file
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1206 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-14 23:05:05 +00:00
euzuro
f3a072b151 new layerswitcher, improved google layer, boxes layer, grid fix
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1096 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-08 18:20:24 +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
c2832cf83a dont worry about checking for the corners of the marker. just check the lonlat. that is good enough
git-svn-id: http://svn.openlayers.org/trunk/openlayers@534 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-07 13:02:14 +00:00
euzuro
9e5059a93c add first draft of onScreen() function to marker
git-svn-id: http://svn.openlayers.org/trunk/openlayers@532 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-06 17:07:51 +00:00
euzuro
9445defb69 destroy icon on destroy
git-svn-id: http://svn.openlayers.org/trunk/openlayers@520 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-05 16:58:09 +00:00
euzuro
bf98cb620d give OpenLayers.Marker a destroy()
git-svn-id: http://svn.openlayers.org/trunk/openlayers@501 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-02 16:37:20 +00:00
euzuro
c99be320c8 add inflate() function on marker
git-svn-id: http://svn.openlayers.org/trunk/openlayers@466 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-30 10:09:51 +00:00
euzuro
fda77ec943 update default marker icon to dyanmic offset calculation
git-svn-id: http://svn.openlayers.org/trunk/openlayers@451 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-29 13:58:49 +00:00
euzuro
51aaf18b59 implement dynamic offset (pass in calculateOffset() function) and implement dynamic alpha-safe sizing. I realize some tests still fail. I have to run out for some errands, will be back in 3-4 hours to fix this (namely text layer still has issues. fear not, i will fix these)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@450 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-29 13:54:38 +00:00
euzuro
bf5b1f3171 move 'image' member from marker down to Icon.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@446 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-29 11:59:14 +00:00
euzuro
0047f3e730 better yet, make the defaultIcon() function a static method of the OpenLayers.Marker class.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@443 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-29 10:08:55 +00:00
euzuro
1d60e57e58 oops. forgot a comma
git-svn-id: http://svn.openlayers.org/trunk/openlayers@440 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-29 09:44:04 +00:00
euzuro
14ddfc21f3 If no icon value is passed to marker constructor, assemble a default icon
git-svn-id: http://svn.openlayers.org/trunk/openlayers@438 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-29 09:42:46 +00:00
euzuro
5d797ca9f9 remove data from marker
git-svn-id: http://svn.openlayers.org/trunk/openlayers@411 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-26 23:20:39 +00:00
euzuro
9b12c728d4 fix for #66
git-svn-id: http://svn.openlayers.org/trunk/openlayers@403 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-26 16:01:46 +00:00
euzuro
1e6f88fffa 'this'. not 'marker'... cut/copy/paste from im discussion.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@391 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-26 03:17:47 +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
baf1259064 take data in Marker's constructor, and if it has a valid data and the data has a valid loadEvents() function, then call it
git-svn-id: http://svn.openlayers.org/trunk/openlayers@370 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-25 18:00:38 +00:00
euzuro
4392921aeb the same code is executed in moveTo(). might as well use it
git-svn-id: http://svn.openlayers.org/trunk/openlayers@368 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-25 17:22:31 +00:00
euzuro
935476dff5 marker doesnt have a this.div - it has a this.image
git-svn-id: http://svn.openlayers.org/trunk/openlayers@367 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-25 17:20:45 +00:00
euzuro
e251d93d6d give marker back its data member
git-svn-id: http://svn.openlayers.org/trunk/openlayers@366 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-25 17:18:03 +00:00
euzuro
163e0a8419 markers are no longer supposed to have associated data
git-svn-id: http://svn.openlayers.org/trunk/openlayers@297 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-23 19:08:00 +00:00
euzuro
08e7a5f10f update Control, Marker, and Popup such that they all have draw(px) and move(px) functions. standardization. update tests.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@255 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-22 12:50:09 +00:00
euzuro
d2c18d4de7 rename 'object' to 'image', coding standards, remove duplicate declaration of 'events'
git-svn-id: http://svn.openlayers.org/trunk/openlayers@251 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-22 11:09:27 +00:00
euzuro
7f11d01e87 changing function name from generateMarker to draw() to remain consistent with other areas of the code. (specifically OpenLayers.Control, whouses the draw() function to render the control and return a link to the div)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@249 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-22 10:50:35 +00:00