diff --git a/demos/listmap2/js/listmap.js b/demos/listmap2/js/listmap.js index 9ab5e4ab..4645e73b 100644 --- a/demos/listmap2/js/listmap.js +++ b/demos/listmap2/js/listmap.js @@ -31,7 +31,7 @@ Ox.load('Geo', function() { flag: countryCode, geoname: city.name + ', ' + Ox.getCountryByCode(countryCode).name, geonameSort: getGeonameSort(city.name + ', ' + Ox.getCountryByCode(countryCode).name), - id: Ox.encodeBase32(i), + id: Ox.encodeBase32(Ox.uid()), markerColor: marker.color, markerSize: marker.size, name: city.name, @@ -138,9 +138,10 @@ Ox.load('Geo', function() { }) .bindEvent({ addplace: function(data) { - Ox.print('addplace', data); + Ox.print('addplace', getGeonameSort(data.place.geoname)); places.push(Ox.extend(data.place, { - geonameSort: getGeonameSort(data.place.geoname) + geonameSort: getGeonameSort(data.place.geoname), + id: Ox.encodeBase32(Ox.uid()) })); }, geocode: function(event, data) {