mapplot
- A map plotter library for Rustmapplot is a Rust library for plotting data on maps.
mapplot::google
- Generates an HTML file that uses the
Google Maps JavaScript API to display map data.```rust use std::fs; use mapplot::google::{Circle, GoogleMap, Marker, Polygon, Polyline, Rectangle, style::Color};
fn main() { let netherlands = [ (53.3224787, 7.1852322), (53.0056055, 7.1962228), // --snip-- (51.2176932, 3.8900991), (51.3706174, 3.3641251), ];
let switzerland = [ (47.5976076, 8.1243554), (47.4744889, 7.0147812), // --snip-- (47.5320018, 9.6006684), (47.7892979, 8.5809824), ];
let bern = [ (46.9666268, 7.1781895), (47.1238637, 7.3361174), (47.0593473, 7.6190164), (46.8390079, 7.6863061), (46.7638649, 7.3683927), ];
let html = GoogleMap::new((49.7973, 5.4173), 6, "
fs::write("map.html", html).unwrap(); } ```
Licensed under either of Apache License, Version
2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in the work by you, as defined in the Apache-2.0 license, shall be
dual licensed as above, without any additional terms or conditions.