Commit Graph

10 Commits

Author SHA1 Message Date
crschmidt
be6ecf5dca Store div offsets in event div object, caching them until a updateSize call. This provides a significant performance gain in places where the div contains hundreds or thousands of markers, because as the div element gets bigger, determining its size through Prototype.element.page() becomes slower by a factor of up to 4 (determined through profiling with venkman).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@271 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-22 18:11:45 +00:00
crschmidt
0fd94a3f21 Fix typo.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@264 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-22 16:18:35 +00:00
Schuyler Erle
0cc4aa316d Set up a resize event listener to call map.updateSize() as necessary.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@262 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-22 14:08:15 +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
Schuyler Erle
ce6c4acd63 Made Events class more generic; the Events constructor now takes a list of supported application event types. Added tests for the Events class.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@61 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 21:48:56 +00:00
euzuro
d20e764172 JSAN commenting
git-svn-id: http://svn.openlayers.org/trunk/openlayers@36 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 17:05:43 +00:00
euzuro
3cb109fe70 if the triggerMapEvent takes a variable 'type', which is coming directly from evt.type, then we might as well keep things consistent and use it in our register function as well
git-svn-id: http://svn.openlayers.org/trunk/openlayers@35 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 17:04:52 +00:00
euzuro
a9b696d000 JSAN commenting
git-svn-id: http://svn.openlayers.org/trunk/openlayers@34 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 16:54:27 +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