I figured out what it was.

I was creating my marker with new google.maps.Marker(point1, MarkerOptions).

My point1 was a LatLng point in google maps.

In the version 3 API, you have to set the point of the Marker by doing
position: LatLng and not how it was previously defined in v2 of the API.

Hope that helps someone else out there that may be having a similar issue.

Thanks for the help,
Nathan

On Thu, Jun 10, 2010 at 8:39 AM, Nathan Raley <[email protected]> wrote:

> I'm not getting a javascript error per say, my try catch for adding the
> markers to the marker manager is kicking an error and failing and the
> markers never show up.
>
> How long does it take for the MM to initialize so I can use it?  Before it
> was almost instantaneous but now it seems as if it is taking forever.  My
> function in the c++ that calls the add markers function is getting called
> several times.
>
> Is there a way to make sure its loaded before I continue on?
>
> Nathan
>
>
> On Wed, Jun 9, 2010 at 4:58 PM, William <[email protected]> wrote:
>
>> On Jun 10, 7:37 am, Nathan Raley <[email protected]> wrote:
>> > And it is tossing an error when trying to add the Markers this way.
>> >
>>
>> What kind of error is being thrown?
>>
>> have a look at this page which shows how to use the V3 MarkerManager:
>>
>>
>> http://google-maps-utility-library-v3.googlecode.com/svn/tags/markermanager/1.0/docs/examples.html
>>
>> because almost everything in the V3 api is asynchronous, the marker
>> manager isn't ready until it notifies listeners with a "loaded"
>> event.
>>
>> Here's a snippet from the examples page:
>>
>> function setupWeatherMarkers() {
>>
>>  mgr = new MarkerManager(map);
>>
>>  google.maps.event.addListener(mgr, 'loaded', function() {
>>    mgr.addMarkers(getWeatherMarkers(20), 3);
>>    mgr.addMarkers(getWeatherMarkers(200), 6);
>>    mgr.addMarkers(getWeatherMarkers(1000), 8);
>>    mgr.refresh();
>>  });
>>
>> }
>>
>> ...
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Maps JavaScript API v3" group.
>> To post to this group, send email to
>> [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<google-maps-js-api-v3%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to