いくつかの json マーカーをマップに表示しようとしています。
マップは実際に表示されていますが、ポインターが表示されておらず、マップの位置がかなりずれています。
jsコードは次のとおりです。
<script>
$('#map_canvas').gmap().bind('init', function() {
// This URL won't work on your localhost, so you need to change it
// see http://en.wikipedia.org/wiki/Same_origin_policy
$.getJSON( 'locations.json', function(data) {
$.each( data.markers, function(i, marker) {
$('#map_canvas').gmap('addMarker', {
'position': new google.maps.LatLng(marker.latitude, marker.longitude),
'bounds': true
}).click(function() {
$('#map_canvas').gmap('openInfoWindow', {'content': marker.content }, this);
});
});
});
});
</script>
json ファイルの内容は次のとおりです。
{"locations":[{"id":"14","location":"(50.8765125,
-1.1504182944499557)"}]}
コードに何か問題がありますか?