Commit Graph

43 Commits

Author SHA1 Message Date
crschmidt
6edb290f1b Merge bugfixes and test improvements for rc4 release.
git-svn-id: http://svn.openlayers.org/branches/openlayers/2.1@1513 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-09-28 13:05:36 +00:00
crschmidt
c7c21ea08a Pullup changes since RC2. Fixes:
* WorldWind layer working again
 * Popup.destroy() complaints
 * Decompose marker destruction code for easier subclassing.
 * Error catching for better layerPx error in Map.js
 * Several eamples, including getFeatureInfo, fullScreen, worldwind,
   layer-opacity


git-svn-id: http://svn.openlayers.org/branches/openlayers/2.1@1501 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-09-26 20:24:00 +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
euzuro
6f242f5746 Replace all instances and usages of LatLon to LonLat
git-svn-id: http://svn.openlayers.org/trunk/openlayers@99 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 15:51:37 +00:00
euzuro
8b6348c7b2 add 'data' member to Marker class
git-svn-id: http://svn.openlayers.org/trunk/openlayers@89 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 13:02:34 +00:00
crschmidt
66edc6dcb7 Fill out more of Icon and Marker classes. In the XP world, supposedly we test first -- and I actually did in this case. Kind of a nifty trick: you work out what the function is supposed to do solely from the tests you want to write, and then you go and actually write the code that does it.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@87 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 12:16:23 +00:00
crschmidt
70d425580c Add empty class definitions for Icon, Marker to be filled in as part of bugs #5 and #6 respectively
git-svn-id: http://svn.openlayers.org/trunk/openlayers@85 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 03:50:53 +00:00