Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Server maintenance on Tue 31.5. at 12:00.
Open sidebar
Teemu Auvinen
dtek1066-toinen-ryhmis
Commits
232504db
Commit
232504db
authored
Jan 02, 2018
by
Matti Pulkkinen
Browse files
added zoom-in functionality
parent
ffee7517
Changes
1
Show whitespace changes
Inline
Side-by-side
src/fi/utu/dtek1066/MapDialog.java
View file @
232504db
...
...
@@ -81,6 +81,16 @@ public class MapDialog extends JFrame {
// TODO:
// ZOOM OUT -TOIMINTO
// MUUTA KOORDINAATTEJA, HAE KARTTAKUVA PALVELIMELTA JA PÄIVITÄ KUVA
if
(
MapDialog
.
this
.
westernLongitude
==
-
180
||
MapDialog
.
this
.
easternLongitude
==
180
||
MapDialog
.
this
.
southernLatitude
==
-
90
||
MapDialog
.
this
.
northernLatitude
==
90
)
{
;
}
else
{
MapDialog
.
this
.
westernLongitude
+=
-
20
;
MapDialog
.
this
.
easternLongitude
+=
20
;
MapDialog
.
this
.
southernLatitude
+=
-
10
;
MapDialog
.
this
.
northernLatitude
+=
10
;
MapDialog
.
this
.
updateImage
();
}
// TODO: outer bounds on koordinaattijärjestelmän ulkorajat, inner bounds on aspect ratio
}
...
...
Write
Preview
Markdown
is supported
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