Opened 16 years ago

Closed 15 years ago

#2460 closed enhancement (fixed)

Expose msMapOffsetExtent, msMapScaleExtent and msMapSetCenter to the PHP API

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

Description (last modified by dmorissette)

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 (5)

comment:1 by tamas, 16 years ago

Related ticket for the SWIG API changes #2346

comment:2 by dmorissette, 16 years ago

Milestone: 5.2 release

comment:3 by dmorissette, 16 years ago

Description: modified (diff)
Milestone: 5.2 release5.4 release
Owner: changed from mapserverbugs to dmorissette

comment:4 by dmorissette, 15 years ago

Cc: dmorissette added
Milestone: 5.4 release6.0 release
Owner: changed from dmorissette to aboudreault

Moving to 6.0 and reassigning to Alan.

comment:5 by aboudreault, 15 years ago

Resolution: fixed
Status: newclosed

Fixed and committed in r9157. Documentation updated in r9158.

Note: See TracTickets for help on using tickets.