Ticket #2813 (new bug)

Opened 3 years ago

constructor for Scale Control differs from normal controls

Reported by: bartvde Owned by:
Priority: minor Milestone: 3.0 Release
Component: Control.Scale Version: 2.10 RC1
Keywords: Cc:
State:

Description

    /**
     * Constructor: OpenLayers.Control.Scale
     *
     * Parameters:
     * element - {DOMElement}
     * options - {Object}
     */
    initialize: function(element, options) {
        OpenLayers.Control.prototype.initialize.apply(this, [options]);
        this.element = OpenLayers.Util.getElement(element);
    },

Normally, div is passed in options instead. This confuses users.

Note: See TracTickets for help on using tickets.