Hi,
Sorry for bothering again....I keep trying to solve the problem with
slider updating but I just can't make any progress. I will try to
explain what I have done:
1. I have modified the returnMaxScale function to get initial s1
(maxScale) like:
if (isset($_SESSION["initext"])) {
$initExtent = $_SESSION["initext"];
$y_dgeo = $initExtent["maxy"] - $initExtent["miny"];
} else {
$initExtent = $this->map->extent;
$y_dgeo = $initExtent->maxy - $initExtent->miny;
}
2. I have opened the map and I realised that map.phtml is called twice.
The second call was from reloadMap (called by updateMapSize called by
resizeMapWindow called by initResize called by frameview.phtml). Each
time I got different scale values. I have noticed that scale values and
the relevant slider value are set in functions writescale and setSlider
called by map.phtml. The functions take $geo_scale as an input argument
and this is different each time. $geo_scale is returned by
pmap_returnGeoScale and it is the value of $this->geo_scale in map.php
that is in turn set by "intval ($this->map->scale) in
pmap_createMapImage....Now, where can "$this->map->scale" possibly be
modified? I am pretty confused and I start thinking it will not be so
easy to get it working at all :-((
dejan