From trac-20090302 at openlayers.org Sat Jan 1 14:02:46 2011
From: trac-20090302 at openlayers.org (OpenLayers)
Date: Sat Jan 1 14:02:48 2011
Subject: [OpenLayers-Trac] Re: [OpenLayers] #2947: allow custom jsfiles array
In-Reply-To: <040.92c82ed242950faec24a92ecb1e1158c@openlayers.org>
References: <040.92c82ed242950faec24a92ecb1e1158c@openlayers.org>
Message-ID: <049.ad214e576a8cb3546ab1ae1feb7b5374@openlayers.org>
#2947: allow custom jsfiles array
---------------------+------------------------------------------------------
Reporter: erilem | Owner:
Type: feature | Status: new
Priority: minor | Milestone: 2.11 Release
Component: general | Version: 2.10
Keywords: | State: Review
---------------------+------------------------------------------------------
Comment(by tschaub):
I think what you're proposing with the "noautoload" parameter would be
most trivially accomplished by loading the SingleFile.js instead of
OpenLayers.js (see r10977).
The only hassle with this is typing all the extra script tags. I think
the tidiest way to avoid this hassle is to allow typing an array instead.
Here are a few variations that accomplish the same:
{{{
}}}
or
{{{
}}}
or
{{{
}}}
or
{{{
}}}
I think we'd agree this last one is ugly to type. The first is simplest
to implement. The others are somewhat forced. And the whole thing is
really just for us internally (tests and examples) - I don't think we
should try to get too clever.
--
Ticket URL:
OpenLayers
A free AJAX map viewer
From trac-20090302 at openlayers.org Sat Jan 1 17:57:11 2011
From: trac-20090302 at openlayers.org (OpenLayers)
Date: Sat Jan 1 17:57:13 2011
Subject: [OpenLayers-Trac] [OpenLayers] #2992: move OpenLayers.Util.extend
to Class.js
Message-ID: <041.6508b64439378bb4b88c3e53c1cf7636@openlayers.org>
#2992: move OpenLayers.Util.extend to Class.js
---------------------+------------------------------------------------------
Reporter: tschaub | Owner:
Type: feature | Status: new
Priority: minor | Milestone: 2.11 Release
Component: general | Version: 2.10
Keywords: | State:
---------------------+------------------------------------------------------
We have a number of circular dependencies in the library. The current
toposort method isn't flexible enough to handle these. In most places
where we have circular dependencies, the order that files are executed
doesn't matter. A more tolerant toposort method could resolve
dependencies even in circular cases - imposing an arbitrary order. Change
r10979 is an example of a simplified (and more tolerant) toposort method.
If we have a more tolerant toposort, then we can move dependency
declaration into the library source files. Doing this would remove the
need to force a specific order in a "first" section of a build
configuration.
The one place where we have a circular dependency that causes trouble is
with Class -> Util -> BaseTypes -> Class. The Class function only needs
OpenLayers.Util.extend. An arbitrary sort order will not guarantee that
Util is loaded before Class. One solution is to move the extend method
into the Class source file.
--
Ticket URL:
OpenLayers
A free AJAX map viewer
From trac-20090302 at openlayers.org Sat Jan 1 18:35:59 2011
From: trac-20090302 at openlayers.org (OpenLayers)
Date: Sat Jan 1 18:36:01 2011
Subject: [OpenLayers-Trac] Re: [OpenLayers] #2992: move
OpenLayers.Util.extend to Class.js
In-Reply-To: <041.6508b64439378bb4b88c3e53c1cf7636@openlayers.org>
References: <041.6508b64439378bb4b88c3e53c1cf7636@openlayers.org>
Message-ID: <050.c1037ec86323a5d2d80141830bf84be1@openlayers.org>
#2992: move OpenLayers.Util.extend to Class.js
---------------------+------------------------------------------------------
Reporter: tschaub | Owner:
Type: feature | Status: new
Priority: minor | Milestone: 2.11 Release
Component: general | Version: 2.10
Keywords: | State: Review
---------------------+------------------------------------------------------
Changes (by tschaub):
* state: => Review
Comment:
With this change, we can start simplifying the build configuration files -
putting dependency declarations in the source.
--
Ticket URL:
OpenLayers
A free AJAX map viewer
From trac-20090302 at openlayers.org Sun Jan 2 11:59:51 2011
From: trac-20090302 at openlayers.org (OpenLayers)
Date: Sun Jan 2 11:59:52 2011
Subject: [OpenLayers-Trac] Re: [OpenLayers] #2985: Ctrl-Click or Shift-Click
on a SVG-feature
with named graphic opens new window because of