Skip to content

Instantly share code, notes, and snippets.

@WillieYang
Created August 9, 2017 16:39
Show Gist options
  • Select an option

  • Save WillieYang/ca22f450ca8ab54f834eab60aa25f333 to your computer and use it in GitHub Desktop.

Select an option

Save WillieYang/ca22f450ca8ab54f834eab60aa25f333 to your computer and use it in GitHub Desktop.
map error: g.co/staticmaperror
// Change the bug when the list loation is not in the databse,
// the post data of lat and lng are undefined, actually, we need
// to convert the data structure from the array to a javascript object
//(lag: and lng: in coords rather than coords[0] and coords[1]
body_post.coords = {
lng: body_post.coords[0],
lat: body_post.coords[1]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment