Hi,
Having a number of issues with the component. I'm developing a Google Glass application, where I have a button on my main form that hides it and shows the form with only the Map component on it.
I'm not entirely sure on the order I'm supposed to call the map procedures and everything, but so far the code does as follows:
When the button to show the map is clicked, the LocationSensor is enabled, and it waited for a Latitude and Longitude to be returned (apart from on Win32 where it uses hard coded Lat and Long). Once it has the Latitude and Longitude, it sets the DefaultLatitude and DefaultLongitude of the Map, then the ZoomMap level. It then adds a marker with the same latitude and longitude. I then hide the main form and show the map form.
My current problems:
Setting the DefaultLatitude and DefaultLongitude doesn't recenter the map, it stays in the default location in Paris. The ZoomMap property however does take effect.
If I call the Initialize method after setting the Default Lat and Long, the map does center, however now my markers don't show up. Map.Markers.Count is still 1, but it's not visible on the map.
At one point it was centering the map properly and showing me the marker, but after going back to the main form then back to the map again they would all disappear.
What am I doing wrong? Am I supposed to use the Initialize procedure? What are the proper ways of showing and hiding the map?
Thanks.