W

X

Sunday, May 06, 2007

Map Changes

I have started making some changes to WxMap. The color information for the legend items and other colors has now been consolidated in the same area of the ini file. This change allowed for some optimization in the code.

The other color products now have the option "legend". If you check this item, the product is added to the legend on the main window.

I have added a label counties option to the map menu. This option will try to label counties depending on the zoom level. The program attempts to fit the county name inside the county. Right now the program requires 60 pixels of space to show the county name. Zooming in will show more of the names. I may need to add an option to allow users to set the minimum pixel size.

I have found that if you enable this option while there are active alarms, it may take a little while for the program to label the active counties. The same goes for disabling the alarms. I will find out why the mapping program does that. The name is displayed with a yellow background to help make it stand out. This also may require a user setting.

The next change for the map involves optimization. Right now when a new product is received, the program redraws all of the active weather. This takes a considerable amount of CPU time. This change will be involved. I will see if I can get that started today. This issue must be resolved before adding other capabilities.

No comments: