|
||||
[Chameleon] legend_single_template works delayedHuub Fleuren huub.fleuren@geodan.nlTue, 25 Nov 2003 16:49:37 +0100
|
This is a multi-part message in MIME format. --------------030503070507000705040304 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hi list I checked Pauls suggestions for a great deal === > My first guess is that the legend template is somehow > processing a different map object than the LayerOrderUp/Down widgets. > There are a couple of ways this can happen ... mostly due to how PHP > handles references to objects (i.e. it doesn't, it makes copies by > default). This doesn't seem to be the case here, since some other > operation will cause the legend to update. I won't pretend that i understand what exacty happens but how could any widget change de $oMap object if they all refer to it as $oMap = $this->moMapObject->oMap; They would all operate on a different object. my imression is that it works out right somehow. The SelectLayers widget writes a "selected" metadatatag in de session mapfile I would write a "moved" metadatatag in the sessionmapfile, through a complete different oMap Object since i created it by $oMap = $this->moMapObject->oMap; and $oLayer = $oMap->getLayer($i); as SelectLayers does it in at a diffent time in a different object and function Both tags appear in the same session mapfile == > It may be a bug in the move functions also. If the session map file is updated (and it is) i don't see how it could be a bug in these functions > One way to test if this is > a bug would be to write a small script that loads the map, moves a > layer > then processes the legend template. I would start there to rule out > that possibility. so i didn't try this other the via the template and chameleon framework == > The next thing to check would be the order of execution of the widgets. > In general, all widgets are executed in order of appearance in the > template, but widgets can be given a priority that causes them to > execute before or after other widgets. Again, I'm not sure this is the > problem because the LegendTemplate widget does not actually process the > legend template until DrawPublish. In the widget cycle, all widgets > have ParseURL called, then a second loop calls DrawPublish, so there > should be no interaction at this point. i changed the order of the CWC2 tags and also gave the widgets a high priority in the widget constructor, but no effect == > > Other than that, I would need to run your code through a debugger to > figure out exactly what is going on. > == attachments included > Cheers, > Huub ================================== > Huub Fleuren wrote: > > > Hi list, > > > > I created two new widgets called LayerOrderDown and LayerOrderUp > (based > > on the MapUpdateWidget) > > > > What the ParseURL function does is, loop through the $oMaps Layers > list > > and if the name is the selected_layer $oMap->moveLayerUp($i) in the > > LayerDown widget and $oMap->moveLayerDown($i) in the LayerUp widget > > > > I'm proud to say that this works. > > > > That is: the map is recreated in the new order, but, there is a delay > in > > the legend > > Only a second /pan/update/zoomin event shows the selected layer in > the > > new position in the legendlist > > > > Its like the legend_template uses a session number of the previous > cicle > > > > What is going wrong? > > > > > > > > Greetings, > > Huub > > > > > > -- > ----------------------------------------------------------------- > |Paul Spencer spencer@dmsolutions.ca | > |-----------------------------------------------------------------| > |Applications & Software Development | > |DM Solutions Group Inc http://www.dmsolutions.ca/| > ----------------------------------------------------------------- > > > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon --------------030503070507000705040304 Content-Type: application/x-zip-compressed; name="2widgets.zip" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="2widgets.zip" UEsDBBQAAgAIALGDeS8MoNyPWwcAAC4SAAAZAAAATGF5ZXJPcmRlckRvd24ud2lkZ2V0LnBo cI1Xa2/qSBL9zq+oQdEOXPFKdmakzYO5DjjBMwYj2yQbzYyixm6CN8Ztue087lX++1a1bTCv q6BESXdXn6pTry4uf4+Xca375UsNvoDJ3nliJT5PhuI1gvvAf+IpeCGTEo9J4muciP9xLwX6 DO4HZ2oz4S+BDEREmyeGf74D1HlVQB3U1HqB085pr3PWOYWzXu/f3d6v3d4ZnP52/st/zn/5 DSTzlgz0txhOcnVZEgvJlbofWwdfWZYuRaJEYTgGR4RZikZJuE1EFkMD5fiCffVXsjzpeKyp rnoifk+Cp2VKq8t5f1CuoeE1ydCz1iFII/I6l915n25NebIKpPJCIGHJEz5/h6eERSn3W7BI OAexAGSXPPEWpAJY9A4xTyReEPOUBVEQPQEjKLKGhNMlIkmxSF9ZwlHeB6QgvIAhJPjCy1Y8 ShkZBIsg5BIa6ZJD3Slu1JstQkNVPmchBBHQcXkKrwG6K0sh4TJNAo9gWijkhZlPlpTHYbAK ciUKDBGUYyThZhKpkLUtWAk/WNBfrvjF2TwM5LIFfkDo8yzFTUmbHo/wFmEhoS7GS/IwJJAA CSjSGxtbijQqism5aeE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47xXuurriHwgObJTUfcNyA 3TIszsh2sUxAG/cZecRDfZ/RQNWH1FWVBrHEreUlX7s2zoJKvYXJ8CYz3v+SSy0PFS8a/FiI QCELgAO5Su8c14XQ5+OFWXljJpyJT4QLUY4iRa7wjlvcH/NPF7tNVGawX6X2LHKmdqHWYHqG y43cSG+2nvNKjrh+evDy9zngKQIRCfosol0a0Wq8DcivG3jwKJJuXm35fyzEbdFh+D2NXBlF +qVfE9QRskS3zSZAjVVEtMRF5ndCpbAhHn3SSMfo9SYjvWMOLjItI73blS2voKVd/DorkcX3 SNu5RQcXuwosxMLnyRUsoA3Kn/5CmdNTUqzXzpAXPEYC225OQ13nFsRw7PKO9lmEgaitNXJq b2hnTdlx1gTkdsklo62VqCxfOdAyC7HZkgP3TWGdUl2r9EOh7loIyBOA4gU+dXv1MWcru9k4 YdHQ67jO7Kv8Llj20b5a08qWc1b2MuhcGvET0uZvyqBDejzdT08wlXEhlZp9xUwqDepxqH/z ZksxPHtlxwgCHvSpRxcsePFZBCjRVDXG4xv4dziu529j8n7PEvGuCgdgWPQDnv7vQnM4B8nb 3rkvZQ2tll25yU2sh8qbduXfUEsBAhQAFAACAAgAsYN5Lwyg3I9bBwAALhIAABkAAAAAAAAA AAAgAAAAAAAAAExheWVyT3JkZXJEb3duLndpZGdldC5waHBQSwECFAAUAAIACAC7gHkvvdty etsOAAAeNQAAGQAAAAAAAAAAACAAAACSBwAATGVnZW5kVGVtcGxhdGUud2lkZ2V0LnBocFBL BQYAAAAAAgACAI4AAACkFgAAAAA= --------------030503070507000705040304--
This archive was generated by Pipermail. |
MapTools.org -- Hosted by DM Solutions Group |