Ticket #2354 (closed bug: fixed)
Spelling of API methods getURL and setUrl of imagelayers is inconsistent and confusing
| Reported by: | marcjansen | Owned by: | bartvde |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.9 Release |
| Component: | Layer.Image | Version: | 2.8 |
| Keywords: | Cc: | ||
| State: | Needs Discussion |
Description
Every instance of OpenLayers.Layer.Image has the following two methods to set/get the URL of the layer:
- getURL
- setUrl
The spelling is inconsequent (Url vs. uppercase-only URL) and therefore rather confusing.
Attached is a patch that renames the method setUrl to setURL and remains a deprecated copy of the method setUrl so that existing applications using the old method don't break.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

