benjann / geoplot

Stata module to draw maps
MIT License
28 stars 3 forks source link

load main attribute layer as a default #4

Closed asjadnaqvi closed 1 year ago

asjadnaqvi commented 1 year ago

When processing and merging the layers, by default, users end up at the shape layer in the "variables" window. While one can switch frames, a more intuitive thing would be to move to an attributes layer view. Maybe #2 can also resolve this with adding a main option:

geoframe create <attribute_file> <shapefile>, [options id(_ID) setmain] or something similar.

This would also allow users to add and merge layers in a second step once the frames are defined. Otherwise one really needs to prepare the data at fairly early stage. This gets a bit counter-intuitive from a workflow perspective. Additionally, a very likely use case scenario is that users work with a base layer, while other layers add added on as enhancements.

image

benjann commented 1 year ago

geoframe create now makes the created frame the current (working) frame; it also displays a description of the settings of the frame.

asjadnaqvi commented 1 year ago

Updated the scripts and works perfectly!