點是從JSON文件中指出的標記,但如果目前的JSON,不要有任何的LAT和液化天然氣應該計算它,但它不工作谷歌地圖的問題與地理編碼
//For example when
item.county = 'Orust'
//and
item.region = 'Bohuslän'
爲什麼就是它?
if(lat == null)
{
geocoder.geocode({ 'address': item.county+', '+item.region}, function(result, status) {
if (status == google.maps.GeocoderStatus.OK) {
if(result[0])
{
latlng = result[0].geometry.location
}
}
});
我錯過了什麼嗎?