1
1
package org .geoscript .example
2
2
3
3
object Render extends App {
4
- import org .geoscript ._ , render .{ Content , draw , png }
4
+ import org .geoscript ._ , render ._
5
5
6
6
def reference (e : org.geoscript.geometry.Envelope , p : projection.Projection ) =
7
7
new org.geotools.geometry.jts.ReferencedEnvelope (e, p)
@@ -15,7 +15,7 @@ object Render extends App {
15
15
val theme = style.CSS .fromFile(styleFile)
16
16
val bounds = reference(states.envelope, projection.Projection (" EPSG:4326" ))
17
17
val win = new org.geoscript.render.Window
18
- draw(Content (states, theme), bounds, win)
18
+ draw(Content (states, theme), Stretch ( bounds) , win)
19
19
20
20
val watcher = new actors.DaemonActor {
21
21
val styleFile = new java.io.File (" ../geocss/src/test/resources/states.css" )
@@ -26,7 +26,7 @@ object Render extends App {
26
26
if (updated < lastModified) {
27
27
try {
28
28
val theme = style.CSS .fromFile(" ../geocss/src/test/resources/states.css" )
29
- draw(Content (states, theme), bounds, win)
29
+ draw(Content (states, theme), Stretch ( bounds) , win)
30
30
} catch {
31
31
case _ => ()
32
32
}
0 commit comments