def _validate_overlay(self, val): if len(val) > 4087: # limit is 4096 minus the 'geojson()' raise errors.InputSizeError( "GeoJSON is too large for the static maps API, " "must be less than 4096 characters") return val
def validate_overlay(val): if len(val) > 2073: # limit is 2083 minus the 'geojson()' raise errors.InputSizeError( "GeoJSON is too large for the static maps API, " "must be less than 2073 characters") return val