Created
August 9, 2017 16:39
-
-
Save WillieYang/ca22f450ca8ab54f834eab60aa25f333 to your computer and use it in GitHub Desktop.
map error: g.co/staticmaperror
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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