Skip to content

Commit

Permalink
fix setting WebMap styles
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelquast committed Jul 21, 2022
1 parent 212f349 commit 743dcb7
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions eomaps/_webmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,13 +342,9 @@ def __call__(self, layer=None, zorder=0, alpha=1, **kwargs):
"""
from . import MapsGrid # do this here to avoid circular imports!

self._style = self._set_style(kwargs.get("styles", None))
if self._style is not None:
kwargs["styles"] = [self._style]

self._zorder = zorder
self._kwargs = kwargs
self._alpha = alpha
styles = self._set_style(kwargs.get("styles", None))
if styles is not None:
kwargs["styles"] = styles

for m in self._m if isinstance(self._m, MapsGrid) else [self._m]:
if layer is None:
Expand Down Expand Up @@ -452,9 +448,9 @@ def __call__(self, layer=None, zorder=0, alpha=1, **kwargs):
"""
from . import MapsGrid # do this here to avoid circular imports!

self._style = self._set_style(kwargs.get("styles", None))
if self._style is not None:
kwargs["styles"] = [self._style]
styles = self._set_style(kwargs.get("styles", None))
if styles is not None:
kwargs["styles"] = styles

for m in self._m if isinstance(self._m, MapsGrid) else [self._m]:

Expand Down

0 comments on commit 743dcb7

Please sign in to comment.