Notes created via the micropub client can now have associated places
Squashed commit of the following: commit d98a19ac59d29540f9eeca473013da4e52ad99eb Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Oct 5 16:09:33 2016 +0100 Get places working again, location info will add a place to a note commit 98ec16174cb4431e6e0e13f5f1d3303ceafcd7b1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Oct 5 16:08:32 2016 +0100 gulp build assets from js commit 2e7e50a6f6f7f8b129bb472d92a38801575020a8 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Oct 5 16:07:21 2016 +0100 Use full URIs instead of slugs for places
This commit is contained in:
parent
d924f9916e
commit
ac7f002293
8 changed files with 33 additions and 22 deletions
|
@ -34,8 +34,8 @@ function addPlacesMap(latitude, longitude, uncertainty) {
|
|||
for (i = 0; i < j.places.length; ++i) {
|
||||
var latlng = parseLocation(j.places[i].location);
|
||||
var name = j.places[i].name;
|
||||
var slug = j.places[i].slug;
|
||||
places.push([name, slug, latlng[0], latlng[1]]);
|
||||
var uri = j.places[i].uri;
|
||||
places.push([name, uri, latlng[0], latlng[1]]);
|
||||
}
|
||||
//add a map with the nearby places
|
||||
addMap(latitude, longitude, places);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue