On Nov 2, 8:58 am, Ghrai <[email protected]> wrote:
> Hi there,
>
> I am trying to link from external web pages to specific markers in my
> Google mashup, and have tried to adapt some JQuery code to do this,
> however it does not seem to be calling the markers/info windows
> correctly.

Have you seen this page from Mike Williams' tutorial?
http://econym.org.uk/gmap/linktothis.htm

  -- Larry


>
> The code I'm using is:
>
> //After google jquery load add this:
> google.setOnLoadCallback(function() {
>         //jQuery plugin extension 
> fromhttp://jquery-howto.blogspot.com/2009/09/get-url-parameters-values-wi...
>         $.extend({
>           getUrlVars: function(){
>                 var vars = [], hash;
>                 var hashes =
> window.location.href.slice(window.location.href.indexOf('?') +
> 1).split('&');
>                 for(var i = 0; i < hashes.length; i++)
>                 {
>                   hash = hashes[i].split('=');
>                   vars.push(hash[0]);
>                   vars[hash[0]] = hash[1];
>                 }
>                 return vars;
>           },
>           getUrlVar: function(name){
>                 return $.getUrlVars()[name];
>           }
>         });
>
> }, true);
>
> //Add this at the bottom of your JavaScript:
>
> $(document).ready(function(){
>         var tourNo = $.getUrlVar('tourNo');
>         if (tourNo !== null){
>                 myclick(tourNo);
>         }
>
> });
>
> ---
>
> See the source code and lines 41 and 221 
> here:http://www.ucl.ac.uk/prosp-students/access/virtual-tour/index?tourNo=10
>
> Thanks for any help you can give.
>
> G

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" 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