【问题标题】:Google Maps : Show Map Via Address谷歌地图:通过地址显示地图
【发布时间】:2010-05-20 15:51:00
【问题描述】:

我有这个代码在页面上显示地图

var _map = new GMap2($get("gmap"));
var _latLng = new GLatLng(lat, lng);
_map.setCenter(_latLng, 11);
_map.addControl(new GLargeMapControl());
_map.addControl(new GMapTypeControl());
var _icon = new GIcon(G_DEFAULT_ICON);
var marker = new GMarker(_latLng);
_map.addOverlay(marker);

但我没有某些地址的地理编码。 如何仅通过地址显示地图。

【问题讨论】:

    标签: google-maps


    【解决方案1】:

    你先用GeoCoder把地址变成经纬度,然后用那个。

    Here's an example of how to geocode an address.

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-07-22
    • 1970-01-01
    • 1970-01-01
    • 2013-04-02
    • 1970-01-01
    • 2017-08-01
    相关资源
    最近更新 更多