In debugging via Visual Studio it is trying to call this which is showing up as my Marker Manager. So is there something wrong with how I am passing the array to the Marker Manager?
On Wed, May 5, 2010 at 2:59 PM, nlraley <[email protected]> wrote: > I am loading in some coordinates from a c++ program into my array > called BreadCrumbMarkersA and adding all these values to the > BreadCrumbMM. > > I pull the values into my program through the function > GetBreadCrumbMarker which in turn creates a new GMarker by running the > function CreateBreadCrumb. This as I said creates a GMarker at one of > the positions I have pulled from my other program and then pushes this > Marker to my BreadCrumbMarkersA. > > After I have cycled through all my locations in the c++ program I > simply execute a DrawBreadCrumbs and it calls > BreadCrumbsMM.addMarkers(BreadCrumbMarkersA, 17). This should be > passing my Marker object I have stored in my BreadCrumbMarkersA > array. I then call BreadCrumbMM.refresh() which is where I am running > into the error. > > I am using this with windows apis that run explorer so I am not > opening it up in a browser so I have limited debugging capabilities > present atm. However, it is showing up an error Line 314, object > doesn't support this property or method which apparently from what I > can tell is in the main.js. > > Here is some of my code that handles the marker manager: > function GetBreadCrumbMarker(BreadCrumbsLat, BreadCrumbsLon, Type) { > try { // Start try for Drawing Bread Crumb > // Run function DrawBreadCrumb passing it the value of > point and > Type > // This creates a new BCMarker > var BCMarker = CreateBreadCrumb(point, Type); > } // End try for Drawing Bread Crumb > > catch(error) { // Start catch for Drawing Bread Crumb > alert("Error Creating Bread Crumb"); > } // End catch for Drawing Bread Crumb > } > function CreateBreadCrumb(point, Type) { > switch(Type){ > > > > //------------------------------------------------------------------------------- > // Case 0 inidicates a normal bread crumb > case 0: > var BreadCrumb = new GMarker(point); > break; > } > try { > BreadCrumbMarkersA.push(BreadCrumb); > } > catch(error) { > alert("Error Pushing BreadCrumb to BreadCrumbMarkers > Array!"); > } > } > function DrawBreadCrumbMarkers() { > > > //------------------------------------------------------------------------------- > // Set the options for the BreadCrumb Marker Manager > > > //------------------------------------------------------------------------------- > var BreadCrumbMMOptions = {trackMarkers: true}; > > > //------------------------------------------------------------------------------- > > > //------------------------------------------------------------------------------- > // Create the Marker Manager for Bread Crumbs called BreadCrumbMM > // Set its options to BreadCrumbMMOptions defined > above > //------------------------------------------------------------------------------- > var BreadCrumbMM = new GMarkerManager(map, BreadCrumbMMOptions); > > > //------------------------------------------------------------------------------- > BreadCrumbMM.addMarkers(BreadCrumbMarkersA,17); > for (var i = 0; i < BreadCrumbMM.length; i++) { > if (BreadCrumbMM[i] == undefined) > alert("Array Location is undefined!"); > else > alert("Array Location is defined!"); > } > alert("trying to refresh the MM"); > BreadCrumbMM.refresh(); > } > > Now I get through everything apparently alright; however, my for loop > to check if BreadCrumbMM[i] is defined or not never hits. My alert > triggers for the Trying to refresh MM and then it hits the JavaScript > error immediately afterwards. > > Any ideas? > > -- > You received this message because you are subscribed to the Google Groups > "Google Maps API" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-maps-api%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-maps-api?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
