I-Google Amamephu ngaphandle kokhiye we-API

Ngokuvamile, lapho uhlanganisa i-Google Maps, usebenza ne- Maps JavaScript API , edinga ukhiye we-API futhi engadala izindleko ezingafanele ukubukelwa phansi ngezinombolo zokufinyelela eziphakeme. Kunezinye izindlela ezinhle ezifana nebhokisi lemephu noma i- OpenStreetMap , kepha okwamanje azikazifezi izinhlobo zezici ezinikezwa yiGoogle . I-Google uqobo inikela ngendlela ngaphandle kokhiye we-API ngomsebenzi wokwabelana, esingasisebenzisela izinhloso zethu.


Le ndlela ingasetshenziswa ngohlelo ukukhipha noma yiliphi ikheli (noma ungazi i-latitude nobude). Ngaphezu kwalokho, imephu (ngokungafani nozakwabo we-JS) iqukethe isixhumanisi esihlela umzila. Imephu nayo ingakhishwa ngosizo lwezihlungi ze-CSS (yize umphumela ungasondeli kuzitayela zomdabu ezingenzeka nge-JS API).

Sekuyiminyaka eminingi, indlela yokwenza lokhu bekungukukhishwa kwepharamitha = embed , iGoogle engasekeli ngokusemthethweni ngakho-ke ukubonisa amaphutha kukhuphukile esikhathini esedlule:

331190767bb32b2468632e609223c53e

Uma usebenzisa umsebenzi wokwabelana osemthethweni nge-maps.google.de , uzothola ikhodi elandelayo, isibonelo:

331190767bb32b2468632e609223c53e

Uma sakha i-URL ende kupharamitha ye- src , imiphumela yephethini:

331190767bb32b2468632e609223c53e

Sibona izinhlobo zedatha ezilandelayo:

  • m: i-matrix
  • s: intambo
  • f: ukuntanta
  • d: Kabili
  • mina: inani eliphelele
  • e: enum

Ngemuva kwemizamo embalwa yokulinga nephutha, singasusa amanani athile bese sipakisha amanani abaluleke kakhulu kokuguquguqukayo, ngokwesibonelo ukuchaza ngamandla ikheli:

331190767bb32b2468632e609223c53e

Ekugcineni, singangeza ukubukeka okuhle emephini, ngokwesibonelo ngosizo lwekhodi elandelayo ye-CSS:

331190767bb32b2468632e609223c53e

Ekugcineni, sithola imephu yamahhala nenamandla esebenza ngokuthembekile:

Emuva