Wasn't it jordyb...@hotmail.com who wrote: > >Looks like it, but no, I really need the standard one on >maps.google.com, I want to implement all the standard functionality >from maps.google.com. Maybe there is someone who can post me the code >for the standard contextmenu.
This is some of the relevant code from maps.google.com: Jx.prototype.fQa=function(a,b,c){M(this,Xc,a,b,c);this.$A.sort(function(g ,h){return h.priority-g.priority});for(var d=[],e=0;e<I(this.$A);++e)d.push(this.$A[e].items);this.qia();this.vo=new Ix(this.j.Z(),a,d);M(this.j,"contextmenuopened");this.$A=[]}; Jx.prototype.fo=function(a){this.$A.push(a)}; Jx.prototype.qia=function(){if(this.vo){this.vo.remove();delete this.vo}};Rl.prototype.Jya=function(){var a=this;this.mu(function(b){var c=a.sh(b),d=[];d[u(10985)]=Rk(a,a.Qf);d[u(10986)]=Rk(a,a.Kh);d[u(11047)]= Rk(a,a.Dc,c,k);return d},20);Jb&&this.mu(function(b){var c=a.sh(b),d=[],e=new Lo;e.set("q",c.da());e.Ex(a);var g=e.Ra();d[u(12742)]=Rk(a,loadUrl,g);return d},0);if(!this.jva)this.jva=O(this,o,K(this.vo,this.vo.qia))}; There must be some more somewhere, because, obviously, that code doesn't do the "Directions to/from here" entries, but that bit should get you started and give you a feel for the maps.google.com code. -- Mike Williams http://econym.org.uk/gmap --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to Google-Maps-API@googlegroups.com To unsubscribe from this group, send email to google-maps-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---