Getting much closer I think! I have the javascript function that refreshes the map.
I've set my $_SESSION['resultlayers'] appropriately to real values (I've tried both -1 and 0 for the type) The map refresh calls map.phtml but now as it loads I get a failure at this line: $newResLayer->addFeature($resShape); in the function: pmap_addResultLayer($reslayer, $shpindexes) $reslayer coming into the function addFeature is NULL. I really appreciate the assistance. Thank you. Here are my session parameters: configFile = config/config.ini defGroups = Array gLanguage = 0 map = Object allGroups = Array jlist = Array grouplist = Array limitResult = 500 highlightSelected = 1 highlightColor = 0, 255, 0 autoZoom = search zoomAll = search nquery alignQueryResults = 1 enableRightMousePan = 1 pdfres = 96 pmapper = 1.0.8 tocStyle = tree layerAutoRefresh = 1 scaleLayers = 1 icoW = 18 icoH = 14 imgFormat = gif infoWin = window mapwidth = 940 mapheight = 600 GEOEXT = Array groups = Array geo_scale = 852 historyBack = Array historyFwd = mapimage = /tmp/1147304424272721.gif mode = nquery activegroup = adapar xlsArray = Array resulttilelayers = Array queryresults = Parcel Information @ Parcel Land Characteristic Description Zoning Acres Total Assessed Value Owner Owner Address State and Zip R1525670410 Residential LOT 300 BLK 4 COLUMBIA VILLAGE #12 #96089180 #96089181 R-1C 0.14 120100 NELSON BYRON B AND 12325 W LANKTREE GULCH RD STAR, ID 83669-0000 R1525660080 Residential LOT 254 BLK 4 COLUMBIA VILLAGE NO 11 SUB R-1C 0.15 122700 DONLEY KENNETH 5268 S YARROW AVE BOISE, ID 83705-0000 R1525670390 Residential LOT 298 BLK 4 COLUMBIA VILLAGE #12 R-1C 0.14 120200 BARSNESS JOHN 3651 E SWEET PEA CT BOISE, ID 83716-0000 R1525670400 Residential LOT 299 BLK 4 COLUMBIA VILLAGE #12 R-1C 0.14 120400 OSTERHOUT EMERY 3649 E SWEET PEA CT BOISE, ID 83716-0000 R1525660075 Residential PAR #0075 OF LOT 253 BLK 4 COLUMBIA VILLAGE NO 11 SUB R/S #3618 #0070-B R-1C 0.14 122600 GARDNER LAMARCO 5290 S YARROW AVE BOISE, ID 83716-6909 R1525670240 Residential LOT 283 BLK 4 COLUMBIA VILLAGE #12 R-1C 0.18 106100 MCDONALD LIVING TRUST 3590 ROUND BOTTOM RD PMB F203244 CINCINATTI, OH 45244-0000 R1525660065 Residential PAR #0065 OF LOT 253 AND 254 BLK 04 R/S #3618 COLUMBIA VILLAGE NO 11 SUB #006 R-1C 0.16 118200 GARATEA MARIA J 5300 S YARROW AVE BOISE, ID 83716-6909 Zoom to Selected Features extQuery = radius resultlayer = adapar reslayer = adapar resultlayers = array(1) { ["adapar"]=> array(33) { [991849]=> int(0) [992031]=> int(0) [992032]=> int(0) [991788]=> int(0) [991808]=> int(0) [991813]=> int(0) [991853]=> int(0) [991894]=> int(0) [991900]=> int(0) [991904]=> int(0) [991905]=> int(0) [991907]=> int(0) [991915]=> int(0) [991916]=> int(0) [991924]=> int(0) [991931]=> int(0) [991950]=> int(0) [991953]=> int(0) [991954]=> int(0) [991955]=> int(0) [991958]=> int(0) [991970]=> int(0) [991971]=> int(0) [991991]=> int(0) [992000]=> int(0) [992001]=> int(0) [992020]=> int(0) [992044]=> int(0) [992053]=> int(0) [992054]=> int(0) [992057]=> int(0) [992058]=> int(0) [9 -- Things are only difficult while you don't understand them. >From: Armin Burger <armin.burger at gmx.net> >To: Gail Long <codeburg at hotmail.com>, pmapper-users at faunalia.it >Subject: Re: [Pmapper-users] Calling map.phtml >Date: Wed, 10 May 2006 22:11:15 +0200 > >what the highlight does is create dynamically a new layer and add all the >features with the id's from the queried layer to this new layer. For >polygon layers it uses a LINE highlight layer, but you can easily change >this in map.php in function 'pmap_addResultLayer' by uncommenting > >##$newResLayer->set("type", $qlayType); > >and commenting out the 4 lines before. > >This dynamic highlight layer has to be created/added all the time the map >is created/refreshed. > > >So after adding the resultlayers to the session you just need to refresh >the map. The map creation in map.php looks if it finds the session var >resultlayers (or the passed var via GET) and then adds these features in a >new dynamic layer to the map. This is done for all further map creations >until the session var is unset. > >just use a javascript function to initiate the map refresh like > >function refreshMap() { > showloading(); > var mapurl = map.phtml?'+SID+'&zoom_type=zoompoint'; > parent.mapFrame.location = mapurl; >} > >to remove the resululayers via javascript modify the 2nd line to > >var mapurl = 'map.phtml?'+SID+'&zoom_type=zoompoint&resultlayer=remove'; > >armin > > >Gail Long wrote: >>Armin, >> >>Thank you for the quick response. Please forgive me but I don't entirely >>understand what to do. >> >>I've cleared the resultlayers session variable and added the new values in >>what I believe is the correct structure: >> >>array(1) { ["adapar"]=> array(31) { [991740]=> int(-1) [991511]=> >>int(-1) [991538]=> int(-1) [991549]=> int(-1) [991550]=> int(-1) >>[991554]=> int(-1) [991564]=> int(-1) [991565]=> int(-1) [991571]=> >>int(-1) [991573]=> int(-1) [991574]=> int(-1) [991577]=> int(-1) >>[991587]=> int(-1) [991603]=> int(-1) [991617]=> int(-1) [991618]=> >>int(-1) [991619]=> int(-1) [991622]=> int(-1) [991635]=> int(-1) >>[991639]=> int(-1) [991640]=> int(-1) [991655]=> int(-1) [991656]=> >>int(-1) [991657]=> int(-1) [991704]=> int(-1) [991706]=> int(-1) >>[991707]=> int(-1) [991716]=> int(-1) [991735]=> int(-1) [991768]=> >>int(-1) [991775]=> int(-1) } } >> >>These are the oids from the resultset and all are correct. The output >>above is a var_dump of $_SESSION['resultlayers']; >> >>I suppose what I need to know more specifically is do I use javascript to >>contruct a call to map.phtml for the mapframe? And if so, what how would >>I construct the url string for my results to call the highlighting >>functions? >> >>I don't understand how the entire query/highlight code chain works. Your >>programming skills are definately above mine. I've tried a few variations >>of the url strings that I've found in mapserver.js. >> >>Because I'm not using query,squery, or map.php to run a query perhaps I >>would instantiate map.php and enter at a different point than from the >>url? >>