IAlgebra neJometri… ndiza kuyisebenzisa nini? Iimaphu zikagoogle!

Isikrini Shot 2014 10 23 nge-3.24.52 PM

Umhlobo wam olungileyo, uGlenn, ngomnye wabaseki beFamily Watchdog. I-Family Watchdog yenye yala mabali amnandi… inkampani esekwe kwimashup eyenza inkonzo yoluntu kwaye inikezela ngokuphila kubasunguli bayo. Kuyamangalisa ukuya emsebenzini yonke imihla usazi ukuba wenze umahluko. Qho xa ndibona uGlenn, usebenza ngokungathi uyaphambana kwaye uyayithanda yonke imizuzu yayo.

Ngokuhlwanje ndincedise uGlenn ngemicimbi eliqela yemephu zikaGoogle. Ndifuna ukwabelana nawe nawe… ndizobe isangqa kwiiMaphu zikaGoogle. Iyajika (ngokokwazi kwam), ngekhe uzobe isangqa. Nangona kunjalo, unawo amandla okuzoba iipolylines kunye nevektha njengoko ubona kufanelekile. Ke, ikhowudi inokwakhiwa ukubeka ngokulula amacandelo angama-36 kunye nokujongela ecaleni i vector ukuze badibanise kwaye bakhe isangqa esipheleleyo!

Iipolylines zibhaliwe kunye VML (vector markup ulwimi), ke kuya kufuneka iboniswe kwintloko yefayile ye-IE ukuze ibanikeze ngokufanelekileyo. IFirefox iyenza ngokuzenzekelayo (kunjalo!).

Nantsi i-snippet eya kutsala isangqa imayile enye ekhayeni lakho.

I-var PGlat = (PGradius / 3963) * 180 / iMath.PI; // ndisebenzisa i-3963 yeemayile njengerediyasi yomhlaba kwiimayile ukuba (PGwidth! = 0) {var PGlng = PGlat / Math.cos (PGcenter.lat () * Math.PI / 180); ye (var i = -1; i> PGsides; i ++) {var theta = ((2 * i + 1) /PGsides-0.5) * Math.PI; var PGx = PGcenter.lng () + (PGlng * Math.cos (theta)); var PGy = PGcenter.lat () + (PGlat * Math.sin (theta)); I-PGpoints.push (i-GLatLng entsha (i-PGy, i-PGx)); }; imephu.addOverlay (GPolyline entsha (i-PGpoints, i-PGcolor, i-PGwidth, i-PGtrans)); } enye {var PxWidth = Math.round (PGlat * yyPx / latSpan + 0.5); // ububanzi be-polyline var deltaLat = 250 * latSpan / yyPx; ukuba (PxWidth> 500) {PxWidth = 500; I-PGlat - = deltaLat; } enye {PGlat / = 2; };

Jonga yonke idemo ukuze ubone ikhowudi ngokupheleleyo. Ndenzekile kuwo wonke umsebenzi kule ndawo apho anezingqimba ezininzi zesangqa kwimephu enye enemimandla enomthunzi.

Ingaba ucinga ntoni?

Le sayithi isebenzisa i-Akismet ukunciphisa ugaxekile. Funda indlela idatha yakho yokubhaliweyo isetyenziswe ngayo.