Changes between Version 2 and Version 3 of UserGuide
- Timestamp:
- Jun 4, 2008, 8:17:52 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UserGuide
v2 v3 23 23 == Proj4js.Proj constructor == 24 24 25 Every Proj object must be initialized with the parameters of the CRS to be used. Proj4js uses the same initialization parameters that PROJ4 uses [link]. 26 27 The argument to the constructor is a key in the Proj4js.defs initialization parameters object. 25 Every Proj object must be initialized with the parameters of the CRS to be used. The argument to the constructor is a key in the Proj4js.defs initialization parameters object. 28 26 29 27 30 28 {{{ 31 Proj4js.defs["EPSG:27563"]="+title=LAMB sud france +proj=lcc +lat_1=44.1 +lat_0=44.1 +lon_0=0 +k_0=0.999877499 +x_0=600000 +y_0=200000 +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m"; 29 Proj4js.defs["EPSG:27563"]="+title=LAMB sud france +proj=lcc +lat_1=44.1 +lat_0=44.1 +lon_0=0 +k_0=0.999877499 30 +x_0=600000 +y_0=200000 +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m"; 32 31 }}} 33 32 33 Proj4js uses the same initialization parameters that PROJ4 uses [link] and these values must be defined before the constructor is called. 34 34 35 35 == If you know the projections to be used in your application == 36 36 37 The Proj4js.defs value must be defined before the constructor is called. You can define these via the script tag (see examples in the lib/defs directory) or anywhere else in your application. 38 37 You can define these via the script tag (see examples in the lib/defs directory) or anywhere else in your application. 39 38 40 39 {{{ … … 42 41 }}} 43 42 44 == Using dynamic lookup of initialization parameters ==43 == Dynamic lookup of initialization parameters == 45 44 46 45 set libPath