52535455565758
data.setValue(2, 2, "Airport"); data.setValue(3, 0, 37.4422); data.setValue(3, 1, -122.1731); data.setValue(3, 2, "Shopping"); widget = new MapVisualization(data, options, "400px", "300px"); }
3637383940414243444546
public void testASimpleMapVisualization() { loadApi(new Runnable() { public void run() { MapVisualization.Options options = MapVisualization.Options.create(); DataTable data = makeDataTable(); MapVisualization mapViz = new MapVisualization(data, options, "400px", "400px"); RootPanel.get().add(mapViz); } }); }
5859606162636465666768
options.setMapType(Type.HYBRID); options.setShowLine(true); options.setShowTip(true); options.setZoomLevel(10.0); DataTable data = makeDataTable(); MapVisualization mapViz = new MapVisualization(data, options, "400px", "400px"); RootPanel.get().add(mapViz); } }); }