def display_on_map(self, map_name=None):
     view = _MapView(self.solutions, map_name)
     slider = IntSlider(min=1, max=len(self.solutions), value=1)
     slider.on_trait_change(
         lambda x: view(slider.get_state("value")["value"]))
     display(slider)
     view(1)
Example #2
0
 def _display_on_map_iteractive(self, index, map_name, **kwargs):
     view = _MapView(self.solutions, map_name, **kwargs)
     slider = IntSlider(min=1, max=len(self.solutions), value=index + 1)
     slider.on_trait_change(
         lambda x: view(slider.get_state("value")["value"]))
     display(slider)
     view(1)
 def _display_on_map_iteractive(self, index, map_name, **kwargs):
     view = _MapView(self.solutions, map_name, **kwargs)
     slider = IntSlider(min=1, max=len(self.solutions), value=index + 1)
     slider.on_trait_change(lambda x: view(slider.get_state("value")["value"]))
     display(slider)
     view(1)
 def display_on_map(self, map_name=None):
     view = _MapView(self.solutions, map_name)
     slider = IntSlider(min=1, max=len(self.solutions), value=1)
     slider.on_trait_change(lambda x: view(slider.get_state("value")["value"]))
     display(slider)
     view(1)