Archive

Archive for June, 2014

COSMCtrl v1.20

June 25, 2014 Comments off

Just to let everyone know that v1.20 of COSMCtrl has been released. Updates for this version include:

  • The HDOP (Horizontal Dilution Of Precision) value is now used to draw a circle around the current GPS location in the Direct2D code path.
  • The sample app now zooms to level 18 if the current zoom level is less than 18 upon received the first position in the gpx track. This zooming is done with an animation.
  • Reworked the Direct2D code path which draws the current GPS position to use a nicer looking triangle as well as rename some virtual functions in this area.
  • Fixed a bug in the DrawGPSTrack method where if the track was empty, the function would fail prematurely and would fail to draw the gps position triangle.
  • Added support for a "m_fBearingOfTopOfMap" setting when using the D2D code path. This major new feature allows you to change the map orientation so that north is not necessarily at the top of the mode. Please note that to facilitate this a major rework of the D2D code path had to be done. The demo app has also been updated to allow the bearing value to be changed by dragging on the map. In addition the current Windows 7 Animations code path has been extended to support animations for changing the bearing. For example if you zoom into a specific location on the map, then rotate the map interactively, then close and reopen the demo app, you will see an animation which rotates, zooms and recenters the map to the saved location.
  • All "BOOL bAnimation" parameters to methods have been replaced with a "double fAnimationDuration" parameter. This allows client code to directly specify the animation duration without needing to override a virtual method. Using a value of 0 for fAnimationDuration will not use an animation. This means that the CalculateTransitionDuration virtual method is now defunct and has been removed.
  • Removed most of the now unused "GetBoundingRect*" methods.
  • Added a new "m_bChangeBearingOfMap" GPS setting for the demo app. When this new setting is enabled, the map will be oriented in the direction of travel upon arrival of each new GPS location event. This new feature works for both the Windows 7 Sensors and the GPSCom2 code paths.
Advertisement
Categories: Web Site Updates

COSMCtrl v1.19

June 13, 2014 Comments off

Just to let everyone know that v1.19 of COSMCtrl has been released. Updates for this version include:

  • Fixed a bug where you would occasionally get an access violation when there was a WinHTTP callback pending and your close the demo app.
Categories: Web Site Updates

COSMCtrl v1.18

June 10, 2014 Comments off

Just to let everyone know that v1.18 of COSMCtrl has been released. Updates for this version include:

  • Updated copyright details.
  • Updated to use new version of the author’s WinHTTPWrappers classes. This addresses a bug where the drawing code for the control could draw with a tile which has been partially downloaded. Thanks to Simon Orde for reporting this issue.
  • Fixed a bug in COSMCtrlWinHTTPRequest::OnCallbackComplete where tiles which did not download successfully were not deleted. Thanks to Simon Orde for reporting this issue.
  • The duration of the animation duration can now be customized via a new virtual "CalculateTransitionDuration" method. Also by default the minimum the minimum duration of a animation has been set to 0.5 seconds. Thanks to Simon Orde for reporting this issue.
  • Added some additional TRACE’ing code to the COSMCtrl::OnDownloadComplete method to show failed file operations in debug builds of the code.
  • Fixed the text in a number of TRACE statements in COSMCtrl::StartAsyncDownload.
  • Fixed a bug in the COSMCtrl::Refresh method where it did not pass the correct parameters to StartAsyncDownload which would sometimes not result in a refresh happening.
  • Removed unnecessary code to delete an unsuccessful download tile from COSMCtrl::OnDownloadComplete as this is already done in COSMCtrlWinHttpRequest::OnCallbackComplete.
  • Removed support for the in memory cache in the D2D code path as it cause drawing problems and is not really needed anyway.
  • Removed the delta mode feature from the control as there are better ways of looking back at OSM historical data online.
  • Fixed an ASSERT which could occur in COSMCtrlWinHttpRequest::OnCallbackComplete when this method is called when the test application is being shutdown.
Categories: Web Site Updates

WinHTTPWrappers v1.05

June 8, 2014 Comments off

Just to let everyone know that v1.05 of WinHTTPWrappers has been released. Updates for this version include:

  • Updated copyright details.                            
  • Updated CAsyncWinHTTPDownloader::Initialize to allow the dwShareMode parameter of the ATL::CAtlFile::Create call for the file instances to be download and uploaded to be customized. The default value for the share mode is now 0 instead of FILE_SHARE_READ. Thanks to Simon Orde for providing this nice addition.
  • All the class methods have had SAL annotations added
Categories: Web Site Updates