问题标签 [gmap.net]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
2174 浏览

c# - Gmaps 通过关键字错误设置当前位置

试过这个代码:

我只收到消息框错误

0 投票
2 回答
883 浏览

c# - Why is my Form on top when I hover over a GMap.NET control?

I have a GMap.NET control on my main form, and then I have a second form that will show when the user clicks on a button. The problem is, that when the user leaves the second window and hovers over the GMap control from the main form, the main form comes to the front. This does not happen when i hover over the rest of the main window with the second window on the front. Also I have another form that will show while the program searches for some data, and this one will also disappear when the user hovers over the map.

I hope I explained it well enough, basically when I hover over the map the main window comes to the front. And it does only happen when there is another form of my project in front of it, not when there is any other window like firefox or something in the front.

So my question is: why does this happen and can I change this behavior? Is it a standard of the GMap.NET control? I am using the Version 1.7.0.0 control btw.

0 投票
1 回答
1458 浏览

c# - WPF中的Gmap.net错误

在 Toolbox 中添加引用组件后,尝试使用该组件时出现以下错误:

"对“GMap.Net.WindowsPresentation,Version=1.6.0.0, Culture=neutral, PublicKeyToken=b8b9027b614afef”的引用已添加到项目中。要使用新引用中的类型,请按 OK 重新启动 XAML 设计器。 XAML 设计器重新启动后,在画板上重新创建控件。 "

已重新启动 Visual Studio,但未解决。

在此处输入图像描述

0 投票
1 回答
619 浏览

c# - 当我关闭应用程序时,某些线程不会停止使用 Gmap

我开始在 C# 中使用 Gmaps,我注意到有时当我在调试模式下运行程序并退出它时,仍然有一些 Gmap 线程继续运行(我假设这是正在发生的事情)所以程序没有完成执行和我需要按停止调试。我真的不希望这种情况在程序完成后继续发生。

那么有什么方法可以强制线程在 GMapControl 内关闭,还是发生了其他事情?

这是我使用的构造函数,然后我只需将 GoogleMap 对象添加到我的主窗体中

0 投票
1 回答
2581 浏览

c# - WPF Gmap.NET 添加大量标记

我正在使用带有 C# WPF 的 Gmap.NET,我想在地图上添加大量标记(~6k)。但我仍然无法异步添加它们,地图总是冻结并且根本没有响应,直到不会添加所有标记......这是我的代码示例:

0 投票
2 回答
4499 浏览

c# - GMap.NET 1.7 异常抛出

目前,我在 Visual Studio 2008 中使用 C# 的 GMap.NET(1.7 版本)。它工作正常,但是,我无法再运行我的 winform 应用程序了。

触发InitializeComponent()我的表单时出现此错误。的类型初始值GMap.NET.WindowsForms.GMapControl设定项引发异常。

如果我恢复到 1.6 版本,它工作正常。

有没有人知道这种问题?

0 投票
2 回答
2476 浏览

gmap.net - GMap.NET 路线多色

我想使用 GMap.Net 的 route 方法绘制路线。但是,当我用新颜色将任何点添加到路线列表中时,所有路线的颜色都发生了变化。因此,它似乎只能对路线使用一种颜色。有没有办法在路线中使用两种或多种颜色?

0 投票
0 回答
191 浏览

c# - Is it possible to add and clear fences in gmap.net?

I am doing a project using GMAP. Here I'm creating multiple fences on single overlay. Suppose if I want to delete any one of those fences (both marker and points of the fence), how can I do it?

0 投票
1 回答
175 浏览

image - 如何在没有白色区域的情况下将我的徽标放在我的地图上?

我的图片框有问题。我想把它放在我在程序中得到的地图上。当我将 img 放入 Picturebox 然后 BringToFront();

我想添加一张有问题的图片,但我刚从 StackOverflow 开始,还没有足够的声誉...... :(

无论如何,我的 img 已显示,但周围有白色区域。我使用的 img 周围没有这些白色的东西。如何使我的图片框透明,以便删除白色字段。

我也尝试只绘制位图来做到这一点,但是我看不到任何将它放在地图上的可能性。地图是“主导”控件。

有什么帮助/建议吗?

谢谢。

0 投票
1 回答
2208 浏览

gmap.net - 如何删除 GMap.Net 中的特定标记?只需使用坐标(lat,lng)。这是我的一些代码对我不起作用