mirror of
https://github.com/ha7ilm/openwebrx.git
synced 2026-04-04 14:07:32 +00:00
pass through comments for display on the map
This commit is contained in:
parent
e5dffc3d9f
commit
12c92928fa
3 changed files with 14 additions and 4 deletions
|
|
@ -92,12 +92,15 @@ class Map(object):
|
|||
|
||||
|
||||
class LatLngLocation(Location):
|
||||
def __init__(self, lat: float, lon: float):
|
||||
def __init__(self, lat: float, lon: float, comment = None):
|
||||
self.lat = lat
|
||||
self.lon = lon
|
||||
self.comment = comment
|
||||
|
||||
def __dict__(self):
|
||||
return {"type": "latlon", "lat": self.lat, "lon": self.lon}
|
||||
res = {"type": "latlon", "lat": self.lat, "lon": self.lon}
|
||||
if self.comment is not None: res["comment"] = self.comment
|
||||
return res
|
||||
|
||||
|
||||
class LocatorLocation(Location):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue