Mapplot
A map plotter library for Rust.
Install / Use
/learn @ondt/MapplotREADME
mapplot - A map plotter library for Rust
mapplot is a Rust library for plotting data on maps.
Available Plotters
mapplot::google- Generates an HTML file that uses the Google Maps JavaScript API to display map data.
Example

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, "<your-apikey-here>")
.draw(Marker::new((51.507, -0.127)).label("A").title("London"))
.draw(Marker::new((52.48, -1.902)).title("Birmingham"))
.draw(Polyline::new(netherlands).style(Color::Red))
.draw(Polygon::new(switzerland).path(bern).style(Color::Red))
.draw(Rectangle::new((53.0833, 8.8), (51.3333, 12.3833)).style(Color::Green).editable(true).draggable(true))
.draw(Circle::new((48.856, 2.352), 100_000.0).style(Color::HSL(200, 128, 100))) // Paris
.to_string();
fs::write("map.html", html).unwrap();
}
<br>
License
<sup> Licensed under either of <a href="LICENSE-APACHE">Apache License, Version 2.0</a> or <a href="LICENSE-MIT">MIT license</a> at your option. </sup> <br> <sub> 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. </sub>Related Skills
himalaya
350.8kCLI to manage emails via IMAP/SMTP. Use `himalaya` to list, read, write, reply, forward, search, and organize emails from the terminal. Supports multiple accounts and message composition with MML (MIME Meta Language).
node-connect
350.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
taskflow
350.8kname: taskflow description: Use when work should span one or more detached tasks but still behave like one job with a single owner context. TaskFlow is the durable flow substrate under authoring layer
frontend-design
110.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
