greatmaps | GMap.NET - Great Maps for Windows Forms & Presentation | Map library
kandi X-RAY | greatmaps Summary
kandi X-RAY | greatmaps Summary
...mission is in progress, great maps helps greatly! ;} ...real FLAT EARTH maps are missing though, no ANTARCTICA maps either.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of greatmaps
greatmaps Key Features
greatmaps Examples and Code Snippets
Community Discussions
Trending Discussions on greatmaps
QUESTION
The .ToImage()
function in GMap.Net does not appear to wait for the map data to be downloaded before the screenshot is taken. This results in images with blank tiles. Is there any existing capability that would allow GMaps to wait until the map is loaded?
I already posted my question on GitHub but haven't gotten a response so far. So any help is appreciated.
VB.NET Code
...ANSWER
Answered 2018-Nov-12 at 04:47Two of the ways around this are using the TilePrefetcher or even better this code.
QUESTION
I am using Greatmaps in a Windows Forms application. I have markers and routes showing but want to add some arrows along the routes to show the direction of travel. I can add GMarkerGoogleType.arrow markers but even if I set the Bearing property of the markers the arrows always point south.
How can I rotate the markers to match the heading ?
Ideally I would like to see just small triangles along the route line which are the same colour as the route stroke colour. Is this possible ?
Thanks for any help.
...ANSWER
Answered 2018-Apr-06 at 13:49You have to use a Custom Marker (GMarkerArrow) instead of (GMarkerGoogleType.arrow) because the support of bearing property of the arrow has been deprecated in this class.
To get the custom marker class, you can found it in the Demo app (Demo.WindowsForms) they created in this link GMarkerArrow Marker Class and you can set the bearing property to it.
QUESTION
I have tried many options for a long time and that is the last one that comes to my mind, so I will try to ask: I am trying to develop an MVVM project in WPF and I have downloaded a ready-to-use WPF control (GMap.NET). However, this control is not prepared to use it in MVVM and I am a newbie in that, so I do not want to modify a source code on my own. The control requires to set many parameters (not accessible through XAML, so I cannot simply bind them), and call some functions on control object. So here goes my question:
How can I access a WPF control instance from any place from the code and manage it from there?
Particularly, I want to access a View element from ViewModel part and I know that it brakes the pattern, but I have no idea how to avoid it and I am running out of time.
...ANSWER
Answered 2017-Jul-30 at 20:05Hard to say without knowing the concrete control. But in general, I see 2 options for make such a control MVVM conform:
- Subclass the control and add dependency properties so it can be used in XAML
- Create a "container control" that wraps the unMVVMable control and provides the required dependency properties.
However, if the API of the control is complex and has not only properties, but also some methods, it may be pragmatic do break MVVM here. MVVM is not the only way to separate GUI related logic from the view. You could abstract the used functions with an interface and use the interface within your view model for example.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install greatmaps
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page