开发者

Why I can't create a context menun using dojo over google maps

开发者 https://www.devze.com 2023-03-10 03:17 出处:网络
I want to create a context menu using Dojo over google maps.But it doesn\'t work over the map bu开发者_开发技巧t in other elements the context menu works.

I want to create a context menu using Dojo over google maps.But it doesn't work over the map bu开发者_开发技巧t in other elements the context menu works.

I try to create a google maps listener:

google.maps.event.addListener(map,'rightclick', funcition(){create_menu("mapa_div")})

But it doesn't work too

Any advise?

Thanks in advance


I think then, this below format should work well.

new dijit.Menu({
        targetNodeIds: ["id_of_the_domNode_containing_the_map"]
    });
0

精彩评论

暂无评论...
验证码 换一张
取 消