Gmaps设置当前位置的关键字错误
本文关键字:关键字 错误 位置 设置 Gmaps | 更新日期: 2023-09-27 18:19:15
try THIS CODE:
private void button1_Click(object sender, EventArgs e)
{
GeoCoderStatusCode status = gMapControl1.SetCurrentPositionByKeywords(textBox3.Text);
if (status != GeoCoderStatusCode.G_GEO_SUCCESS)
{
MessageBox.Show("Geocoder can't find: '" + textBox3.Text + "', reason: " + status.ToString(), "GMap.NET", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}
else { gMapControl1.SetCurrentPositionByKeywords(textBox3.Text) };
}
我只收到消息框错误
使用热版本,稳定版本不支持。net 4,这里:https://greatmaps.codeplex.com/releases/view/73162
是该页的最后一个