-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FlightPlanner : Inject Custom Map tiles and reload map into custom #3322
base: master
Are you sure you want to change the base?
Conversation
GCSViews/FlightPlanner.cs
Outdated
|
||
if (MainV2.comPort.MAV.cs.mode.ToLower() == "guided" && MainV2.comPort.MAV.GuidedMode.x != 0) | ||
{ | ||
addpolygonmarker(this, "Guided Mode", MainV2.comPort.MAV.GuidedMode.y / 1e |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doesnt this just overwrite the start elements of the array populated in the previous line? it should have a destination index
please fix whitespace in your commit as well |
Sorry about that, i changed the code and rebase it on master. |
var files_png = Directory.GetFiles(fbd.SelectedPath, "*.png", SearchOption.AllDirectories); | ||
string[] files = new string[files_jpg.Length + files_jpeg.Length + files_png.Length]; | ||
Array.Copy(files_jpg, files, files_jpg.Length); | ||
Array.Copy(files_jpeg, files, files_jpeg.Length); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is still an issue. where is the destination index?
Add progress bar
Add summary of tiles injection per zoom
Load the Custom map and reload the map after injection