Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
podusowski committed Jul 18, 2023
1 parent f936932 commit 85ff3d5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/osm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ fn main() -> Result<(), eframe::Error> {
eframe::run_native(
"OpenStreetMap",
Default::default(),
Box::new(|cc| Box::new(Osm::new(cc.egui_ctx.clone()))),
Box::new(|cc| Box::new(MyApp::new(cc.egui_ctx.clone()))),
)
}

struct Osm {
struct MyApp {
tiles: Tiles,
map_memory: MapMemory,
}

impl Osm {
impl MyApp {
fn new(egui_ctx: Context) -> Self {
Self {
tiles: Tiles::new(walkers::openstreetmap, egui_ctx),
Expand All @@ -24,7 +24,7 @@ impl Osm {
}
}

impl eframe::App for Osm {
impl eframe::App for MyApp {
fn update(&mut self, ctx: &egui::Context, _frame: &mut eframe::Frame) {
egui::CentralPanel::default().show(ctx, |ui| {
ui.horizontal(|ui| {
Expand Down

0 comments on commit 85ff3d5

Please sign in to comment.