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 )
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 , 16 years ago
comment:2 by , 16 years ago
Milestone: | → 5.2 release |
---|
comment:3 by , 16 years ago
Description: | modified (diff) |
---|---|
Milestone: | 5.2 release → 5.4 release |
Owner: | changed from | to
comment:4 by , 15 years ago
Cc: | added |
---|---|
Milestone: | 5.4 release → 6.0 release |
Owner: | changed from | to
Moving to 6.0 and reassigning to Alan.
comment:5 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Related ticket for the SWIG API changes #2346