crschmidt
419abc8b4a
Tag 2.4. (woooooooohooooooooooo)
...
git-svn-id: http://svn.openlayers.org/tags/openlayers/release-2.4@3198 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-05-29 13:38:23 +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
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
26c2b6651b
Remove temporary hacks from Marker.js.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@199 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-20 01:08:46 +00:00
crschmidt
9685524e26
Change position to absolute, and round pixel values. This puts markers back in their place.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@196 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-19 21:36:56 +00:00
crschmidt
213055fdaa
Repeat after me: Test first, then commit. Test first, then commit. Test first, then commit.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@134 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 11:25:58 +00:00
crschmidt
575474654b
Create a single HTML object, and modify its style attributes to move it whenever generate is called -- this will hopefully allow us to add events to it. Note that the event registration in this code currently fails: wehn triggerEvent is called, this.listeners['click'] is called, which is something I have not yet been able to fully understand.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@133 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 11:22:49 +00:00
euzuro
bb55859445
remove unused diff and diffABS functions from OpenLayers.Pixel
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@129 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 05:19:51 +00:00
euzuro
2086a1ad95
add 'offset' member to OpenLayers.Icon - and then use it in OpenLayers.Marker
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@127 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 05:04:06 +00:00
euzuro
19e6574395
coding standards
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@126 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 04:56:06 +00:00
euzuro
5d80d71f21
JSDOC and small update to use Pixel diff code
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@123 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 04:37:31 +00:00
crschmidt
4d0f98f4fe
Add working code for Markers -- marker layer and marker object. Also add markers.html to demo use of markers functionality.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@107 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 17:21:57 +00:00
crschmidt
1720fee550
The layer adds the marker to the div. Therefore, some of the code needs to move into the layer: the marker needs to know how to generate an HTML object that will represent it.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@102 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 16:20:08 +00:00