Closed (fixed)
Project:
Openlayers
Version:
6.x-2.x-dev
Component:
Behaviors
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Sep 2010 at 11:17 UTC
Updated:
2 Jan 2011 at 04:57 UTC
Jump to comment: Most recent file
Comments
Comment #1
ademarco commentedChoosing a better title. :)
Comment #2
tmcw commentedWould a fix on the other side of this problem: making sure that drawfeatures can handle an empty features array - a
GEOMETRYCOLLECTION()value - work as well for your use case? The code written in drawfeatures, and indeed, in the module needs to be robust to handle every valid/reasonable WKT input, I'd think.Comment #3
ademarco commentedYes, it would work anyway and, indeed, the module must be able to handle any kind of valid WKT value. Which kind of solution you'd suggest?
Comment #4
tmcw commentedHere's a patch that makes sure that the module will readily accept
GEOMETRYCOLLECTION(), by checking against the [undefined] array that it generates. This works for the types of input I can think of: single elements, blank, geometrycollection(elements) and geometrycollection().Comment #5
tmcw commentedWhoops, here's the patch.
Comment #6
ademarco commentedThe patch works great for me. Thanks!
Comment #7
tmcw commentedGreat: committed: http://drupal.org/cvs?commit=428396
Comment #9
francewhoa@Maintainers: Could you release a new version 6.x-2.0-alpha11? This patch missed the latest stable release by a few days.