4

Had the same trouble. Fix it with 'var' before 'marker = new...'. Else you overwrite the same variable each time.


1

Syntax mistake in this loop: for (var key in data) { if (data.hasOwnProperty(key)) { content += "<li><a href=\"" + data['link'] + "\" >" + data['title'] + "</a></li>"; } } You should use either: 1 - data[key]['link'] etc if you use for in loop 2 - key['link'] if you use for of loop (but I guess this ...


1

I figured out the problem. When defining parameters you need set geo to place.place_name not place.postal_code. For whatever reason place.postal_code totally breaks the function. I imagine it's because geo needs to be a string passed into articles.php and postal_code is an integer. Postal_code may work if you convert it to a string.


1

Per the documentation, the @ (known as the error control operator) does exactly that PHP supports one error control operator: the at sign (@). When prepended to an expression in PHP, any error messages that might be generated by that expression will be ignored.


Only top voted, non community-wiki answers of a minimum length are eligible