OpenLayers OpenLayers

Ticket #1141 (closed feature: fixed)

Opened 1 year ago

Last modified 1 year ago

don't add vml namespace if already done

Reported by: pgiraud Assigned to:
Priority: minor Milestone: 2.6 Release
Component: Renderer.VML Version: 2.5
Keywords: Cc:
State:

Description

We shouldn't add the vml namespace to the document if it has already done or if namespace already exists. For example, if we add several vector layer to the map, each will add the "v" namespace and will create a new style sheet rule.

Though, I don't really know what happens if user already set a vml namespace in the HTML document but with no proper or wrong style sheet rules.

Attached patch proposes to test if namespace already exists before adding it with corresponding style sheet rule.

Attachments

vml_initialize.patch (1.0 kB) - added by pgiraud on 11/12/07 09:26:12.

Change History

11/12/07 09:26:12 changed by pgiraud

  • attachment vml_initialize.patch added.

11/16/07 03:32:20 changed by fredj

  • keywords set to review.

11/21/07 10:18:27 changed by crschmidt

  • keywords deleted.
  • status changed from new to closed.
  • resolution set to fixed.

(In [5236]) Only add the VML namespace if we haven't already added it. (Closes #1141)