
Originally Posted by
06TC_OWNER
First, I haven't figured out how to get the current lat & long in a digimod...
I have tried: sa.NavController.GetLatitude()
where sa = streetdeckApp
Also, the new GetPanel("") function that was added - how does this work?
I tried creating a navlatitude dynamic label from the ide and when I used "GetPanel", I think it got it, but it also erased it.
Thoughts?
Are you doing this as an addin or a script? This works for me.
Code:
//This OnConnection event is where we create all of the modules and overlay streetdeck needs
void StreetDeck.IDualStreetDeckAddin.OnConnection(object o, StreetDeck.enumAddinConnectMode e)
{
//Save a pointer to the StreetDeck App object for future reference
app = (StreetDeck.StreetDeckApp)o;
//Create a shingle module that will show and hide the panel
module = app.CreateModule("ModuleName");
module.MsgBox(app.NavController.GetLatitude().ToString(), "Caption");
}
Bookmarks