-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added api bookmarks #444
base: develop
Are you sure you want to change the base?
Added api bookmarks #444
Conversation
Get spartial bookmarks from localStorage. | ||
@method getSpatialBookmarks | ||
@param {Array} bookmarkIds Array of spartial bookmarks id. | ||
@return {Promise} If objectIds equal ubdefined return all spartial bookmarks else return spartial bookmarks where objectIds inculde bookmark id. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
опечатка в undefined
return new Ember.RSVP.Promise((resolve, reject) => { | ||
try { | ||
let mapKey = this.get('mapApi').getFromApi('mapModel').get('id'); | ||
let bookmarksStore = this.get('localStorageService').getFromStorage('bookmarks', mapKey); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
а зачем мы ограничиваем закладки только на текущую карту?
this.get('localStorageService').setToStorage('bookmarks', mapKey, bookmarks); | ||
resolve('succes'); | ||
} else { | ||
reject('objectIds does'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
неполное предложение
Добавлены 3 функции Api по работе с закладками: