{.$DEFINE LOG}
{.$DEFINE CHROMIUM}
{.$DEFINE CEF3}
{.$DEFINE CEF275_UP}
{$DEFINE USE_DEFAULT_VECTOR_STYLE}

{.$DEFINE WAIT_SYNCHRO}

{$IFDEF ANDROID}
 {$DEFINE OS_MOBILE}
{$ENDIF}

{$IFDEF IOS}
 {$DEFINE OS_MOBILE}
{$ENDIF}

{$IFDEF OS_MOBILE}
 {.$DEFINE NO_REPAINTMAP_IN_PAINT}
{$ENDIF}



{.$DEFINE useScale}


{$DEFINE UseIDHTTP}



{$IFNDEF OS_MOBILE}
 {.$DEFINE WEBMAP}
{$ELSE}
  {$DEFINE UseIDHTTP}
 {$UNDEF  UseWININET}
{$ENDIF}



   {Delphi conditionnals defines}
{$IFNDEF VER80} { If not Delphi 1 }
{$DEFINE D2_OR_HIGHER}
     {$IFNDEF VER90} { If not Delphi 2 }
     {$DEFINE BCB1_OR_HIGHER}
     {$IFNDEF VER93} { If not BCB 1 }
     {$DEFINE D3_OR_HIGHER}
     {$IFNDEF VER100} { If not Delphi 3 }
     {$DEFINE BCB3_OR_HIGHER}
     {$IFNDEF VER110} { If not BCB 3 }
     {$DEFINE D4_OR_HIGHER}
     {$IfNDef VER120}
     {$Define D5_OR_HIGHER}
     {$IfNDef VER130}
     {$Define D6_OR_Higher}
     {$IfNDef VER140}
     {$Define D7_OR_HIGHER}
     {$IfNDef VER150}
     {$define D8_OR_HIGHER}
     {$IfNDef VER160}
     {$Define D2005_OR_HIGHER}
     {$IfNDef VER170}
     {$Define D2006_OR_HIGHER}
     {$IfNDef VER180}
     {$Define D2007_OR_HIGHER}
     {$IfNDef VER185}
     {$Define D2007_OR_HIGHER}
     {$IFNDEF VER200}
     {$Define D2010_OR_HIGHER}
     {$IFNDEF VER210}
     {$Define XE_OR_HIGHER}
     {$IFNDEF VER220}
     {$Define XE2_OR_HIGHER}
     {$IFNDEF VER230}
     {$Define XE3_OR_HIGHER}
     {$IFNDEF VER240}
     {$DEFINE XE4_OR_HIGHER}
	   {$IFNDEF VER250}
     {$DEFINE XE5_OR_HIGHER}

     {$IFNDEF VER260}
        {$DEFINE XE6_OR_HIGHER}

         {$IFNDEF VER270}
           {$DEFINE XE7_OR_HIGHER}

           {$IFNDEF VER280}
            {$DEFINE XE8_OR_HIGHER}

             {$IFNDEF VER290}
              {$DEFINE DX_OR_HIGHER}


             {$ENDIF}


           {$ENDIF}

         {$ENDIF}
       {$ENDIF}


     {$ENDIF}




     {$ENDIF}
     {$ENDIF}
     {$EndIf}
     {$EndIf}
     {$EndIf}
     {$EndIf}
     {$EndIf}
     {$EndIf}
     {$EndIf}
     {$EndIf}
     {$EndIf}
     {$EndIf}
     {$EndIf}
     {$ENDIF}
     {$ENDIF}
     {$ENDIF}
     {$ENDIF}
     {$ENDIF}



{$IFDEF VER180}
  {$UNDEF D2010_OR_HIGHER}
{$ENDIF}

{$IFDEF VER185}
  {$UNDEF D2010_OR_HIGHER}
{$ENDIF}

{$IFDEF VER190}
  {$UNDEF D2010_OR_HIGHER}
{$ENDIF}


{$IFDEF VER240}
     {$Define XE3_OR_HIGHER}
{$ENDIF}

{$IFDEF VER260}
 {$DEFINE XE5_OR_HIGHER}
{$ENDIF}

