Click here to Skip to main content
15,887,596 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: how to use model pop extender with gridview Pin
Christian Graus2-Dec-08 17:55
protectorChristian Graus2-Dec-08 17:55 
Questionwhen any field in toolbox just drag and drop Pin
Rajeshwar Code- Developer2-Dec-08 16:08
Rajeshwar Code- Developer2-Dec-08 16:08 
QuestionMSMQ with asp.net Pin
anurag_dusaj2-Dec-08 11:58
anurag_dusaj2-Dec-08 11:58 
AnswerRe: MSMQ with asp.net Pin
Christian Graus2-Dec-08 12:06
protectorChristian Graus2-Dec-08 12:06 
AnswerRe: MSMQ with asp.net Pin
Blue_Boy2-Dec-08 12:50
Blue_Boy2-Dec-08 12:50 
GeneralRe: MSMQ with asp.net Pin
Christian Graus2-Dec-08 13:28
protectorChristian Graus2-Dec-08 13:28 
GeneralRe: MSMQ with asp.net Pin
Blue_Boy2-Dec-08 13:35
Blue_Boy2-Dec-08 13:35 
QuestionSubgurim's Google map .NET control - problem when too many (> 15) markers Pin
eval992-Dec-08 9:17
eval992-Dec-08 9:17 
I'm using Subgurim's .NET control for Google maps. It works nicely except when I try to display more than about 15 markers on the map. In that case, it just displays "Powered By Subgurim(http://googlemaps.subgurim.net).Google Maps ASP.NET
Thanks on v3.2 to Comunactivo" in place of the map. Has anyone else experienced this?

This is in a Sharepoint webpart.

Here's the code in my CreateChildControls:
GMap1.ID = "GMap1";
GMap1.enableServerEvents = true;
GMap1.serverEventsType = GMap.ServerEventsTypeEnum.AspNetPostBack;
//GMap1.MarkerClick += new GMap.GMap_Handler_ServerEvent_MarkerClick(GMap1_MarkerClick);
GMap1.MarkerClick += new GMap.GMap_Handler_ServerEvent_MarkerClick(GMap1_MarkerClick);
GMap1.Click += new GMap.GMap_Handler_ServerEvent_Click(GMap1_Click);
GMap1.enableHookMouseWheelToZoom = true;
Controls.Add(GMap1);
GControl control2 = new GControl(GControl.preBuilt.MapTypeControl, new GControlPosition(GControlPosition.position.Top_Right));
GMap1.addControl(control2);
GMap1.addControl(new GControl(GControl.preBuilt.LargeMapControl));
GMap1.enableHookMouseWheelToZoom = true;
GMap1.enableGKeyboardHandler = true;


And here's the routine to display the markers:
private void showEventsOnMap(DataTable dtEvents)
{
    GMarker gm;

    litNoMap.Visible = false;
    GMap1.Visible = true;
    //MarkerManager mManager = new MarkerManager();
    //GMap1.resetMarkerManager();
    GMap1.resetMarkers();

    if (dtEvents.Rows.Count > 0)
    {
        double lat = Convert.ToDouble(dtEvents.Rows[0]["Latitude"]);
        double lng = Convert.ToDouble(dtEvents.Rows[0]["Longitude"]);
        GLatLng latlng = new GLatLng(lat, lng);
        GMap1.setCenter(latlng, 8);
        GLatLngBounds bounds = new GLatLngBounds(latlng, latlng);

        string strHTML = string.Empty;
        string myDate = string.Empty;

        foreach (DataRow dr in dtEvents.Rows)
        {
            gm = new GMarker(new GLatLng(Convert.ToDouble(dr["Latitude"]), Convert.ToDouble(dr["Longitude"])));
            myDate = Convert.ToDateTime(dr["EventDate"].ToString()).ToShortDateString();
            strHTML = dr["City"].ToString() + ":  (" + myDate + ") - " + dr["Summary"].ToString().Replace("\"", "");
            GMarkerOptions go = new GMarkerOptions();
            go.title = strHTML;
            gm.options = go;
            //mManager.Add(gm, 0, 10);
            //mManager.Add(gm, 8);
            bounds.extend(gm.point);
            GMap1.addGMarker(gm);

        }
        //GMap1.markerManager = mManager;

        if (GMap1.getBoundsZoomLevel(bounds) >= 0) //getBoundsZoomLevel function doesn't work consistently!
            GMap1.GZoom = GMap1.getBoundsZoomLevel(bounds);
        GMap1.setCenter(bounds.getCenter());
    }
    string strCSV = (new Utilities()).GetTabDelimited(dtEvents);
    dvGTD.Visible = false;
    litNoMarkerInfo.Visible = false;
}


I tried adding the markers to the map directly. I also tried using a marker manager. Neither worked and the latter messed up my marker click event handling.

Any help would be appreciated.
AnswerRe: Subgurim's Google map .NET control - problem when too many (> 15) markers Pin
Christian Graus2-Dec-08 9:28
protectorChristian Graus2-Dec-08 9:28 
AnswerRe: Subgurim's Google map .NET control - problem when too many (> 15) markers Pin
eval999-Dec-08 10:57
eval999-Dec-08 10:57 
GeneralWeb Reporting Libraries Pin
Brady Kelly2-Dec-08 6:23
Brady Kelly2-Dec-08 6:23 
GeneralRe: Web Reporting Libraries Pin
Christian Graus2-Dec-08 16:47
protectorChristian Graus2-Dec-08 16:47 
GeneralRe: Web Reporting Libraries Pin
Brady Kelly2-Dec-08 20:45
Brady Kelly2-Dec-08 20:45 
Questionassing a serial number to rdlc report Pin
kaasir_22-Dec-08 5:29
kaasir_22-Dec-08 5:29 
AnswerRe: assing a serial number to rdlc report Pin
Ravidas S25-Nov-11 0:56
Ravidas S25-Nov-11 0:56 
QuestionSet Font color Pin
netJP12L2-Dec-08 5:10
netJP12L2-Dec-08 5:10 
AnswerRe: Set Font color Pin
Christian Graus2-Dec-08 9:27
protectorChristian Graus2-Dec-08 9:27 
GeneralRe: Set Font color Pin
Paul Conrad2-Dec-08 10:34
professionalPaul Conrad2-Dec-08 10:34 
GeneralRe: Set Font color Pin
netJP12L2-Dec-08 11:44
netJP12L2-Dec-08 11:44 
GeneralRe: Set Font color Pin
Christian Graus2-Dec-08 12:15
protectorChristian Graus2-Dec-08 12:15 
GeneralRe: Set Font color Pin
netJP12L3-Dec-08 4:11
netJP12L3-Dec-08 4:11 
QuestionZero index won't fire change SelectedIndexChanged event Pin
Glacier63272-Dec-08 4:14
Glacier63272-Dec-08 4:14 
AnswerRe: Zero index won't fire change SelectedIndexChanged event -- Fixed Pin
Glacier63272-Dec-08 6:40
Glacier63272-Dec-08 6:40 
QuestionDynamacially populate a web treeviewcontrol Pin
vkumar092-Dec-08 2:30
vkumar092-Dec-08 2:30 
AnswerRe: Dynamacially populate a web treeviewcontrol Pin
Paddy Boyd2-Dec-08 4:27
Paddy Boyd2-Dec-08 4:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.