Hi,
Is it possible to display column data in the MarkerOverlay popup when mouse over the marker? If not possible, would you please give me the alternate solutions? Thanks
Hi,
Is it possible to display column data in the MarkerOverlay popup when mouse over the marker? If not possible, would you please give me the alternate solutions? Thanks
Chamroeun,
Yes you can. There is a sample just for it under HowDoISamples->Markers->AddProjectedMarkers, please have a look.
Thanks,
James
James,
Thanks, it work fine for the popup now.
Problem:
But now I want to handle the markerOverlay click event as show in the HoDoISample. When I click the marker it just come up the error "Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Error binding to target method."
Reference:
I have one class to manage the map control, in the class i have the Map variable and this map variable is get the map control in the aspx file when Page_Load.
Part of the code:
public void LoadSearchResult(FeatureSource SearchResult)
{
FeatureSourceMarkerOverlay SearchResultMarker = new FeatureSourceMarkerOverlay("SearchResult", SearchResult);
SearchResultMarker.Click += new EventHandler<MarkerOverlayClickEventArgs>(MarkerOvelay_Click);
MP.CustomOverlays.Add(SearchResultMarker); // MP is the Map variable in the class I mention above
MP.CurrentExtent = SearchResult.GetBoundingBox();
}
void MarkerOvelay_Click(object sender, MarkerOverlayClickEventArgs e)
{
}
Please help me.
Best regards,
Chamroeun
Chamroeun,
Here I write a sample which raises the markeroverlay’s click event succesfully, I tested with both the public release WebEdition4.5.0.0 and the latest release 4.5.103.0 and it both worked fine. So could you try that sample on your machine? Maybe something wrong when getting the map control in your code.
Thanks,
Ben
Post8789.zip (13 KB)
Hi Ben,
Thanks, it work fine now!
Chamroeun
You are always welcome.