Project

General

Profile

Bug #5570

allow map to be replaced with alternate image

Added by Matt Jones almost 9 years ago. Updated almost 9 years ago.

Status:
Resolved
Priority:
Immediate
Assignee:
Category:
morpho - general
Target version:
Start date:
01/10/2012
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
5570

Description

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.

History

#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)
<map_y_domain> -
the latitudinal extent of the image (90 to 90)
<tool_x_domain> -
the longitudinal extent to be used for tools (180 to 180)
<tool_y_domain> -
the latitudinal extent to be used for tools (90 to 90)
<bbox_north_init> -
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

#2 Updated by Redmine Admin over 7 years ago

Original Bugzilla ID was 5570

Also available in: Atom PDF