Changes between Version 1 and Version 2 of DevGuide


Ignore:
Timestamp:
Jul 10, 2008, 1:50:36 PM (16 years ago)
Author:
madair
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DevGuide

    v1 v2  
    33= Developer's Information =
    44
    5 This page is targeted at developers
     5This page is targeted at developers wishing to delve deeper into Proj4js internals.
    66
    77== Building custom versions of Proj4js ==
     8
     9The proj4js/build directory contains some scripts that can be use to build a single file (buildUncompressed.py) and compressed (build.py) versions of the Proj4js library.  The build process is controlled by the file library.cfg.  To build the library:
     10{{{
     11cd proj4js/build
     12./build.py
     13}}}
     14
     15By default, all projection class code is included in the resulting file.  If only a subset of projections are required, then the library.cfg file can be edited to include or exclude the pieces required.  For example, if your application will only ever use EPSG:27563 and the LCC projection, library.cfg can be edited to be:
     16{{{
     17[first]
     18proj4js.js
     19
     20[last]
     21
     22[include]
     23projCode/lcc.js
     24defs/EPSG27563.js
     25
     26[exclude]
     27defs/*
     28}}}
     29
     30Similarly, OLprototype.cfg is the build configuration file used to create the OLprototype.js file with the OpenLayers build script.  In general, there will be no need to modify this file.
    831
    932== The test suite ==