Jump to content
Sign in to follow this  
roarkr

Starting LNM from C# app

Recommended Posts

Hi, I have a C# app that start Google My Maps with

 StringBuilder airport = new StringBuilder();
                airport.Append("https://www.google.com/maps/d/u/0/view?mid=" + mapID + "=");
                airport.Append(lat + "%2C");

                airport.Append(lon);
                airport.Append("&z=16");

                webBrowser1.Navigate(airport.ToString());
      
where lat and lon are the latitude and longitude of map center when it opens

 

I was wondering if I can in any way open the LNM' map so it opens up the same way?

 

I.e.  starting LNM with parameter lat lon or some other way.
  

Hope this was clear enough

 


Roar Kristensen    www.flightsim4fun.com

P3Dv4 with Opencockpits hardware controlled by OC4BAv4 for immersive PMDG B737/777/747 flying

XPLANE 11 with Opencockpits hardware controlled by OC4BA_XP for immersive  B737 flying

rmMShli.jpg?1 WylQl0J.jpg?3

Share this post


Link to post
Share on other sites

I could add a command line parameter to open the map at given coordinates and zoom distance if that helps.

Not much effort. But this would only work when starting LNM not for an already running LNM (i.e. no DDE).

Alex

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...