allow map to be replaced with alternate image
The map image used in Morpho is hardcoded in the source code. Need to refactor so that the map can be replaced when maps of specialized regions are desired.
#1 Updated by Matt Jones almost 9 years ago
Refactored LiveMapPanel to externalize the configuration of the map that is used for search and geographic coverage in Morpho. Now the map can be located in the user's .morpho directory, and the filename and other configuration details can be provided in a new set of options in config.xml. If the name of the image to be used does not resolve to a file or is missing, the default map that ships in Morpho's jar file is used.
New configuration paramters added to the config.xml include:
<map_filename> -- the filename of the map image to be used, as a local name relative to the .morpho directory
<map_x_domain> -- the longitudinal extent of the image (
180 to 180)the latitudinal extent of the image (
90 to 90)the longitudinal extent to be used for tools (
180 to 180)the latitudinal extent to be used for tools (
90 to 90)initial north boundary of the selection box
<bbox_west_init> -- initial west boundary of the selection box
<bbox_south_init> -- initial south boundary of the selection box
<bbox_east_init> -- initial east boundary of the selection box