* components, including the MapBean and the MapHandler.
* You can extend the BasicMapPanel class if you like to
* add different functionality or different types of
* objects.
*/
MapPanel mapPanel = new BasicMapPanel();
// Get the default MapHandler the BasicMapPanel created.
MapHandler mapHandler = mapPanel.getMapHandler();
mapHandler.add(frame);
// Get the default MapBean that the BasicMapPanel created.
MapBean mapBean = mapPanel.getMapBean();
// Set the map's center
mapBean.setCenter(new LatLonPoint(43.0f, -95.0f));
// Set the map's scale 1:120 million