- } else if ( vvp->drawmode == VIK_VIEWPORT_DRAWMODE_GOOGLE ) {
- /* google */
- *x = vvp->google_calcx_fact * (ll->lon - center->lon) + (vvp->width/2);
- *y = vvp->google_calcy_fact * (center->lat - ll->lat) + (vvp->height/2);
- } else if ( vvp->drawmode == VIK_VIEWPORT_DRAWMODE_KH ) {
- /* subtract, convert to KH coords; blow it up by 256 */
- *x = vvp->width/2 + (65536.0 / 180 / vvp->xmpp * (ll->lon - center->lon))*256.0;
- *y = vvp->height/2 + (65536.0 / 180 / vvp->ympp * (center->lat - ll->lat))*256.0;