euzuro
5f0bde51da
as universally approved on discussions on dev list, replace new Object() with {}. all tests pass ff & ie6
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3814 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-25 22:39:28 +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
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
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
euzuro
364e7d7546
remove unused local var. fixed #801 . thanks eric l.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3581 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-05 13:36:38 +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
crschmidt
e4599ea06f
Apply patch from John Cole to make closeBox show up in AnchoredBubble
...
popups. (Thanks John!) I like this solution better than hacking Rico.
Closes #698 .
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3149 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-05-15 21:10:13 +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
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
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
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
73fb43712f
add onScreen() function to OpenLayers.Feature, and add tests to prove it.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1510 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-09-27 21:56:17 +00:00
euzuro
5804cc6cb3
small cleanup of basic OpenLayers.Feature functionality -- specifically adding full control for popup and marker creation and destruction and better comments for all that. all tests pass.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1503 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-09-26 21:46:10 +00:00
euzuro
6e2fd1bbf9
decompose the marker destruction code out so that it can be overridden in subclasses
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1497 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-09-20 11:24:54 +00:00
euzuro
861335f356
more standardizing ids
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1417 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-09-08 05:23:28 +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
841fdcbfb3
split Util.js into two files. BaseTypes.js will contain all the OL Base types, such as Pixel, LonLat, Bounds, etc., as well as all the standard javascript basetypes (string, number, etc) extensions. All else remains in Util.js. In theory I have fixed all dependencies. If this doesn't work, I'll rollback.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1205 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-14 21:49:19 +00:00
crschmidt
162f0a408b
Add require statements to feature classes, so that single file build works correctly.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@997 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-24 11:30:50 +00:00
euzuro
16b0f1b3ef
always give features random id's. this prevents duplicate issues on zooming
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@987 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-20 16:00:43 +00:00
euzuro
4709d697b7
add appropriate requirements now that we are using an Util.js function in Feature.js
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@974 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-18 17:21:36 +00:00
euzuro
c0e82d966f
consolodate usage of Math.random() in OpenLayers.Util.createUniqueID()
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@971 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-18 16:23:12 +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
fc366b73fe
recommitting r574 - the bug was in the OpenLayers.Feature destroy() function, which was not checking to ensure a valid map setting.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@576 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-12 16:00:00 +00:00
euzuro
82d4a1327c
when we destroy a feature, remove its popup from the map through the removePopup() function
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@526 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-05 19:00:03 +00:00
crschmidt
280abf356c
change , for ; from r502, fixes problems in FF after file is turned into single file version.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@504 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-02 18:12:34 +00:00
euzuro
a844ba9e80
update the destroy() for the stock OpenLayers.Feature
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@502 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-02 16:37:55 +00:00
euzuro
b8d6aaed64
have the 'data' property just set an OpenLayers.Icon object. Remove default marker image loading code as it has been bubbled down into OpenLayers.Marker.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@441 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-29 09:50:56 +00:00
euzuro
3f44628b44
give a feature a default, blank data
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@437 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-29 08:48:54 +00:00
crschmidt
528b9ef24e
Change the default icon size. If we fall back to the MC icon, we should fall back to the MC size, too.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@436 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-27 19:33:27 +00:00
crschmidt
9256cdc207
Return popup when created. If we don'tn get an offset, leave it null: let OL.Icon calculate it. fix typo in case.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@422 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-27 13:09:10 +00:00
crschmidt
43875e80af
Return the marker from the createMarker function.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@418 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-27 02:12:33 +00:00
crschmidt
90c4baa09b
Changing order of constructor arguments.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@417 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-27 02:09:03 +00:00
euzuro
3691bc54b6
read icon.offset from data object. default to (0,0)
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@415 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-27 00:47:11 +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
c10fdec8e7
OpenLayers.Feature - JSDOC/coding standards
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@296 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-23 19:06:41 +00:00
euzuro
39e53685ce
give Feature an id
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@294 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-23 19:01:55 +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
f67177cf21
Add Feature.createMarker method. Not complete yet.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@212 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-20 13:28:28 +00:00
crschmidt
eaa7ddcfd9
Commit simplified Feature class. Features in the main OpenLayers parlance will not be the behemoth that they were in past versions, doing data parsing and everything on their own. Instead, a feature will be a minimal container for point-based data, to which other methods can be added: Feature.WFS might parse data out of XML, while Feature.Text might parse it out of CSV.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@208 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-20 04:39:04 +00:00
euzuro
bfece3fc4e
temporary hack to bring over functions from the old application.js
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@192 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-19 18:40:32 +00:00
euzuro
55e0e47c89
bring in Feature.js from old repository
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@175 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-19 14:26:52 +00:00