Revision 38769 branches/v2_0_0_prep/libraries/libFMap_controls/src/org/gvsig/fmap/mapcontrol/MapControl.java
MapControl.java | ||
---|---|---|
87 | 87 |
import org.gvsig.fmap.geom.primitive.Envelope; |
88 | 88 |
import org.gvsig.fmap.geom.util.Converter; |
89 | 89 |
import org.gvsig.fmap.mapcontext.MapContext; |
90 |
import org.gvsig.fmap.mapcontext.MapContextLocator; |
|
91 |
import org.gvsig.fmap.mapcontext.MapContextManager; |
|
90 | 92 |
import org.gvsig.fmap.mapcontext.ViewPort; |
91 | 93 |
import org.gvsig.fmap.mapcontext.events.AtomicEvent; |
92 | 94 |
import org.gvsig.fmap.mapcontext.events.listeners.AtomicEventListener; |
... | ... | |
438 | 440 |
* </p> |
439 | 441 |
* |
440 | 442 |
* <p> |
441 |
* The view port once is created an instance of <code>MapControl</code>, is |
|
442 |
* obtained from the <i>EPSG:23030</i> projection, that's the default |
|
443 |
* projection for this component. |
|
444 |
* </p> |
|
445 |
* |
|
446 |
* <p> |
|
447 | 443 |
* After, the view port will change adapting itself according the current |
448 | 444 |
* projection and the extent. |
449 | 445 |
* </p> |
... | ... | |
605 | 601 |
* <code>MapContext</code>'s layers if can continue processing the drawn or |
606 | 602 |
* must cancel it.</li> |
607 | 603 |
* <li>Creates a new {@link MapContext MapContext} with a new |
608 |
* {@link ViewPort ViewPort} in the projection <i>"EPSG:23030"</i> .</li>
|
|
604 |
* {@link ViewPort ViewPort} in the default projection.</li>
|
|
609 | 605 |
* <li>Creates a new {@link CommandListener CommandListener} for edition |
610 | 606 |
* operations.</li> |
611 | 607 |
* <li>Creates a new {@link MapToolListener MapToolListener}, and associates |
... | ... | |
633 | 629 |
// Clase usada para cancelar el dibujado |
634 | 630 |
canceldraw = new CancelDraw(); |
635 | 631 |
|
636 |
// Modelo de datos y ventana del mismo |
|
637 |
// TODO: Cuando creamos un mapControl, deber?amos asignar |
|
638 |
// la projecci?n por defecto con la que vayamos a trabajar. |
|
639 |
// 23030 es el c?digo EPSG del UTM30 elipsoide ED50 |
|
640 |
vp = new ViewPort(CRSFactory.getCRS("EPSG:23030")); |
|
632 |
/* |
|
633 |
* We are not accessing the user preferences here. |
|
634 |
* This is an early initialization and is supposed |
|
635 |
* to be reset afterwards from a higher level (plugin) |
|
636 |
*/ |
|
637 |
MapContextManager mcm = MapContextLocator.getMapContextManager(); |
|
638 |
vp = new ViewPort(mcm.getDefaultCRS()); |
|
639 |
|
|
641 | 640 |
setMapContext(new MapContext(vp)); |
642 | 641 |
|
643 | 642 |
// eventos |
Also available in: Unified diff