public interface ILspMapScaleProvider
An ILspMapScaleProvider
provides the map scale of a view and can keep listening objects updated of any
changes to the map scale.
An implementation of this interface can be used to control scale-based styling in a custom way. More information can be found in the map scale provider howto.
Implementations of this class must ensure thread safety, as any of its methods can be called from any thread.
Modifier and Type | Method and Description |
---|---|
void |
addMapScaleChangeListener(ILspMapScaleChangeListener aListener)
Registers a map scale change listener.
|
static ILspMapScaleProvider |
fromView()
An
ILspMapScaleProvider that takes the map scale directly from the view. |
TLcdMapScale |
getMapScale(ILspView aView)
Returns the current map scale for a view.
|
void |
removeMapScaleChangeListener(ILspMapScaleChangeListener aListener)
Unregisters a map scale change listener.
|
static ILspMapScaleProvider fromView()
ILspMapScaleProvider
that takes the map scale directly from the view. The map scale is taken at
projection center
.TLcdMapScale getMapScale(ILspView aView)
aView
- the view that is being rendered.null
.void addMapScaleChangeListener(ILspMapScaleChangeListener aListener)
aListener
- the map scale listener to addvoid removeMapScaleChangeListener(ILspMapScaleChangeListener aListener)
aListener
- the map scale listener to remove