@ -301,12 +301,17 @@ public class ConcessioneView extends Composite {
Coordinate centerCoordinate = OLFactory . createCoordinate ( GeoportalDataViewerConstants . ITALY_CENTER_LONG , GeoportalDataViewerConstants . ITALY_CENTER_LAT ) ;
Coordinate transformedCenterCoordinate = MapUtils . transformCoordiante ( centerCoordinate , GeoportalDataViewerConstants . EPSG_4326 , GeoportalDataViewerConstants . EPSG_3857 ) ;
MapView mapView = new MapView ( transformedCenterCoordinate , GeoportalDataViewerConstants . LIGHT_MAP_ITALY_FIT_ZOOM_ON ) ;
Coordinate coord = new Coordinate ( concessioneDV . getCentroidLong ( ) , concessioneDV . getCentroidLat ( ) ) ;
Coordinate transfCoord = MapUtils . transformCoordiante ( coord , GeoportalDataViewerConstants . EPSG_4326 , GeoportalDataViewerConstants . EPSG_3857 ) ;
//Coordinate invertedCoordinate = MapUtils.reverseCoordinate(coord);
boolean authenticatedUser = myLogin ! = null ? true : false ;
mapView . addMarker ( transfCoord , authenticatedUser ) ;
mapViewPanel . add ( mapView ) ;
if ( concessioneDV ! = null & & concessioneDV . getCentroidLat ( ) ! = null & & concessioneDV . getCentroidLong ( ) ! = null ) {
Coordinate coord = new Coordinate ( concessioneDV . getCentroidLong ( ) , concessioneDV . getCentroidLat ( ) ) ;
Coordinate transfCoord = MapUtils . transformCoordiante ( coord , GeoportalDataViewerConstants . EPSG_4326 , GeoportalDataViewerConstants . EPSG_3857 ) ;
//Coordinate invertedCoordinate = MapUtils.reverseCoordinate(coord);
boolean authenticatedUser = myLogin ! = null ? true : false ;
mapView . addMarker ( transfCoord , authenticatedUser ) ;
mapViewPanel . add ( mapView ) ;
} else if ( concessioneDV ! = null ) {
GeoportalDataViewerConstants . printJs ( "I cannot add centroid as maker one or both coordinates are null. Lat: " + concessioneDV . getCentroidLong ( ) + ", Long:" + concessioneDV . getCentroidLat ( ) ) ;
}
}
private void addUploadedImages ( ) {