Google Map上的ASP.NET用户控件 [英] ASP.NET User Control on Google Map

查看:62
本文介绍了Google Map上的ASP.NET用户控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我正在尝试通过更新面板(已启用viewstate)将服务器端控件放置到Google Map上,并需要它像地图叠加层一样工作(与地图上的坐标绑定并随地图平移).有可能吗?

到目前为止,这是我所拥有的:

-aspx页面上的更新面板,可拖动的jquery窗口内的包装器
-我调用部分回发,并在更新面板中动态加载用户控件
-这将导致可拖动的用户控件保持视图状态(我需要的状态),但它不绑定到地图(平移地图与拖动窗口是互斥的).

有没有一种方法可以将DOM元素捕捉"到Google Maps/OverlayView?最好的方法是什么?

任何帮助,将不胜感激!

谢谢:)

Hello,

I am trying to drop a server-side control onto a Google Map via an update panel (with viewstate enabled), and need it to behave like a map overlay (tied to coordinates on the map and pans with the map). Is that possible?

So far, here is what I have:

- Update panel on aspx page, wrapper inside a draggable jquery window
- I invoke a partial postback, and dynamically load a user control in the update panel
- This results in a draggable user control which maintains the viewstate (what I need), except it is not tied to the map (panning the map is mutually exclusive from dragging the window).

Is there a way to "snap" DOM elements to Google Maps / OverlayView? What''s the best way of doing this?

Any help on this would be greatly appreciated!

Thanks :)

推荐答案

通过JQuery的Google API在 ^ ]
Google API via JQuery is referred at http://www.sitepoint.com/google-maps-api-jquery/[^]


这篇关于Google Map上的ASP.NET用户控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