{$IFDEF VER270}
 {$DEFINE XE6_OR_HIGHER}
{$ENDIF}

{$IFDEF VER280}
 {$DEFINE XE7_OR_HIGHER}
{$ENDIF}

{$IFDEF VER290}
 {$DEFINE XE8_OR_HIGHER}
{$ENDIF}

{$IFDEF VER300}
 {$DEFINE DX_OR_HIGHER}
{$ENDIF}

{$IFDEF VER310}
 {$DEFINE DX_BERLIN_OR_HIGHER}
 {$DEFINE OK_FOR_NET_HTTP_CLIENT}
{$ENDIF}


{$IFDEF VER320}
 {$IFDEF ANDROID}
  {$DEFINE NO_ROTATE_BITMAP_ANDROID_TOKYO_BUG_CRASH}
  {$DEFINE DIRECT_PAINT_TO_FORM}
 {$ENDIF}
 {$DEFINE DX_TOKYO_OR_HIGHER}
 {$DEFINE OK_FOR_NET_HTTP_CLIENT}
{$ENDIF}

{$IFDEF VER330}
 {$DEFINE DX_TOKYO_OR_HIGHER}
 {$DEFINE DX_RIO_OR_HIGHER}
 {$IFDEF ANDROID}
  {$DEFINE DIRECT_PAINT_TO_FORM}
 {$ENDIF}
 {$DEFINE OK_FOR_NET_HTTP_CLIENT}
 {$DEFINE SAVE_CACHE_TILE_IN_THREAD}
{$ENDIF}

{$IFDEF VER340}
 {$IFDEF OS_MOBILE}
  {$DEFINE NO_FREE_WHEN_RELOAD}
 {$ENDIF}
 {$DEFINE DX_TOKYO_OR_HIGHER}
 {$DEFINE DX_RIO_OR_HIGHER}
 {$DEFINE DX_SYDNEY_OR_HIGHER}
 {$IFDEF ANDROID}
  {$DEFINE DIRECT_PAINT_TO_FORM}
 {$ENDIF}
 {$DEFINE OK_FOR_NET_HTTP_CLIENT}
 {$DEFINE SAVE_CACHE_TILE_IN_THREAD}
 {$DEFINE USE_TASK_FOR_GET_TILES}
{$ENDIF}

{$IFDEF VER350}
 {$IFDEF OS_MOBILE}
  {$DEFINE NO_FREE_WHEN_RELOAD}
 {$ENDIF}
 {$DEFINE DX_TOKYO_OR_HIGHER}
 {$DEFINE DX_RIO_OR_HIGHER}
 {$DEFINE DX_SYDNEY_OR_HIGHER}
 {$DEFINE D11_OR_HIGHER}
 {$IFDEF ANDROID}
  {$DEFINE DIRECT_PAINT_TO_FORM}
 {$ENDIF}
 {$DEFINE OK_FOR_NET_HTTP_CLIENT}
 {$DEFINE SAVE_CACHE_TILE_IN_THREAD}
 {$DEFINE USE_TASK_FOR_GET_TILES}
{$ENDIF}


{$IFDEF VER360}
 {$IFDEF OS_MOBILE}
  {$DEFINE NO_FREE_WHEN_RELOAD}
 {$ENDIF}
 {$DEFINE DX_TOKYO_OR_HIGHER}
 {$DEFINE DX_RIO_OR_HIGHER}
 {$DEFINE DX_SYDNEY_OR_HIGHER}
 {$DEFINE D11_OR_HIGHER}
 {$DEFINE D12_OR_HIGHER}
 {$IFDEF ANDROID}
  {$DEFINE DIRECT_PAINT_TO_FORM}
 {$ENDIF}
 {$DEFINE OK_FOR_NET_HTTP_CLIENT}
 {$DEFINE SAVE_CACHE_TILE_IN_THREAD}
 {$DEFINE USE_TASK_FOR_GET_TILES}
{$ENDIF}

// {$DEFINE DIRECT_PAINT_TO_FORM}


{$IFNDEF XE2_OR_HIGHER}
{$DEFINE MSWINDOWS}
{$ENDIF}

