I am clearly missing something trivial. I've put up a test page with
what is not working for me:

http://www.fnfbook.com/easy.html

When I try to use an options map to set parameters, none of the
markers are shown.
And for the life of my, I can't get the Marker constructor to do
anything when I pass in an object that is a LatLong.

I've isolated the problem to this code snippet (also visible from a
view source in the above URL)

         $.each(myObject, function(){
                        var options = {
                                draggable: true,
                                bouncy: false,
                                //title = this.title,           //[1] can't 
have this
                                };
                        var aLatlng = new google.maps.LatLng(this.latitude,
this.longitude);
                        var marker = new google.maps.Marker(aLatlng,
options );   //[0] argument latlong ignored
                        marker.setPosition( aLatlng);   //[2] must
have this altho it is redundant
                        marker.setTitle(this.title);    //[3] should
not need this if [1] worked
                        marker.setMap(map);
                    });

The first problem is that I can't get the paramter latlong to work.
See [0]. It reuqires the specific setPosition()  as marked by [2]

Secondly, I'd like to set the title/mouse over in the options map, but
that doesn't work as in [1] so I have to do it explicitly as in [3[

I think I have to get these working before I can try to vary the icons
shown for each marker.

Thanks
pat

--

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