On Wed, Apr 8, 2009 at 12:01 PM, Aude <aude.wiki@gmail.com> wrote:


On Wed, Apr 8, 2009 at 11:32 AM, Jens Frank <jens.l.frank@googlemail.com> wrote:


We might want to build our own OpenLayers, by not including some of the exotic modules (like support for commercial maps, WFS, etc) to reduce its size. And we should host it on a server that supports dynamic compression of static files (which the normal WMF servers do not, since its done in PHP).

I'm not sure whether it's already possible to load parts of OpenLayers on demand, e.g. in the case where we decide to load Google maps instead of OSM maps.

A patch can be submitted to OpenLayers to support different mode options, to load only some JS if only some map modes are supported on a particular website.

We can use OpenLayers Build Profiles to generate a single js file that includes just the portions we need.  I can take a more detailed look at this, see if it works as-is to meet our needs.  Or we can submit improvements to that portion of the main OpenLayers code, if needed.

http://trac.openlayers.org/wiki/Profiles

-Kate
 


-Kate




Regards,

jens

_______________________________________________
Maps-l mailing list
Maps-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/maps-l