消息如何在地图上显示. [英] How message is display on map.

查看:80
本文介绍了消息如何在地图上显示.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我编写了一个在给定位置显示标记的javascript.代码如下

I write a javascript which show marker at given location.code is as follow

<script type='text/javascript'>
                            function initialize() {
                            if (GBrowserIsCompatible()) {
                                var map = new GMap2(document.getElementById('map_canvas'));
                                map.setCenter(new GLatLng(18.536644,73.851149), 2);
                                " + strLocations + @"
                                map.setUIToDefault();
                                }
                            }
                            </script>


这个javascript会从资料库&在地图上显示标记,但是我想从数据库中显示地图上该位置的地址.为此,我是什么?请帮帮我,这很方便.谢谢.


This javascript take locations from database & show marker on map but I want to show address of that location on map from database.for this what do i am?please help me,it''s argent.Thanks.

推荐答案

标记现在位于地图的中心-由"map_canvas"标识的元素.创建一个div并将其放在zorder中"map_canvas"上方的所需位置.

问候
Espen Harlinn
Marker is now at the center of the map - an element identified by ''map_canvas''. Create a div and place it above the ''map_canvas'' in the zorder at the required position.

Regards
Espen Harlinn


在此处播放您的代码.,

http://code.google.com/apis/ajax/playground/ [
Play your code here..,

http://code.google.com/apis/ajax/playground/[^]


这篇关于消息如何在地图上显示.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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