<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Ok gentlemen I am hoping you can comment on whether or not this has
been done properly.&nbsp; I have created two subpanes (there are 8 in
total).&nbsp; By the way I have 3 listboxes dynamically changing the list
contents -- so it is working perfectly but for one hurdle.<br>
<br>
<b>createMapPane<br>
&nbsp;&nbsp;&nbsp; | pane |<br>
&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; pane := LBCMapComponent new.<br>
&nbsp;&nbsp;&nbsp; pane name: 'mapDisplay'.<br>
&nbsp;&nbsp;&nbsp; pane styleId: self liveMapId.<br>
&nbsp;&nbsp;&nbsp; pane model: model.<br>
&nbsp;&nbsp;&nbsp; ^pane.</b><br>
<br>
<b>createRegionListBox<br>
&nbsp;&nbsp;&nbsp; | pane panes list |<br>
&nbsp;&nbsp;&nbsp; list := self session findCodeByParent: 'region'.<br>
&nbsp;&nbsp;&nbsp; panes := OrderedCollection<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; with: (self paneNamed: 'nhoodList')<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; with: (self paneNamed: 'cityList')<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; with: (self paneNamed: 'mapDisplay').<br>
&nbsp;&nbsp;&nbsp; pane := SFListBox new.<br>
&nbsp;&nbsp;&nbsp; pane name: 'regionList';<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;items: list;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;lines: 5;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;printSelector: #asString;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;owner: self;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; when: #changed:<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; send: #regionSelectionChanged:<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; to: self<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; refresh: panes.<br>
&nbsp;&nbsp;&nbsp; ^ pane</b><br>
<br>
The map pane is to be updated when a change has been triggered in
regionList.&nbsp; When regionList is change the regionSelectionChanged
method is called which in turn calls updatePane when completed. <br>
<br>
<b>updatePane<br>
&nbsp;&nbsp;&nbsp; self updateRegionPane; updateCityPane; updateHoodPane; updateMapPane</b><br>
<br>
The updateMapPane executes the following:<br>
<br>
<b>updateMapPane<br>
&nbsp;&nbsp;&nbsp; | pane newpane|<br>
<br>
&nbsp;&nbsp;&nbsp; pane := self paneNamed: 'mapDisplay'.<br>
&nbsp;&nbsp;&nbsp; newpane := LBCMapComponent new.<br>
&nbsp;&nbsp;&nbsp; newpane<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; model: model;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; styleId: self liveMapId;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; name: 'mapDisplay'.<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; self replacePane: pane with: newpane.</b><br>
<br>
which in turn fires the refreshOn: method is on LBCMapComponent.<br>
<br>
<b>refreshOn: aScript<br>
<br>
&nbsp;&nbsp;&nbsp; aScript element<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; id: self styleId;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; replace:[:render | render render: self].<br>
<br>
&nbsp;&nbsp;&nbsp; "I am not sure what needs to be done here"<br>
&nbsp;&nbsp;&nbsp; aScript add: [ ]</b><br>
<br>
which will in turn execute renderOn: <br>
<br>
<b>renderOn: html<br>
&nbsp;&nbsp;&nbsp; |myMap|<br>
&nbsp;&nbsp;&nbsp; myMap := self map.<br>
<br>
&nbsp;&nbsp;&nbsp; myMap renderOn: html.</b><br>
<br>
where map returns<br>
<br>
<b>map<br>
<br>
&nbsp;&nbsp;&nbsp; ^LBCGoogleMap new<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; setCenter: model coordinates zoom: model zoom;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; setUIToDefault;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; yourself.</b><br>
<br>
All the components are updated correctly however the map does not
redraw.&nbsp; If I refresh the browser than the map draws correctly -- so it
has to do with the script in the refreshOn method, correct?&nbsp; If so I,
my ignorance of javascript has left me at a loss as to what needs to be
done.&nbsp; Do I need to call replace?&nbsp; Any suggestions?&nbsp; Thank you in
advance.<br>
<br>
<blockquote
 cite="mid:60481d60909011006o19466b7ds805c1022c01612f0@mail.gmail.com"
 type="cite">
  <pre wrap="">
_______________________________________________
seaside mailing list
<a class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>
  </pre>
</blockquote>
<br>
<br>
<br>
</body>
</html>