我下载了Google Maps API所调用的JS文件的源文件,研究了一下,做了一点注释,现在放在下面

  1对Google Maps API的JS文件解析(map.js)var _mSiteName = 'Google Maps';
  2对Google Maps API的JS文件解析(map.js)var _mZoomIn =
 'Zoom In';
  3对Google Maps API的JS文件解析(map.js)var _mZoomOut =
 'Zoom Out';
  4对Google Maps API的JS文件解析(map.js)var _mZoomSet =
 'Click to set zoom level';
  5对Google Maps API的JS文件解析(map.js)var _mZoomDrag =
 'Drag to zoom';
  6对Google Maps API的JS文件解析(map.js)var _mPanWest =
 'Go left';
  7对Google Maps API的JS文件解析(map.js)var _mPanEast =
 'Go right';
  8对Google Maps API的JS文件解析(map.js)var _mPanNorth =
 'Go up';
  9对Google Maps API的JS文件解析(map.js)var _mPanSouth =
 'Go down';
 10对Google Maps API的JS文件解析(map.js)var _mLastResult =
 'Return to the last result';
 11对Google Maps API的JS文件解析(map.js)var _mGoogleCopy = '?2005
 Google';
 12对Google Maps API的JS文件解析(map.js)var _mDataCopy = 'Map data ?2005
 ';
 13对Google Maps API的JS文件解析(map.js)var _mNavteq = 'NAVTEQ?
';
 14对Google Maps API的JS文件解析(map.js)var _mTeleAtlas =
 'Tele Atlas';
 15对Google Maps API的JS文件解析(map.js)var _mZenrin =
 'ZENRIN';
 16对Google Maps API的JS文件解析(map.js)var _mZenrinCopy = 'Map ?2005
 ';
 17对Google Maps API的JS文件解析(map.js)var _mNormalMap =
 'Map';
 18对Google Maps API的JS文件解析(map.js)var _mNormalMapShort =
 'Map';
 19对Google Maps API的JS文件解析(map.js)var _mHybridMap =
 'Hybrid';
 20对Google Maps API的JS文件解析(map.js)var _mHybridMapShort =
 'Hyb';
 21对Google Maps API的JS文件解析(map.js)var _mNew = 'New!
';
 22对Google Maps API的JS文件解析(map.js)var _mTerms =
 'Terms of Use';
 23对Google Maps API的JS文件解析(map.js)var _mKeyholeMap =
 'Satellite';
 24对Google Maps API的JS文件解析(map.js)var _mKeyholeMapShort =
 'Sat';
 25对Google Maps API的JS文件解析(map.js)var _mKeyholeCopy = 'Imagery ?2005
 ';
 26对Google Maps API的JS文件解析(map.js)var _mScale =
 'Scale at the center of the map';
 27对Google Maps API的JS文件解析(map.js)var _mKilometers =
 'km';
 28对Google Maps API的JS文件解析(map.js)var _mMiles =
 'mi';
 29对Google Maps API的JS文件解析(map.js)var _mMeters =
 'm';
 30对Google Maps API的JS文件解析(map.js)var _mFeet =
 'ft';
 31对Google Maps API的JS文件解析(map.js)var _mDecimalPoint =
 '.';
 32对Google Maps API的JS文件解析(map.js)var _mThousandsSeparator =
 ',';
 33对Google Maps API的JS文件解析(map.js)var _mMapErrorTile = 'We are sorry, but we don\'t have maps at this zoom level for this region.Try zooming out for
 a broader look.';
 34对Google Maps API的JS文件解析(map.js)var _mKeyholeErrorTile = 'We are sorry, but we don\'t have imagery at this zoom level for this region.Try zooming out for
 a broader look.';
 35对Google Maps API的JS文件解析(map.js)var _mTermsURL = 'http://www.google.com/help/terms_local.html';

 36对Google Maps API的JS文件解析(map.js)var _apiHash = '5f87579ff86792cf982d095a4228e3de6cdaf562';
 37对Google Maps API的JS文件解析(map.js)var _apiKey = 'ABQIAAAA7nPTPXCvzWYxyKdmbFQfTxRfh1ef-
GeSz5gtCVpCKOPebNr1YhR23M_jRfeqAugNMsW3pZQJAwfCFw';
 38对Google Maps API的JS文件解析(map.js)var _mApiBadKey = 'The Google Maps API key used on this web site was registered for a different web site. You can generate a new key for this web site at http://www.google.com/apis/maps/.';

 39对Google Maps API的JS文件解析(map.js)function createMapSpecs()
 40
        很明显,其实这些只是一些基本的浏览器检测函数,而最重要的内容都在第149行的函数_loadMapsScript加载的函数文件里面,而这几个文件都特别大,我正准备以后进行分析。

相关文章:

  • 2021-05-15
  • 2021-08-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-15
相关资源
相似解决方案