Skip to content

Commit 19ed657

Browse files
committed
Change the type attribute to image type.
1 parent 3bec843 commit 19ed657

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/main/groovy/geoscript/render/io/JsonMapReader.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class JsonMapReader implements MapReader {
5050
GMap map = new GMap(
5151
width: values.get("width", 600),
5252
height: values.get("height", 400),
53-
type: values.get("type", "png"),
53+
type: values.get("imageType", "png"),
5454
backgroundColor: values.get("backgroundColor"),
5555
fixAspectRatio: values.get("fixAspectRation", true),
5656
layers: Renderables.getRenderables(values.get("layers"))

src/main/groovy/geoscript/render/io/XmlMapReader.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class XmlMapReader implements MapReader {
5252
GMap map = new GMap(
5353
width: getInt(xml.width?.text()?.toString(), 600),
5454
height: getInt(xml.height?.text()?.toString(), 400),
55-
type: xml.type?.text() ?: "png",
55+
type: xml.imageType?.text() ?: "png",
5656
backgroundColor: xml.backgroundColor?.text(),
5757
fixAspectRatio: getBoolean(xml.fixAspectRatio?.text(), true),
5858
layers: Renderables.getRenderables(getLayerMaps(xml.layers))

src/test/groovy/geoscript/render/io/JsonMapReaderTest.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class JsonMapReaderTest {
1717
Map map = mapReader.read("""{
1818
"width": 400,
1919
"height": 400,
20-
"type": "png",
20+
"imageType": "png",
2121
"backgroundColor": "blue",
2222
"proj": "EPSG:4326",
2323
"bounds": {

src/test/groovy/geoscript/render/io/XmlMapReaderTest.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class XmlMapReaderTest {
1818
Map map = mapReader.read("""<map>
1919
<width>400</width>
2020
<height>400</height>
21-
<type>png</type>
21+
<imageType>png</imageType>
2222
<proj>EPSG:4326</proj>
2323
<backgroundColor>blue</backgroundColor>
2424
<fixAspectRatio>true</fixAspectRatio>

0 commit comments

Comments
 (0)