Commit Graph

23 Commits

Author SHA1 Message Date
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