"""A place page's map opens on the place, not on the extent of its trails (olt/bounds.py).""" import copy import os import re import sys import unittest from unittest import mock WEB = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) ROOT = os.path.dirname(WEB) sys.path.insert(0, WEB) from olt import bounds, facets, home, placefacets, records, regions, site, sketch # noqa: E402 def attr(html, name): m = re.search(rf'\bdata-{name}="([^"]*)"', html) return [float(v) for v in m.group(1).split(",")] if m else None def figure(html): return re.search(r'