[Mapserver-users] paning with reference map and PHP mapscript functions

Eric Bridger eric at gomoos.org
Tue Jun 22 09:11:42 PDT 2004


On Tue, 2004-06-22 at 11:11, Belenfant Eric wrote:
> Hi,
> 
> I was wondering whether there is a built-in functionality in PHP MapScript
> for panning the main map via clicks in the reference map. The CGI version
> offers such a possibility with the variables 'ref.x' and 'ref.y'. I couldn't
> find a method like that in the PHP MapScript doumentation .
> 
> eric
> 

I don't believe it exists.  There is a perl example which I put in the
Mapserver Wiki:
http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PerlMapScriptExamples35ex17
which should be easily adapted to PHP. It's based on the 3.6 C code in
maptemplate.c::setExtent() case FROMREFPT but requires that your map and
reference map have the same aspect ratio.

Eric
www.gomoos.org





More information about the MapServer-users mailing list