Class IWScaleDependentIcon
Extends IWIcon.
An icon which is displayed only on the specified zoom levels.
You can use this function to show a small icon if the map is zoomed out and a larger icon if the map is zoomed in.
Method Summary
|
IWRange
|
getRange()
Returns the visible range of the icon.
|
void
|
setRange(range)
Sets the visible range of the image.
|
String
|
toString()
Returns a string representation of this icon.
|
IWScaleDependentIcon
IWScaleDependentIcon(url, hotspot, size, range)
Parameters:
String url
- an absolute URL to the image
IWPoint hotspot
- the hotspot (optional, defaults to 0,0)
IWSize size
- the size of the image in pixels
IWRange range
- a range of zoom levels
getRange
IWRange getRange()
Returns the visible range of the icon.
setRange
void setRange(range)
Sets the visible range of the image.
Parameters:
IWRange range
- the visible range of the icon
toString
String toString()
Returns a string representation of this icon.
Source-Code Copyright 2007-2016 infoware GmbH - Documentation generated on Tue Nov 29 2022 14:20:15 GMT+0100 (MEZ)