@shasheminassab ,
There is not enough information in your post to be able to anwer your question. I found no JMP object called a MapBox, there is
- a MapSeg that is for a Background Map that can be added to a graph's FrameBox,
- a MapShape that can be added via the GraphBuilder controls.
I am thinking you are refering to the Map Shape area in the GraphBuilder as the Map Box. The script below was copied from the JMP Help >Scripting Guide> Clip Shape The script creates a density contour map and uses the US States a s a background map
Names Default To Here( 1 );
Open( "$SAMPLE_DATA/Cities.jmp" );
gb = Graph Builder(
Size( 653, 396 ),
Show Control Panel( 0 ),
Variables( X( :Longitude ), Y( :Latitude ) ),
Elements( Contour( X, Y, Legend( 2 ) ) ),
SendToReport(
Dispatch(
{},
"Graph Builder",
FrameBox,
{Background Map( Boundaries( "US States" ) ), Grid Line Order( 2 ),
Reference Line Order( 3 )}
)
)
);
cs = (gb << Report)[FrameBox( 1 )] << Find Seg( Contour Seg( 1 ) );
Wait( 2 );
cs << Clip Shape( Boundaries( "US States" ) );
This next script uses the same data table and a Map Shape
Graph Builder(
Size( 551, 618 ),
Show Control Panel( 0 ),
Variables( Overlay( :State ), Color( :POP ), Shape( :State ) ),
Elements( Map Shapes( Legend( 7 ), Show Missing Shapes( 1 ) ) )
)
The first graph maps some function relative to Longitude and Latitude with the map shape in the background. The second graph hase sub areas defined and maps some value (like population or ozone level) for each sub area (state). Each state is a discrete shape.
Saving the script for your graph and posting it, will help the JMP community answer your question.