old_contents: from kivy.base import runTouchApp
  from kivy.lang import Builder
  
  root = Builder.load_string("""
  #:import MapSource mapview.MapSource
  
  <Toolbar@BoxLayout>:
      size_hint_y: None
      height: '48dp'
      padding: '4dp'
      spacing: '4dp'
  
      canvas:
          Color:
              rgba: .2, .2, .2, .6
          Rectangle:
              pos: self.pos
              size: self.size
  
  <ShadedLabel@Label>:
      size: self.texture_size
      canvas.before:
          Color:
              rgba: .2, .2, .2, .6
          Rectangle:
              pos: self.pos
              size: self.size
  
  RelativeLayout:
  
      MapView:
          id: mapview
          lat: 50.6394
          lon: 3.057
          zoom: 8
          #size_hint: .5, .5
          #pos_hint: {"x": .25, "y": .25}
  
          #on_map_relocated: mapview2.sync_to(self)
          #on_map_relocated: mapview3.sync_to(self)
  
          MapMarker:
              lat: 50.6394
              lon: 3.057
  
          MapMarker
              lat: -33.867
              lon: 151.206
  
      Toolbar:
          top: root.top
          Button:
              text: "Move to Lille, France"
              on_release: mapview.center_on(50.6394, 3.057)
          Button:
              text: "Move to Sydney, Autralia"
              on_release: mapview.center_on(-33.867, 151.206)
          Spinner:
              text: "mapnik"
              values: MapSource.providers.keys()
              on_text: mapview.map_source = self.text
  
      Toolbar:
          Label:
              text: "Longitude: {}".format(mapview.lon)
          Label:
              text: "Latitude: {}".format(mapview.lat)
      Toolbar:
          y: "48dp"
          Label:
              text: "Bbox: {}".format(mapview.bbox)
      """)
  
  runTouchApp(root)
  
new_contents: from kivy.base import runTouchApp
  from kivy.lang import Builder
  
  root = Builder.load_string("""
  #:import MapSource mapview.MapSource
  
  <Toolbar@BoxLayout>:
      size_hint_y: None
      height: '48dp'
      padding: '4dp'
      spacing: '4dp'
  
      canvas:
          Color:
              rgba: .2, .2, .2, .6
          Rectangle:
              pos: self.pos
              size: self.size
  
  <ShadedLabel@Label>:
      size: self.texture_size
      canvas.before:
          Color:
              rgba: .2, .2, .2, .6
          Rectangle:
              pos: self.pos
              size: self.size
  
  RelativeLayout:
  
      MapView:
          id: mapview
          lat: 50.6394
          lon: 3.057
          zoom: 8
          #size_hint: .5, .5
          #pos_hint: {"x": .25, "y": .25}
  
          #on_map_relocated: mapview2.sync_to(self)
          #on_map_relocated: mapview3.sync_to(self)
  
          MapMarker:
              lat: 50.6394
              lon: 3.057
  
          MapMarker
              lat: -33.867
              lon: 151.206
  
      Toolbar:
          top: root.top
          Button:
              text: "Move to Lille, France"
              on_release: mapview.center_on(50.6394, 3.057)
          Button:
              text: "Move to Sydney, Autralia"
              on_release: mapview.center_on(-33.867, 151.206)
          Spinner:
              text: "mapnik"
              values: MapSource.providers.keys()
              on_text: mapview.map_source = self.text
  
      Toolbar:
          Label:
              text: "Longitude: {}".format(mapview.lon)
          Label:
              text: "Latitude: {}".format(mapview.lat)
      """)
  
  runTouchApp(root)
  
subject: remove debug