[OpenLayers-Trac] [OpenLayers] #2840: symbolizers should not have
null default values
OpenLayers
trac-20090302 at openlayers.org
Thu Sep 16 18:32:01 EDT 2010
#2840: symbolizers should not have null default values
---------------------+------------------------------------------------------
Reporter: tschaub | Owner:
Type: feature | Status: new
Priority: minor | Milestone: 2.11 Release
Component: general | Version: 2.10
Keywords: | State:
---------------------+------------------------------------------------------
Because OpenLayers.Util.extend treats {{{null}}} as a value to be applied
to the target, there is a difference between {{{null}}} and
{{{undefined}}} as default values. We get into trouble when defaults are
assumed too early with symbolizers. We could set default values to
{{{undefined}}}. The (small) benefit of this would be that the symbolizer
properties would be enumerable. However, we can save a few bytes by not
including any defaults and I don't think we lose anything by not being
able to enumerate over the properties.
--
Ticket URL: <http://trac.openlayers.org/ticket/2840>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list