ポイントは、JSONファイルからマーカーを指摘することですが、現在のjsonの場合、latとlngがない場合は計算する必要がありますが、機能しません。
//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
}
}
});
私は何かを逃したことがありますか?