I want to know if there is a way to convert a pixel in latitude and longitude.
I would make this in order to convert the height and the width of my map to have the delat lat and the delta longitude for each one.
Maybe you can use something like following. This gives coordinates for a clicked point x,y.
MapPos placePoint=mapComponent.getInternalMiddlePoint().copy();
placePoint.setX(placePoint.getX()-mapComponent.getWidth()/2+x);
placePoint.setY(placePoint.getY()-mapComponent.getHeight()/2+y);
WgsPoint p=mapComponent.getMap().mapPosToWgs(placePoint).toWgsPoint();
Maybe you can use something like following. This gives coordinates for a clicked point x,y.
MapPos placePoint=mapComponent.getInternalMiddlePoint().copy();
placePoint.setX(placePoint.getX()-mapComponent.getWidth()/2+x);
placePoint.setY(placePoint.getY()-mapComponent.getHeight()/2+y);
WgsPoint p=mapComponent.getMap().mapPosToWgs(placePoint).toWgsPoint();
/JaakL