On May 11, 3:05 pm, ender <[email protected]> wrote:
> Howdy,
>
> the entire application is pretty big, but since I know links are
> highly useful, it can be found 
> athttp://keytosavannah.dev.emarketsouth.com/citybuddy

Your map isn't visible in IE6, IE6 thinks the "main" div has zero
size.
This thread might help:
http://groups.google.com/group/Google-Maps-API/browse_thread/thread/88794c72d85434d5

  -- Larry


>
> To replicate the issue: drag and drop the pin somewhere on the map...
> you should see the CircleOverlay around it corresponding to the radius
> selected.  Get some search results returned to the map.  from the
> results tab or the infowindow popup click "use as search center".
> This will move the marker to that location and should move the circle
> overlay as well, but doesn't.
>
> The error given is: Undefined 
> valuehttp://maps.google.com/intl/en_us/mapfiles/151e/maps2.api/main.js
> (line 1160)
>
> Which isn't particularly helpful, unfortunately.
>
> the function being a pain is as follows:
>
> function set_center(opt) {
>         var center_latlng;
>         if(opt.method == "dragdrop" && opt.x && opt.y) {
>                 center_latlng = map.fromContainerPixelToLatLng(new 
> GPoint(opt.x,
> opt.y));
>         } else if(opt.method == "link" && opt.id) {
>                 center_latlng = markers[opt.id].latlng;
>         } else {
>                 center_latlng = lasthover;
>         }
>
>         if(center_marker) {
>                 center_marker.setLatLng(center_latlng);
>         } else {
>                 center_marker = new GMarker(center_latlng, {draggable: true, 
> icon:
> youarehereicon});
>                 GEvent.addListener(center_marker, "dragend", 
> function(position) {
>                         get_center_address(position);
>                 });
>                 GEvent.addListener(center_marker, "drag", function(position) {
>                         center_circle.setLatLng(position);
>                         center_circle.redraw();
>                 });
>                 map.addOverlay(center_marker);
>         }
>         get_center_address(center_latlng);
>
>         if(center_circle) {
>                 map.removeOverlay(center_circle);
>                 center_circle.setLatLng(center_latlng);
>                 map.addOverlay(center_circle);
>         } else {
>                 center_circle = new CircleOverlay(center_latlng, ($("select
> [name=distance]").val()), "#336699", 1, 1, "#336699", 0.25);
>                 map.addOverlay(center_circle);
>                 get_num_search_results();
>         }
>
> }
>
> basically I have a special marker (center_marker variable) that is
> moved around and used as the center of a search (only places near
> enough to the marker are returned).  I'm using the CircleOverlay to
> visually represent the area being searched (center_circle variable).
>
> This marker can be set by dragging an icon onto the map (the
> "dragdrop" condition) or by clicking a link from a previous search
> result (moving the center of the next search to that marker's
> position). The drag/drop works as intended... the marker is either
> created or moved into position, and then the circle is either created
> or moved into position.
>
> The problem is coming from the link.  I've tried to debug this every
> way that I know how and I came up with nothing pointing to the real
> problem.
>
> The "center_latlng = markers[opt.id].latlng;" bit would seem to be the
> logical point of failure, but the value returned is setting the
> center_marker well enough, and throwing an alert() nearby displays
> what you'd expect.
>
> I'm pretty much at a loss here.  Anyone got any ideas?
>
> -Ty
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to