Skip to content

Commit

Permalink
Add better exception for missing Maps on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jfversluis committed Nov 27, 2023
1 parent 6b32433 commit 2118430
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Controls/Maps/src/AppHostBuilderExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,12 @@ public static IMauiHandlersCollection AddMauiMaps(this IMauiHandlersCollection h
handlersCollection.AddHandler<Pin, MapPinHandler>();
handlersCollection.AddHandler<MapElement, MapElementHandler>();
#endif

#if WINDOWS
throw new NotImplementedException(".NET MAUI Maps is currently not implemented for Windows. For more information, please see: https://aka.ms/maui-maps-no-windows");
#elif
return handlersCollection;
#endif
}
}
}

0 comments on commit 2118430

Please sign in to comment.