Skip to content

Conversation

@bobobobo
Copy link
Contributor

This adds a method to set max cache size as requested in #7233

@fredj
Copy link
Member

fredj commented Oct 19, 2017

travis is stuck; @bobobobo can you try to push force you branch to restart it?

@bobobobo
Copy link
Contributor Author

@fredj Do you want me to rebase and force push?

@fredj
Copy link
Member

fredj commented Oct 19, 2017

@fredj Do you want me to rebase and force push?

What I usually do to push force is:

git commit --amend
(save)
git push --force <remote> <branch>

@bobobobo bobobobo force-pushed the iconimagecache-setmaxcachesize branch from 0287de3 to f2cfe9d Compare October 19, 2017 14:12
@bobobobo bobobobo force-pushed the iconimagecache-setmaxcachesize branch from f2cfe9d to 343a408 Compare October 24, 2017 14:05
* Set cache max size.
* @param {number} maxCacheSize Cache max size.
*/
ol.style.IconImageCache.prototype.setMaxCacheSize = function(maxCacheSize) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about naming this nicer (setSize) and adding an @api annotation and some more verbose documentation?

@ahocevar ahocevar force-pushed the iconimagecache-setmaxcachesize branch from f0028a0 to 8a9f32f Compare December 1, 2017 16:03
@ahocevar
Copy link
Member

ahocevar commented Dec 1, 2017

I took the liberty to make the changes I suggested.

@ahocevar ahocevar merged commit 7941a33 into openlayers:master Dec 1, 2017
mdastous-bentley pushed a commit to BentleySystems/openlayers that referenced this pull request May 27, 2020
…xcachesize

Add method to set max cache size in ol.style.IconImageCache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants