[ka-Map-users] map center
Paul Spencer
pspencer at dmsolutions.ca
Fri Mar 17 07:40:42 EST 2006
Kurt,
Do you mean the center of the map when it is first loaded? This is
normally controlled by the map file but it is possible to pass
parameters to the index.html page to cause it to load at a different
set of extents or at a center point and scale.
You can pass the following:
map=<map name> - loads <map name> instead of the default specified in
config.php
extents=minx,miny,maxx,maxy - zoom to these extents. kaMap will find
the closest scale that completely contains the extents ... this
relies on viewport size and may have unintended results
cps=centerx,centery,scale - center the map on the given point and set
the scale to the given value.
All coordinates are in the coordinate system of the map file, no
reprojection happens. Scale is one of the pre-defined scale values
for the map.
Cheers
Paul
On 17-Mar-06, at 2:36 AM, K Kuo wrote:
> Hi,
> Is the map center controled by "extent" in map file while running
> ka-map? Can map center be variables?
> Thanks
>
> kurt
>
>
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users
+-----------------------------------------------------------------+
|Paul Spencer pspencer at dmsolutions.ca |
+-----------------------------------------------------------------+
|Applications & Software Development |
|DM Solutions Group Inc http://www.dmsolutions.ca/|
+-----------------------------------------------------------------+
More information about the ka-Map-users
mailing list