Revision 630 2.1/branches/org.gvsig.view3d_soporte_bbdd_proyecciones/org.gvsig.view3d.app/org.gvsig.view3d.app.common/src/main/java/org/gvsig/view3d/app/mainplugin/View3DExtension.java
View3DExtension.java | ||
---|---|---|
31 | 31 |
import org.gvsig.app.project.documents.view.ViewDocument; |
32 | 32 |
import org.gvsig.app.project.documents.view.gui.IView; |
33 | 33 |
import org.gvsig.app.project.documents.view.legend.gui.ThemeManagerWindow; |
34 |
import org.gvsig.fmap.mapcontext.MapContext; |
|
35 | 34 |
import org.gvsig.fmap.mapcontext.layers.ExtendedPropertiesSupport; |
36 |
import org.gvsig.fmap.mapcontext.layers.FLayers; |
|
37 | 35 |
import org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVect; |
38 | 36 |
import org.gvsig.fmap.mapcontrol.MapControlLocator; |
39 | 37 |
import org.gvsig.propertypage.PropertiesPageManager; |
... | ... | |
142 | 140 |
.equals(actionCommand))) { |
143 | 141 |
|
144 | 142 |
View3DSwingManager manager = View3DSwingLocator.getManager(); |
145 |
MapContext mapContext = view.getMapControl().getMapContext(); |
|
146 | 143 |
TYPE type = getType(actionCommand); |
147 | 144 |
|
148 | 145 |
if (type != null) { |
149 |
|
|
150 | 146 |
MapControl3D mapControl3D = |
151 | 147 |
manager.getMapControl3D( |
152 | 148 |
(ExtendedPropertiesSupport) view.getViewDocument(), |
153 | 149 |
getType(actionCommand)); |
154 | 150 |
|
155 |
FLayers layers = mapContext.getLayers(); |
|
156 |
|
|
157 |
boolean isEPSG4326 = |
|
158 |
mapContext.getProjection().getAbrev().equals("EPSG:4326"); |
|
159 |
|
|
160 |
if (mapControl3D == null && layers.getLayersCount() > 0 |
|
161 |
&& isEPSG4326) { |
|
151 |
if (mapControl3D == null) { |
|
162 | 152 |
return true; |
163 | 153 |
} |
164 | 154 |
} |
Also available in: Unified diff