Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
ca0e8a11
Commit
ca0e8a11
authored
Apr 12, 2004
by
Leigh B. Stoller
Browse files
Use the real MEB maps we got from someplace. At present, using just
the 3rd and 4th floor maps.
parent
c0dcd3b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
vis/floormap.in
View file @
ca0e8a11
...
...
@@ -73,8 +73,10 @@ $building = $ARGV[0];
# Hardwire the imagemaps for now.
#
my
%baseimages
=
();
$baseimages
{"
MEB
"}{"
4-East
"}
=
"
$TB
/www/meb-4east.png
";
$baseimages
{"
MEB
"}{"
4-West
"}
=
"
$TB
/www/meb-4east.png
";
$baseimages
{"
MEB
"}{"
4
"}
=
"
$TB
/www/meb4fl.png
";
$baseimages
{"
MEB
"}{"
3
"}
=
"
$TB
/www/meb3fl.png
";
#$baseimages{"MEB"}{"2"} = "$TB/www/meb2fl.png";
#$baseimages{"MEB"}{"1"} = "$TB/www/meb1fl.png";
if
(
!
exists
(
$baseimages
{
$building
}))
{
die
("
No such building:
$building
\n
");
...
...
@@ -146,7 +148,7 @@ else {
#
# Create a new image using the aggregate size.
#
$image
=
new
GD::
Image
(
$max_x
,
$total_y
);
$image
=
new
GD::
Image
(
$max_x
,
$total_y
,
1
);
#
# Now copy the floor images into the superimage.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment