Use _getTileSize() instead of using options.tileSize directly
Merge pull request #2321 from perliedman/tms-fix-maxNativeZoom

Use _getTileSize() instead of using options.tileSize directly