View Single Post
  #39  
Old 03-11-2007, 02:51 AM
Tralala's Avatar
Tralala Tralala is offline
 
Join Date: Jan 2006
Posts: 1,207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by magnus View Post
After some testing, I've only been able to replicate that result when inline editing a thread and changing multiple maps. Are you using the inline editor, or are you creating a new reply? If not, give that a try. Otherwise, can you post the resulting <script></script> information once again?

Thanks.

I posted via QuickReply as well as "Advanced" Reply, and always got the same result... the address of the first map in the thread is used for all maps.

Here is the <script> info from the page's source, I changed the address to a nearby location for illustrative purposes:

PHP Code:
<script type="text/javascript">
    function 
showmap136825()
    {
        
//<![CDATA[
            
if (GBrowserIsCompatible())
            {
                var 
map136825 = new GMap(document.getElementById("map136825"));
                
map136825.centerAndZoom(new GPoint(-77.03722338.898563), 4);
            }
            var 
icon = new GIcon();
            
icon.image "http://labs.google.com/ridefinder/images/mm_20_red.png";
            
icon.shadow "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
            
icon.iconSize = new GSize(1220);
            
icon.shadowSize = new GSize(2220);
            
icon.iconAnchor = new GPoint(620);
            
icon.infoWindowAnchor = new GPoint(51);
            
map136825.addControl(new GSmallMapControl());
            
map136825.addControl(new GMapTypeControl());
            var 
point0136825 = new GPoint(-77.03722338.898563);
            var 
marker0136825 = new GMarker(point0136825);
            
map136825.addOverlay(marker0136825)
            
GEvent.addListener(marker0136825"click", function()
                {
                    
marker0136825.openInfoWindowHtml("1600 Pennsylvania Avenue NW, Washington, DC 20500");
                }
            );
            var 
point1136825 = new GPoint(-118.34096534.066642);
            var 
marker1136825 = new GMarker(point1136825);
            
map136825.addOverlay(marker1136825)
            
GEvent.addListener(marker1136825"click", function()
                {
                    
marker1136825.openInfoWindowHtml("200 South Orange Avenue, Los Angeles, CA 90036");
                }
            );
        
//]]>
    
}
    
showmap136825();
</
script

Another interesting data point. If the map in post #1 is for "200 South Orange Avenue, Los Angeles, CA 90036" and the map in post #2 is for a nearby address, say, "300 South Orange Avenue, Los Angeles, CA 90036"... the map in post #2 has two red pointers in it, for both addresses.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01278 seconds
  • Memory Usage 1,804KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete