@Test public void testNamedLayers() throws IOException, ParseException { Reader reader = MapboxTestUtils.readerTestStyle("groupStyleTest.json"); StyledLayerDescriptor sld = MapBoxStyle.parse(reader); assertEquals(3, sld.getStyledLayers().length); assertEquals("Lakes", sld.getStyledLayers()[0].getName()); assertTrue(sld.getStyledLayers()[1] instanceof NamedLayer); assertEquals("BasicPolygons", sld.getStyledLayers()[1].getName()); assertEquals("NamedPlaces", sld.getStyledLayers()[2].getName()); }
public static StyledLayerDescriptor parse(Reader reader) throws IOException, ParseException { MBStyleParser parser = new MBStyleParser(); MBStyle style = parser.parse(reader); StyledLayerDescriptor sld = style.transform(); return sld; }
MapBoxStyle { public static StyledLayerDescriptor parse(Reader reader) throws IOException, ParseException { MBStyleParser parser = new MBStyleParser(); MBStyle style = parser.parse(reader); StyledLayerDescriptor sld = style.transform(); return sld; } }
MapBoxStyle { public static StyledLayerDescriptor parse(Reader reader) throws IOException, ParseException { MBStyleParser parser = new MBStyleParser(); MBStyle style = parser.parse(reader); StyledLayerDescriptor sld = style.transform(); return sld; }  }
MapBoxStyle { public static StyledLayerDescriptor parse(Reader reader) throws IOException, ParseException { MBStyleParser parser = new MBStyleParser(); MBStyle style = parser.parse(reader); StyledLayerDescriptor sld = style.transform(); return sld; }  static StyledLayerDescriptor parse(Reader reader); static StyledLayerDescriptor parse(InputStream stream); static List<Exception> validate(Reader reader); }
MapBoxStyle { public static StyledLayerDescriptor parse(Reader reader) throws IOException, ParseException { MBStyleParser parser = new MBStyleParser(); MBStyle style = parser.parse(reader); StyledLayerDescriptor sld = style.transform(); return sld; }  static StyledLayerDescriptor parse(Reader reader); static StyledLayerDescriptor parse(InputStream stream); static List<Exception> validate(Reader reader);  }