Changeset 456
- Timestamp:
- 11/14/08 18:19:21 (2 months ago)
- Files:
-
- pmapper/trunk/incphp/map/map.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
pmapper/trunk/incphp/map/map.php
r402 r456 356 356 $mapLay = $this->map->getLayerByName($ai); 357 357 if ((in_array($mapLay->name, $this->groups) || in_array($mapLay->group, $this->groups)) && checkScale($this->map, $mapLay, $this->map->scale)) { 358 $useAltImgFormat = 1;359 break;360 } 358 $useAltImgFormat = 1; 359 break; 360 } 361 361 } 362 362 } … … 457 457 } elseif ($zoom_type == "zoomgroup") { 458 458 $this->pmap_zoomgroup(); 459 459 460 460 } 461 461 … … 625 625 $this->map->setextent($groupExt['minx'], $groupExt['miny'], $groupExt['maxx'], $groupExt['maxy']); 626 626 } 627 627 628 628 629 629 /** … … 734 734 } else { 735 735 // Add selected shape to new layer 736 737 // Modified by Thomas RAFFIN (SIRAP) 738 // use layers with complex queries that are too long to select results 739 // cause maxscaledenom is not used... 740 if ($qLayer->getMetaData("PM_RESULT_DATASUBSTITION") != "") { 741 $olddata = $qLayer->data; 742 $qLayer->set("data", $qLayer->getMetaData("PM_RESULT_DATASUBSTITION")); 743 } 744 736 745 $qLayer->open(); 737 746 foreach ($shpindexes as $resShpIdx) { … … 757 766 758 767 $qLayer->close(); 768 769 // Modified by Thomas RAFFIN (SIRAP) 770 // reset data tag 771 if (isset($olddata)) { 772 $qLayer->set("data", $olddata); 773 } 774 759 775 } 760 776
