Home > Net >  How to use c # to achieve imitation and family-like the mouse can be displayed on the map to the hot
How to use c # to achieve imitation and family-like the mouse can be displayed on the map to the hot

Time:10-16

I am using repeater can display in the hotel, how to realize the mouse go up and then can show its location on the map, I'll add the implementing partial refresh button, using ajax, but did not respond to a click on the button,

The function getPlace (id) {
Alert ("!!!!! ");
$. Ajax ({
Url: "HandlerGetPlace ashx,"
Type: "post",
Data: "id=" + id,
Success: the function (data)
{
Var map=new BMap. The map (" map_container ");
Var point=new BMap. Point (data. GetLongitude (), data. GetLatitude ());
Map. CenterAndZoom (point, 15);
Map. AddControl (new BMap. NavigationControl ());
Map. AddControl (new BMap. OverviewMapControl ());
Var marker=new BMap. Marker (point);
The map. The addOverlay (marker);
Var where=new BMap. Label (" data. GetHName () ", {offset: new BMap. Size (-, 50-50), the position: point});
Where the setStyle ({" color ":" red ", "fondSize" : "14 px", "cursor" : "pointer"});
The map. The addOverlay (where);
}
})

}
</script>

<body>
Onitemcommand="Repeater1_ItemCommand" & gt;



pictures cannot show



<% # Eval (" hName ") % & gt;



<% # Eval (" hFacility ") % & gt;



Details & lt;/a>
) "/& gt;












CodePudding user response:

Move to the repeater div should be shown on the js do things,
Plug-in online a lot, you look for
  •  Tags:  
  • C#
  • Related