docs: def staticmap(ctx, mapid, output, features, lat, lon, zoom, size):
      """
      Generate static map images from existing Mapbox map ids.
      Optionally overlay with geojson features.
  
        $ mapbox staticmap --features features.geojson mapbox.satellite out.png
        $ mapbox staticmap --lon -61.7 --lat 12.1 --zoom 12 mapbox.satellite out2.png
  
      An access token is required, see `mapbox --help`.
      """
      access_token = (ctx.obj and ctx.obj.get('access_token')) or None
      if features:
          features = list(
              cligj.normalize_feature_inputs(None, 'features', [features]))
  
      service = mapbox.Static(access_token=access_token)
  
      try:
          res = service.image(
              mapid,
              lon=lon, lat=lat, z=zoom,
              width=size[0], height=size[1],
              features=features, sort_keys=True)
      except mapbox.errors.ValidationError as exc:
          raise click.BadParameter(str(exc))
  
      if res.status_code == 200:
          output.write(res.content)
      else:
          raise MapboxCLIException(res.text.strip())