Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can i use Google Maps on my Windows 10 (UWP) Apps

So, I was looking to create Universal Windows Platform app (targeting both mobile and desktop) that actually showing a maps with a marker that came from lat & long saved in a database. But I want to using Google Maps to show it.

How can I do this? I mean, is it possible?

Which GMaps API should I use? JavaScript API, or the Web Srvice API?

I've been thinking that maybe I could use the web view to achieve this, to show the maps. But is this the right way or any other way?

Glad if someone can help and give an opinion. (and sorry for my bad grammar, if any)

like image 995
Hasyemi Rafsanjani Avatar asked Oct 30 '22 09:10

Hasyemi Rafsanjani


1 Answers

Google does not provide any SDKs for working with Google Maps.

Basically, proposed to use native MapControl. You can look Source Code Sample.

But you can add WebView to display Google Maps. You can create your own html page with JavaScript functions. For invoke your JavaScript functions use InvokeScriptAsync. You can look the simple sample: HOW TO COMMUNICATE WITH WEBVIEW JAVASCRIPT FROM C#

like image 161
Andrii Krupka Avatar answered Nov 12 '22 23:11

Andrii Krupka