Display map with specified point in center

Eric Bridger eric at GOMOOS.ORG
Thu Dec 16 09:47:26 EST 2004


On Thu, 2004-12-16 at 08:54, Miroslav Šulc wrote:
> I have made some tests and it seems to me that if I count the extent of
> the map with my point in the center of map then the extent is adjusted
> according to the size of map when drawing the map but the center remains
> still the same.
> 
> For example:
> point: 400 600
> my counted extent: 350 550 450 650 (counted by me, <point_x> - 50,
> <point_y> - 50, <point_x> + 50, <point_y> + 50)
> adjusted extent: 350 570 450 620 (adjusted by php myscript when drawing
> the map)
> 
> Can somebody confirm it? Maybe I am wrong so I just want to be sure.
> 

Yes. I don't know the details but this is the case.



More information about the mapserver-users mailing list