Changeset 6992


Ignore:
Timestamp:
Apr 22, 2008 5:19:11 AM (8 years ago)
Author:
bartvde
Message:

initial version

Location:
sandbox/bartvde/cursor
Files:
6 added
3 edited

Legend:

Unmodified
Added
Removed
  • sandbox/bartvde/cursor/lib/OpenLayers/Control.js

    r6833 r6992  
    115115
    116116    /**
     117     * APIProperty: cursor
     118     * {String} cursor which will be set on the map div upon activation.
     119    */
     120    cursor: null,
     121
     122    /**
    117123     * APIProperty: eventListeners
    118124     * {Object} If set as an option at construction, the eventListeners
     
    292298     */
    293299    activate: function () {
     300        if (this.cursor) {
     301            this.map.div.style.cursor = this.cursor;
     302        } else {
     303            this.map.div.style.cursor = 'default';
     304        }
    294305        if (this.active) {
    295306            return false;
  • sandbox/bartvde/cursor/lib/OpenLayers/Handler/Box.js

    r5614 r6992  
    7878
    7979        // TBD: use CSS classes instead
    80         this.map.div.style.cursor = "crosshair";
    8180    },
    8281
     
    114113        }
    115114        this.removeBox();
    116 
    117         // TBD: use CSS classes instead
    118         this.map.div.style.cursor = "";
    119115
    120116        this.callback("done", [result]);
  • sandbox/bartvde/cursor/lib/OpenLayers/Handler/Drag.js

    r5911 r6992  
    161161            this.start = evt.xy;
    162162            this.last = evt.xy;
    163             // TBD replace with CSS classes
    164             this.map.div.style.cursor = "move";
    165163            this.down(evt);
    166164            this.callback("down", [evt.xy]);
     
    222220            this.started = false;
    223221            this.dragging = false;
    224             // TBD replace with CSS classes
    225             this.map.div.style.cursor = "";
    226222            this.up(evt);
    227223            this.callback("up", [evt.xy]);
     
    249245            this.started = false;
    250246            this.dragging = false;
    251             // TBD replace with CSS classes
    252             this.map.div.style.cursor = "";
    253247            this.out(evt);
    254248            this.callback("out", []);
Note: See TracChangeset for help on using the changeset viewer.