Help with directory loop

mangre
mangre Global Mapper User

Hi ,

I have re visited gm 25 and are now running my scripts.

I have loaded all the required data layers into GM25 saved that to a GMW file and now running a directory loop to create mapped geo coordinate areas from the main map, I will include the scripts and commands, 

The loop scripts worked fine in GM 12 , and are working the same with GM 25.1


They are running through the loop and creating zones from the script and saving to a folder, that is great.


There is one issue that I have, when the program runs through a directory loop in Global Mapper 25.1, and that is it is not displaying one overlay that I place over the map all other layers are displaying as they are supposed to. The layer that will not display is the one I load with > Open file at fixed screen location< option

The file is a temperature bar I place to the side of the map as an overlay, this is a .png format image. This displays fine on the map and when I save a raster image in Geo Tiff just running the .GMW  All the layerS are there in the saved geo tiff image.including the temperature bar

But the problem is when I run the directory loop command with the .gms scripts which cut the map into 15 zones, the temperature strip does not appear on any of the maps created from the the .gms scripts in the directory loop command.


This worked fine in v12 but not in v25


I have included the script I use.




DIR_LOOP_START DIRECTORY="C:\Users\64274\Pictures\downloads\AA GLOBAL MAPPER SCRIPT\maps\"

EMBED_SCRIPT FILENAME="map1.GMS"

EMBED_SCRIPT FILENAME="map2.GMS"

EMBED_SCRIPT FILENAME="map3.GMS"

EMBED_SCRIPT FILENAME="map4.GMS"

EMBED_SCRIPT FILENAME="map5.GMS"

EMBED_SCRIPT FILENAME="map6.GMS"

EMBED_SCRIPT FILENAME="map7.GMS"

EMBED_SCRIPT FILENAME="map8.GMS"

EMBED_SCRIPT FILENAME="map9.GMS"

EMBED_SCRIPT FILENAME="map10.GMS"

EMBED_SCRIPT FILENAME="map11.GMS"

EMBED_SCRIPT FILENAME="map12.GMS"

EMBED_SCRIPT FILENAME="map13.GMS"

EMBED_SCRIPT FILENAME="map14.GMS"

EMBED_SCRIPT FILENAME="map15.GMS"


UNLOAD_ALL


DIR_LOOP_END  




GLOBAL_MAPPER_SCRIPT VERSION=1.00

EXPORT_RASTER\

PALETTE=OPTIMIZED\

FILENAME="map1.TIF"\

TYPE=GEOTIFF\

COMPRESSION=LZW\

INC_VECTOR_DATA=YES\

GEN_WORLD_FILE=YES\

SAVE_SCALE_AND_LEGEND=YES\

EXPORT_SCALE=0\

DPI=0\

GLOBAL_BOUNDS=173.80,-35.48,176.00,-34.34\



The command above is the .gms script.

Should I be including anything else?