def icon(self, url, format=None, size=None): """ Composes this label as an :class:`Icon <geoscript.style.icon.Icon>`. The ``url`` argument is the url/file containing the image. The ``format`` argument is the format or mime type of the image. """ self._icon = Icon(url, format, size) return self
def icon(self, url, format=None, size=None): """ Composes this fill as an :class:`Icon <geoscript.style.icon.Icon>`. The ``url`` argument is the url/file containing the image. The ``format`` argument is the format or mime type of the image. >>> fill = Fill().icon('work/colorblocks.png', 'image/png') """ self._icon = Icon(url, format, size) return self