Changes between Version 8 and Version 9 of UserGuide


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

--

Legend:

Unmodified
Added
Removed
Modified
  • UserGuide

    v8 v9  
    5858To use Proj4js in this way, you will need to:
    5959 1. include the OLprotoype.js file in a script tag (only if your page doesn't already include OpenLayers)
    60  1. define a proxy script to allow cross domain HTTP requests {{{Proj4js.proxyScript = '/mapbuilder/proxy?url=';}}}
     60 1. define a proxy script to allow cross domain HTTP requests, e.g. {{{Proj4js.proxyScript = '/mapbuilder/proxy?url=';}}}
    6161
    6262The way dynamic definition string lookup works is to first check for the definition at the path lib/defs.  If the appropriate file is found there, it will be loaded and used by Proj4js.  If it is not found there ('''note:''' in this case it is normal to see an error in the Firebug console), an HTTP request will be issued to spatialreference.org.  If the definition for the CRS code is not found there, Proj4js will set the projection to WGS84.