text: #!/usr/bin/env python
  
  """maps.py: plots maps overlay."""
  
  __author__ = "Chakraborty, S."
  __copyright__ = "Copyright 2020, SuperDARN@VT"
  __credits__ = []
  __license__ = "MIT"
  __version__ = "1.0"
  __maintainer__ = "Chakraborty, S."
  __email__ = "shibaji7@vt.edu"
  __status__ = "Research"
  
  
  GOOGLE_API_KEY = "AIzaSyCbe5B2vNadKtoqyUwTAJuubvgn7s0_fmI"
  
  from bokeh.io import show
  from bokeh.plotting import gmap
  from bokeh.models import GMapOptions
  from bokeh.io import export_png
  
  
  class GoogleMap(object):
      """
      Create google map and overlay data / lines
      """
  
      def __init__(self, clat, clon, zoom=10, map_type="roadmap", 
                  bokeh_width=500, bokeh_height=400):
          self.lat, self.lng = clat, clon
          self.zoom = zoom
          self.map_type = map_type
          self.bokeh_width = bokeh_width
          self.bokeh_height = bokeh_height
          return
          
      def create_map(self, title=""):
          gmap_options = GMapOptions(lat=self.lat, lng=self.lng, map_type=self.map_type, zoom=self.zoom)
          self.p = gmap(GOOGLE_API_KEY, gmap_options, title=title, 
                   width=self.bokeh_width, height=self.bokeh_height)
          return self.p
      
      def showplot(self):
          show(self.p)
          return
      
      def save2png(self):
          export_png(self.p, filename="plot.png")
          return
      
  def test_bokeh():
      lat, lon = 46.2437, 6.0251
      gm = GoogleMap(lat, lon)
      gm.create_map()
      gm.save2png()
      return
  
  if __name__ == "__main__":
      test_bokeh()