Skip to content
Snippets Groups Projects
Commit f94c827f authored by jacques.grelet_ird.fr's avatar jacques.grelet_ird.fr
Browse files

change m_map high to intermediate resolution and and high resolution

add simplifications submit by Thierry Reynaud:
  latRange = (latMax-latMin);
  latMin = max(floor(latMin), -90);
  latMax = min(ceil(latMax), 90);

  lonRange = (lonMax-lonMin);
  lonMin = floor(lonMin);
  lonMax = ceil(lonMax);
parent 131ca1aa
No related branches found
No related tags found
No related merge requests found
......@@ -51,12 +51,12 @@ if ~isempty( ind )
% Oversize window due to the large frame
%--------------------------------------
latRange = (latMax-latMin);
latMin = max(min(latMin - 0.05*latRange, latMin - 2), -90);
latMax = min(max(latMax + 0.05*latRange, latMax + 2), 90);
latMin = max(floor(latMin), -90);
latMax = min(ceil(latMax), 90);
lonRange = (lonMax-lonMin);
lonMin = min(lonMin - 0.03*lonRange, lonMin -2);
lonMax = max(lonMax + 0.03*lonRange, lonMax +2);
lonMin = floor(lonMin);
lonMax = ceil(lonMax);
lonRange = (lonMax-lonMin);
if lonRange>=360
......@@ -90,10 +90,15 @@ if ~isempty( ind )
m_gshhs_l('patch',[.7 .7 .7], 'TAG', 'TAG_PLOT4_LINE_COAST');
case 3
% High-resolution coast lines
% Intermediate-resolution coast lines
% ----------------------------
m_gshhs_i('patch',[.7 .7 .7], 'TAG', 'TAG_PLOT4_LINE_COAST');
case 4
% High-resolution coast lines
% ----------------------------
m_gshhs_h('patch',[.7 .7 .7], 'TAG', 'TAG_PLOT4_LINE_COAST');
otherwise
tsg.preference.map_resolution = 1;
% Low-resolution coast lines
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment