Cross-Platform Programming with wxWidgets
Just Make It Cross-Platform
Subscribe to Feed
  • Home
  • Projects
  • Links

wxYahooMaps

wxYahooMaps is wxWidgets-based wrapper around Yahoo! Maps Image API. wxYahooMaps allow downloading map images by specifying location details (such as coordinates, address or description). wxYahooMaps downloads images asynchronously, this means that each image is downloaded in separate thread and GUI thread receives notification when downloading is completed. This allows simultaneous downloading of multiple images whuch can be very convenient.

Downloads

  • Download wxYahooMaps Source Code

Related links

  • wxYahooMaps homepage at Google Code
  • Yahoo! Map Image API homepage
  • Retrieve Application ID for your software
  • Runtime Type Information Library for PPC 2003

Screenshots

wxYahooMaps - Wrapper C++ Library for Yahoo!! Maps Image API - Smaple for Windows Vista

wxYahooMaps - Wrapper C++ Library for Yahoo!! Maps Image API - Smaple for Windows Mobile

Usage

wxYahooMap * m_YahooMap;
...
BEGIN_EVENT_TABLE( wxYahooMapsTestMainFrame, wxFrame )
EVT_YAHOO_MAP_STATUS(wxID_ANY, wxYahooMapsTestMainFrame::OnYahooMapStatus)
END_EVENT_TABLE()
...
void wxYahooMapsTestMainFrame::OnYahooMapStatus(wxYahooMapStatusEvent & event)
{
	if(event.GetInt() == 0)
	{
		wxBitmap * bmp = event.GetBitmap();
		if(bmp)
		{
			m_Canvas->SetMap(*bmp);
			wxDELETE(bmp);
		}
	}
	else
	{
		wxMessageBox(event.GetString());
	}
}
...
void wxYahooMapsTestMainFrame::OnGOBUTTONClick( wxCommandEvent& event )
{
	TransferDataFromWindow();
	m_YahooMap->SetApplicationID(m_AppID);
	m_YahooMap->SetUsePosition(m_UsePosition);
	m_YahooMap->SetPosition(wxRealPoint(m_Longitude, m_Latitude));
	m_YahooMap->SetStreet(m_Street);
	m_YahooMap->SetCity(m_City);
	m_YahooMap->SetState(m_State);
	m_YahooMap->SetZIPCode(m_ZIPCode);
	m_YahooMap->SetImageType(wxYahooMap::IntToYahooMapImageType(m_ImageType));
	m_YahooMap->SetImageSize(wxSize(m_ImageWidth, m_ImageHeight));
	m_YahooMap->SetZoomLevel(m_ZoomLevel);
	m_YahooMap->StartDownloading();
}
  • This blog is about…

    Articles Code::Blocks Components Controls Database DatabaseLayer Document/View Eclipse Localization NetBeans Networking News Printing Reports SQLite Tutorilas Video Visual Studio wxAUI wxButton wxDev-CPP wxGrid wxHelpController wxJavaScript wxJSON wxLocale wxLog wxPaintDC wxPropertyGrid wxRuby wxSQLite3 wxThread wxValidator wxWidgets wxWinCE wxZipInputStream wxZipOutputStream XML Библиотека Книги Статьи
  • Showcase

    Visit wxToolBox Homepage

    Buy wxToolBox (with source code)

  • Archives

    • November 2009
    • September 2009
    • August 2009
    • May 2009
    • April 2009
    • March 2009
    • February 2009
    • January 2009
    • December 2008
    • September 2008
    • August 2008
    • July 2008
    • June 2008
    • May 2008
    • April 2008
    • March 2008
    • February 2008
    • January 2008
    • December 2007
    • June 2007
    • May 2007
    • January 2007
  • Recent Comments

    • T-Rex on Getting Acquainted with Document/View Framework – Simple Image Viewer
    • T-Rex on Сделайте мне красиво – Часть II – wxAUI в Multi-View приложений
    • Mardiko on Getting Acquainted with Document/View Framework – Simple Image Viewer
    • marty on Сделайте мне красиво – Часть II – wxAUI в Multi-View приложений
    • T-Rex on Перевод книги Julian’а Smart’а – Глава VI – Обработка данных с устройств ввода
  • Buttons

    Locations of visitors to this page

    Rambler's Top100
    Рейтинг@Mail.ru

Copyright © 2010 Cross-Platform Programming with wxWidgets All Rights Reserved
RSS Log in