I have read nice article like:
http://www.sitepoint.com/examples/google-maps-css3-jquery/
I have the following issue at the last point var places =:
var places =
[
{
"title": "Flinders St Station",
"description": "This is a pretty major train station.",
"position": [
-37.818078,
144.966811
]
},
{
"title": "Southern Cross Station",
"description": "Did you know it used to be called Spencer St Station?",
"position": [
-37.818358,
144.952417
]
}
]
Instructions:
Move the places array out into a new file places.json without the var places = part
- which line exact out : the places array out
- how to do line to invoke places.json
- where to put
$.getJSON('places.json', function(places) {
$(places).each(function() {
// As above
});
});
I’m new to this but http://www.sitepoint.com/examples/google-maps-css3-jquery/
it does not work COPY/PAST