Ticket #565 (closed feature: fixed)

Opened 6 years ago

Last modified 6 years ago

OpenLayers.Geometry.LinearRing.toString() doesn't work

Reported by: openlayers Owned by: sderle
Priority: minor Milestone: 2.4 Release
Component: Geometry.LinearRing Version: SVN
Keywords: Cc:
State:

Description

The function returns "[object Object]".

This is strange because LinearRing inherits from LineString and toString() works with this class ...

The patch corrects it and add a unit test.

-- fredj

Attachments

LinearRing.toString.patch Download (1.1 KB) - added by openlayers 6 years ago.
inheritance.patch Download (1.5 KB) - added by tschaub 6 years ago.
I think this does the trick

Change History

Changed 6 years ago by openlayers

Changed 6 years ago by sderle

thanks very much, fredj. applied as r2898.

Changed 6 years ago by sderle

  • owner set to sderle
  • status changed from new to assigned

ok, why this doesn't work given Uz's patch to BaseTypes last week to workaround the apparent IE toString() bug is beyond me. reopening to explore this.

Changed 6 years ago by tschaub

I think this does the trick

Changed 6 years ago by crschmidt

Go ahead to commit with approval from Schuyler and I.

Changed 6 years ago by tschaub

  • status changed from assigned to closed
  • resolution set to fixed

committed with r2901

Note: See TracTickets for help on using tickets.