Iimephu zikaGoogle ngaphandle kwesitshixo se-API

Ngokwesiqhelo, xa udibanisa iimephu zikaGoogle, usebenza neMephu yeJavaScript API , efuna isitshixo se-API kwaye inokubangela iindleko ezingafanelekanga ukuba zithathelwe phantsi ngamanani aphezulu okufikelela. Kukho iindlela ezizezinye ezinjengebhokisi yemephu okanye i- OpenStreetMap , kodwa okwangoku abaphumeleli ukwahluka kweempawu ezinikezelwa nguGoogle. UGoogle uqobo unikezela ngendlela ngaphandle kwesitshixo se-API ngomsebenzi owabelweyo, esinokuthi siwusebenzisele iinjongo zethu.


Le ndlela ingasetyenziselwa ngokwenkqubo ukuvelisa nayiphi na idilesi (nokuba ungazi ububanzi nobude). Ngaphezulu koko, imephu (ngokuchaseneyo neqela le-JS) inekhonkco kumcwangcisi wendlela. Imephu inokuphinda ikhutshwe ngoncedo lweefilitha zeCSS (nangona iziphumo zingasondeli kwizitayile zemveli ezinokubakho ngeJS API).

Kwiminyaka emininzi, indlela yokwenza oku yayihamba nge parameter output = embed , leyo uGoogle engayixhasi ngokusemthethweni kwaye ke iziboniso zokubonisa zonyukile kwixesha elidlulileyo:

331190767bb32b2468632e609223c53e

Ukuba usebenzisa umsebenzi osemthethweni wokwabelana ngeemaps.google.de , uya kufumana le khowudi ilandelayo, umzekelo:

331190767bb32b2468632e609223c53e

Ukuba senza i-URL ende kwiparameter ye- src , iziphumo zeepateni:

331190767bb32b2468632e609223c53e

Siyaqonda ezi ntlobo zedatha zilandelayo:

  • m: matrix
  • s: umtya
  • f: ukudada
  • d: Kabini
  • mna: inani elipheleleyo
  • e: enum

Emva kwemizamo embalwa yokulinga kunye neempazamo, sinokuphelisa amaxabiso athile kunye nokupakisha amaxabiso abaluleke kakhulu kwizinto eziguquguqukayo, umzekelo, ukuchaza ngamandla idilesi:

331190767bb32b2468632e609223c53e

Okokugqibela, sinokongeza ukujonga okuhle kwimephu sisebenzisa le khowudi ye-CSS ilandelayo, umzekelo:

331190767bb32b2468632e609223c53e

Ekugqibeleni, sifumana imephu yasimahla, eguqukayo esebenza ngokuthembekileyo:

Emva