address binding

Jan 6, 2010 at 3:55 PM
Edited Jan 6, 2010 at 3:58 PM

I have a issue to bind my organizations to map. The problem is that it's ok if not too many addressed to be bound and it will get error "invalid argument" in status bar if more than 40 or 50(I am not sure exactly how many will cause the problem". Anyone has solution for this? Thanks in advance!


Here is part of code:


<Artem:GoogleMap ID="gm1" runat="server" Width="700px" Height="400px" EnableScrollWheelZoom="true"
                   address="US"  EnableMarkerManager="true" OnAddressNotFound="HandleAddressNotFound"
                        ZoomPanType="Large" EnableInfoWindow="true" DefaultAddress="KS US" ShowScaleControl="true"
                     <MarkerEvents OnClientClick="showInfoWindow" />  


List<Organization> organizations = OrganizationManager.GetAllActiveOrganizationsByTypesStateForMap(type, stateID);
        gm1.DataAddressField = "DefaultMailingAddressDisplay";
        gm1.DataTextField = "DefaultMailingAddressDisplayFull";
        gm1.DataSource = organizations;