source: sipes/modules_contrib/openlayers/docs/CUSTOMIZATION.txt @ c43ea01

stableversion-3.0
Last change on this file since c43ea01 was 177a560, checked in by José Gregorio Puentes <jpuentes@…>, 8 años ago

se agrego el directorio de modulos contribuidos de drupal

  • Propiedad mode establecida a 100644
File size: 1.8 KB
Línea 
1
2Current for 6.x-2.0-alpha3
3
4Obviously there are many points at which advanced users will want to push the
5limits of what the OpenLayers module can do. In many cases, these changes can be
6make without any 'hacks' to the module, and before hacking, it is highly
7recommended to think about ways that changes could be incorporated into the
8module proper via patches.
9
10# Performance
11
12The largest performance hit of OpenLayers at the moment seems to be in the very
13large size of the OpenLayers.js library. The real route to fixing this problem
14is by narrowing down the set of components included in the Javascript file. In
15order to do this:
16
17## Manually
18
19    svn checkout http://svn.openlayers.org/trunk/openlayers/ cd openlayers/build
20
21edit full.cfg or lite.cfg to include the components your map uses.
22
23    python build.py [yourcustomized.cfg]
24
25This will produce a compacted, slimmed OpenLayers.js file.
26
27After doing this, make sure to set the ImgPath and ThemePath in the OpenLayers
28administration - these are per-preset settings. The OpenLayers library guesses
29the location of its style.css and images, so if you make a compacted
30OpenLayers.js in an otherwise empty folder, it will fail in this task and have
31blank images and a nonfunctional ZoomBox control (the red 'zooming box') will
32not appear.
33
34## Map Performance
35
36Using multiple domain names for layers will [dodge the browser connection
37limit](http://trac.openlayers.org/wiki/OpenLayersOptimization) and allow more
38tiles to load in parallel. However, this has a bad interaction with the default
39buffer setting, making tiles outside the viewport load first in many cases, so
40buffer should be set to 0 if multiple urls are enabled.
41
42# Custom Behaviors
43
44If behaviors similar to those included are necessary, just clone the behaviors
45and create a tiny new module that includes the copy. The same goes for layers,
46etc.
Nota: Vea TracBrowser para ayuda de uso del navegador del repositorio.