def getMapId(self, vis_params=None): """Fetch and return a map id and token, suitable for use in a Map overlay. Args: vis_params: The visualization parameters. See ee.data.getMapId. Returns: An object containing a mapid and access token, or an error message. """ request = vis_params or {} request['image'] = self.serialize(False) return data.getMapId(request)
def getMapId(self, vis_params=None): """Fetch and return a map id and token, suitable for use in a Map overlay. Args: vis_params: The visualization parameters. See ee.data.getMapId. Returns: An object containing a mapid and access token, or an error message. """ request = vis_params or {} request['image'] = self.serialize() response = data.getMapId(request) response['image'] = self return response