Changeset 32 for trunk/Utilities


Ignore:
Timestamp:
Oct 20, 2011, 3:24:31 AM (12 years ago)
Author:
roman
Message:

more URL shortcuts for: Bing Maps, Yahoo Maps, OpenStreetMap? and WikiMapia?

Location:
trunk/Utilities/GpsLocationConverter
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Utilities/GpsLocationConverter/GpsLocationConverter_i.c

    r31 r32  
    77
    88 /* File created by MIDL compiler version 7.00.0555 */
    9 /* at Tue Oct 18 12:15:23 2011
     9/* at Thu Oct 20 13:23:30 2011
    1010 */
    1111/* Compiler settings for GpsLocationConverter.idl:
  • trunk/Utilities/GpsLocationConverter/GpsLocationConverter_i.h

    r31 r32  
    55
    66 /* File created by MIDL compiler version 7.00.0555 */
    7 /* at Tue Oct 18 12:15:23 2011
     7/* at Thu Oct 20 13:23:30 2011
    88 */
    99/* Compiler settings for GpsLocationConverter.idl:
  • trunk/Utilities/GpsLocationConverter/MainDialog.h

    r31 r32  
    3636        CRoHyperStatic m_GoogleMapsStatic;
    3737        CRoHyperStatic m_YandexMapsStatic;
     38        CRoHyperStatic m_BingMapsStatic;
     39        CRoHyperStatic m_YahooMapsStatic;
     40        CRoHyperStatic m_OpenStreetMapStatic;
     41        CRoHyperStatic m_WikiMapiaStatic;
    3842        BOOL m_bSetClipboardTextActive;
    3943        CWindow m_NextClipboardViewerWindow;
     
    4751        {
    4852                CString psTexts[12];
    49                 CString sGoogleMapsLocation, sYandexMapsLocation;
     53                CString sGoogleMapsLocation, sYandexMapsLocation, sBingMapsLocation, sYahooMapsLocation, sOpenStreetMapLocation, sWikiMapiaLocation;
    5054                #pragma region Degrees
    5155                {
     
    5761                        psTexts[3] = AtlFormatString(_T("%s, %s"), sLongitude, sLatitude);
    5862                        sGoogleMapsLocation = AtlFormatString(_T("http://maps.google.com/maps/?ll=%s,%s"), sLatitude, sLongitude);
    59                         sYandexMapsLocation = AtlFormatString(_T("http://maps.yandex.ru/?ll=%s,%s"), sLongitude, sLatitude);
     63                        sYandexMapsLocation = AtlFormatString(_T("http://maps.yandex.ru/?ll=%s,%s&z=%d"), sLongitude, sLatitude, 19);
     64                        sBingMapsLocation = AtlFormatString(_T("http://www.bing.com/maps/?v=2&cp=%s~%s&lvl=%d"), sLatitude, sLongitude, 17);
     65                        sYahooMapsLocation = AtlFormatString(_T("http://maps.yahoo.com/#lat=%s&lon=%s&zoom=%d"), sLatitude, sLongitude, 17);
     66                        sOpenStreetMapLocation = AtlFormatString(_T("http://www.openstreetmap.org/?lat=%s&lon=%s&zoom=%d"), sLatitude, sLongitude, 17);
     67                        sWikiMapiaLocation = AtlFormatString(_T("http://wikimapia.org/#lat=%s&lon=%s&z=%d"), sLatitude, sLongitude, 17);
    6068                }
    6169                #pragma endregion
     
    128136                m_GoogleMapsStatic.SetWindowText(AtlFormatString(_T("<A TITLE=\"Open in Google Maps\" HREF=\"%s\">%s</A>"), sGoogleMapsLocation, sGoogleMapsLocation));
    129137                m_YandexMapsStatic.SetWindowText(AtlFormatString(_T("<A TITLE=\"Open in Yandex Maps\" HREF=\"%s\">%s</A>"), sYandexMapsLocation, sYandexMapsLocation));
     138                m_BingMapsStatic.SetWindowText(AtlFormatString(_T("<A TITLE=\"Open in Bing Maps\" HREF=\"%s\">%s</A>"), sBingMapsLocation, sBingMapsLocation));
     139                m_YahooMapsStatic.SetWindowText(AtlFormatString(_T("<A TITLE=\"Open in Yahoo Maps\" HREF=\"%s\">%s</A>"), sYahooMapsLocation, sYahooMapsLocation));
     140                m_OpenStreetMapStatic.SetWindowText(AtlFormatString(_T("<A TITLE=\"Open in Open Street Map\" HREF=\"%s\">%s</A>"), sOpenStreetMapLocation, sOpenStreetMapLocation));
     141                m_WikiMapiaStatic.SetWindowText(AtlFormatString(_T("<A TITLE=\"Open in WikiMapia\" HREF=\"%s\">%s</A>"), sWikiMapiaLocation, sWikiMapiaLocation));
    130142        }
    131143        BOOL SetText(const CString& sText)
     
    156168                }
    157169                #pragma endregion
     170                // TODO: Recognize Bing, Yahoo, OpenStreetMap and WikiMapia URLs
    158171                #pragma region Degrees and Minutes
    159172                static CAtlStaticRegExp<> g_ExpressionD0(_T("^[\t ]*")
     
    305318                _W(m_GoogleMapsStatic.SubclassWindow(GetDlgItem(IDC_MAIN_GOOGLEMAPS)));
    306319                _W(m_YandexMapsStatic.SubclassWindow(GetDlgItem(IDC_MAIN_YANDEXMAPS)));
     320                _W(m_BingMapsStatic.SubclassWindow(GetDlgItem(IDC_MAIN_BINGMAPS)));
     321                _W(m_YahooMapsStatic.SubclassWindow(GetDlgItem(IDC_MAIN_YAHOOMAPS)));
     322                _W(m_OpenStreetMapStatic.SubclassWindow(GetDlgItem(IDC_MAIN_OPENSTREETMAP)));
     323                _W(m_WikiMapiaStatic.SubclassWindow(GetDlgItem(IDC_MAIN_WIKIMAPIA)));
    307324                _W(CenterWindow());
    308325                m_bSetClipboardTextActive = FALSE;
Note: See TracChangeset for help on using the changeset viewer.