new IWScaleDependentIcon(url, hotspot, size, range)
Creates a new icon.
Parameters:
Name | Type | Description |
---|---|---|
url |
String | an absolute URL to the image |
hotspot |
IWPoint | the hotspot (optional, defaults to 0,0) |
size |
IWSize | the size of the image in pixels |
range |
IWRange | a range of zoom levels |
Extends
Methods
-
getHotspot()
-
Returns the hotspot of the image.
- Inherited From:
Returns:
- Type
- IWPoint
-
getRange()
-
Returns the visible range of the icon.
Returns:
- Type
- IWRange
-
getSize()
-
Returns the size of the image in pixel.
- Inherited From:
Returns:
- Type
- IWSize
-
getUrl()
-
Returns the URL of the image.
- Inherited From:
Returns:
- Type
- String
-
setHotspot(hotspot)
-
Sets the hotspot of the image.
Parameters:
Name Type Description hotspot
IWPoint - Inherited From:
Returns:
- Type
- void
-
setRange(range)
-
Sets the visible range of the image.
Parameters:
Name Type Description range
IWRange the visible range of the icon Returns:
- Type
- void
-
setSize(size)
-
Sets the size of the image in pixel.
Parameters:
Name Type Description size
IWSize the size of the image in pixel - Inherited From:
Returns:
- Type
- void
-
setUrl(url)
-
Sets the URL of the image.
Parameters:
Name Type Description url
String an absolute URL to the image - Inherited From:
Returns:
- Type
- void
-
toString()
-
Returns a string representation of this icon.
- Overrides:
Returns:
- Type
- String