Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/287.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/google-maps/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Gmap在刷新后变得更加闪亮_C#_Google Maps_Subgurim Maps - Fatal编程技术网

C# Gmap在刷新后变得更加闪亮

C# Gmap在刷新后变得更加闪亮,c#,google-maps,subgurim-maps,C#,Google Maps,Subgurim Maps,我有一个Gmap控件,通过c#代码添加了很多点(标记)。 在我添加标记后,我直接向所有标记添加一个闪烁器 现在我在网页上有几个按钮,当用户单击其中一个按钮时,地图就会刷新,只显示相对标记。 当用户单击第一个按钮时,一切正常,但当用户单击任何其他按钮时,闪烁器不工作,但标记会相应地改变 下面是我添加标记和侦听器的一些代码 marker = new GMarker(new GLatLng(lat, lng), new GIcon(Gicon)); clicklist

我有一个Gmap控件,通过c#代码添加了很多点(标记)。 在我添加标记后,我直接向所有标记添加一个闪烁器

现在我在网页上有几个按钮,当用户单击其中一个按钮时,地图就会刷新,只显示相对标记。 当用户单击第一个按钮时,一切正常,但当用户单击任何其他按钮时,闪烁器不工作,但标记会相应地改变

下面是我添加标记和侦听器的一些代码

marker = new GMarker(new GLatLng(lat, lng), new GIcon(Gicon));                 
clicklistener = new GListener(marker.ID, GListener.Event.click, string.Format(@"function(){{var w=new google.maps.InfoWindow();w.setContent('<center><b>{0}</b></center></br><center>{3}</center></br><center>{4}</center></br><center>{5}</center></br><center>{6}</center>');w.open({1}, {2});}}", SName + " , " + FacType, GMap1.GMap_Id, marker.ID, "Printer Status: " + PrinterStatus.ToString() + ", Battery: " + Sbat + "V  Signal: " + SSignal + "%", "Scanner Status: " + ScannerStatus.ToString(), "SMS Received: " + Sreceived + " , SMS Sent: " + Ssent, "Last SMS Date: " + SsmsDate.ToString() + " , Last Comms Date: " + ScommsDate.ToString()));
marker=新的GMarker(新的GLatLng(lat,lng),新的GIcon(GIcon));
clicklistener=newglistener(marker.ID,GListener.Event.click,string.Format(@“function(){var w=new google.maps.InfoWindow();w.setContent({0}
{3}
{4}
{5}
{6}”);w.open({1},{2}}),SName+,“+FacType,GMap1.GMap1.GMap\u-ID,ToString.ID”,打印机状态:“+printStatus(),+Sbat++SSignal+”“%”,“扫描仪状态:“+ScannerStatus.ToString()”,“收到的短信:“+Sreceived+”,发送的短信:“+Ssent”,最后一条短信日期:“+SsmsDate.ToString()+”,最后一条通信日期:“+ScommsDate.ToString());
Marker和clicklistener是全局定义的,并通过gmap1.add(Marker)和gmap1.add(clicklistener)添加到映射中 有什么想法吗

问候 帕特里克已排序

所有需要做的就是完全重置整个地图,如下所示: GMap1.reset(); 然后根据需要添加新的标记和侦听器:)

也就是说,Google Maps JavaScript API第2版于2010年5月19日被正式弃用。最初的弃用期从2013年5月19日延长到2013年11月19日。新的开发应该在