{$IFNDEF D7_OR_HIGHER}
{.$DEFINE WEBMAP}
{$ENDIF}

{$IFDEF D2010_OR_HIGHER}
{$DEFINE UseTOUCH}
{$ELSE}
// use  wininet for old version < d2010

{$IFDEF MSWINDOWS}
 {$DEFINE UseWININET}
 {$UNDEF UseIDHTTP}
 {$UNDEF UseSYNAPSE}
{$ENDIF}
{$ENDIF}


{$IFDEF XE7_OR_HIGHER}
 {$DEFINE UseONTOUCH}
{$ENDIF}

// not stable in XE8
// always unstable with android even on DX (crash in thread)
// set for BERLIN
{$IFNDEF ANDROID}
 {$IFDEF DX_OR_HIGHER}
  {$DEFINE UseNET_HTTP_CLIENT}
  {$UNDEF UseWININET}
  {$UNDEF UseIDHTTP}
  {$UNDEF UseSYNAPSE}
 {$ENDIF}
 {$ELSE}
  //{$IFDEF DX_BERLIN_OR_HIGHER}
  {$IFDEF OK_FOR_NET_HTTP_CLIENT}
  {$DEFINE UseNET_HTTP_CLIENT}
  {$UNDEF UseWININET}
  {$UNDEF UseIDHTTP}
  {$UNDEF UseSYNAPSE}
 {$ENDIF}
{$ENDIF}

(*
{$IFDEF MSWINDOWS}
 {$DEFINE UseWININET}
 {$UNDEF UseIDHTTP}
 {$UNDEF UseSYNAPSE}
 {$UNDEF UseNET_HTTP_CLIENT}
{$ENDIF} *)


(*
{$IFDEF MSWINDOWS}
 {$UNDEF UseWININET}
 {$DEFINE UseIDHTTP}
 {$UNDEF UseSYNAPSE}
 {$UNDEF UseNET_HTTP_CLIENT}
{$ENDIF} *)



// with FMXLinux System.Net.HttpClient, System.Net.HttpClientComponent cannot be used due too a bug software.
// use indy
{$IFDEF LINUX}
 {$DEFINE UseIDHTTP}
 {$UNDEF UseNET_HTTP_CLIENT}
 {$UNDEF UseWININET}
{$ENDIF}

{$IFDEF DX_TOKYO_OR_HIGHER}
 {$DEFINE UseSSLVSSLV23}
{$ENDIF}


// bug on android with net_http and 10.3.1 so use indy

(*
{$IFDEF DX_RIO_OR_HIGHER}
{$IFDEF ANDROID}
  {$DEFINE UseIDHTTP}
  {$UNDEF UseNET_HTTP_CLIENT}
{$ENDIF}
{$ENDIF}*)


{$IFNDEF MSWINDOWS}
{$DEFINE DIRECT_PAINT_TO_FORM}
{$ENDIF}
{.$DEFINE TRIAL_VERSION}
{.$DEFINE LOCK_SHAPES}
{$UNDEF SAVE_CACHE_TILE_IN_THREAD}
{$UNDEF USE_TASK_FOR_GET_TILES}
{$DEFINE SYNCHRONIZE_TILES}

(*

 if you don't define LEGACY_LOAD_TILES the map is not displayed on IOS and MacOS,
 I couldn't test for Linux but as a precaution i stay on the old functional display

*)

{$DEFINE LEGACY_LOAD_TILES}

{$DEFINE BLOCK_DOWNLOAD_TILES}
{$DEFINE use_polyline_simplification}

{$IFDEF UseNET_HTTP_CLIENT}
  {$IFDEF DX_TOKYO_OR_HIGHER}
  {$DEFINE UseNET_HTTP_SECURITY_ERROR}
  {$ENDIF}
{$ENDIF}

{$IFDEF D2010_OR_HIGHER}
 {$DEFINE Use2DCanvas}
{$ENDIF}

{.$DEFINE USE_TASK_FOR_GET_TILES}
{.$DEFINE USE_TASK_FOR_ADD_YO_CACHE}

