(self)
| 472 | return cast(TypeBoundsReturn, [self.location, self.location]) |
| 473 | |
| 474 | def render(self): |
| 475 | if self.location is None: |
| 476 | raise ValueError( |
| 477 | f"{self._name} location must be assigned when added directly to map." |
| 478 | ) |
| 479 | if self.icon: |
| 480 | self.add_child(self.SetIcon(marker=self, icon=self.icon)) |
| 481 | super().render() |
| 482 | |
| 483 | def set_icon(self, icon): |
| 484 | """Set the icon for this Marker""" |