public interface PrepareContextView extends PrepareContext
PrepareContextView_1
Modifier and Type | Method and Description |
---|---|
MapControl |
getMapControl()
You can use it to interact with the MapControl component that will
receive the new layer, in order to get user feedback
(for instance a bounding box).
|
getOwnerWindow, getViewProjection
MapControl getMapControl()
PrepareContextView_v1.isMapControlAvailable()
method before
accessing the MapControl
because it may not be available (for instance when adding layers
to a MapContext not associated with a View).
For the moment, this method will return a non-null MapControl for
compatibility reasons, but you should still check
PrepareContextView_v1.isMapControlAvailable()
to be sure it
is a valid one, as it could only be a fake MapControl.
It is recommended to use PrepareContextView_v1.getMapContext()
method when no interaction is needed with the map user interface
(for instance to get the active projection, visible extent, etc)