www.gusucode.com > map 案例源码 matlab代码程序 > map/OverrideDefaultPropertiesOfTheLineExample.m
%% Override Default Properties of the Line % %% % Create a symbol specification and specify the default color used for % lines. As seen in the previous example, the default is blue. This % example sets the default to black. % Copyright 2015 The MathWorks, Inc. roadspec = makesymbolspec('Line',... {'Default', 'Color', 'black'}, ... {'ADMIN_TYPE',0,'Color','c'}, ... {'ADMIN_TYPE',3,'Color','r'},... {'CLASS',6,'Visible','off'},... {'CLASS',[1 4],'LineWidth',2}); %% % Display the vector data, using the symbol specification. Note how the % major roads displayed in blue in the previous example are now black. figure mapshow('boston_roads.shp','SymbolSpec',roadspec);