map.addLayer(layer);
JMapPane mapPane = new JMapPane(map);
mapPane.setBackground(Color.WHITE);
mapPane.setBorder(BorderFactory.createLineBorder(Color.BLACK));
mapPane.addMapPaneListener(new MapPaneListener() {
@Override
public void onNewMapContent(MapPaneEvent mapPaneEvent) {
//Logger.d("Map Pane New");
}