Opened 16 years ago

Last modified 15 years ago

#2460 closed enhancement

Expose msMapOffsetExtent, msMapScaleExtent and msMapSetCenter to the PHP API — at Initial Version

Reported by: tamas Owned by: mapserverbugs
Priority: normal Milestone: 6.0 release
Component: MapScript-PHP Version: 5.0
Severity: minor Keywords:
Cc: dmorissette

Description

The following functions have been exposed to SWIG and should also be updated in the PHP API

mapObj.offsetExtent( float x, float y) : int

Offset the map extent based on the given distances in map coordinates, returns MS_SUCCESS or MS_FAILURE.

mapObj.scaleExtent( float zoomfactor, float minscaledenom, float maxscaledenom) : int

Scale the map extent using the zoomfactor and ensure the extent within the minscaledenom and maxscaledenom domain. If minscaledenom and/or maxscaledenom is 0 then the parameter is not taken into account. returns MS_SUCCESS or MS_FAILURE.

mapObj.setCenter( pointObj_ center ) : int

Set the map center to the given map point, returns MS_SUCCESS or MS_FAILURE.

The corresponding C API functions are: MS_DLL_EXPORT int msMapOffsetExtent( mapObj *map, double x, double y); MS_DLL_EXPORT int msMapScaleExtent( mapObj *map, double zoomfactor,

double minscaledenom, double maxscaledenom);

MS_DLL_EXPORT int msMapSetCenter( mapObj *map, pointObj *center);

Change History (0)

Note: See TracTickets for help on using tickets.