I find the belgian map.
But how can i load a shp file in teechart with Borland C++.
Series1->LoadMapFromResource(wmWorld,Series1,"c:\\maps\\belgium.shp","c:\\maps\\belgium.shxp");
This dont work. Iit says that it not can find the file?
Thanks
Map belgium
Hi,
you should be able to load it by using the LoadMap procedure :
#include "TeeSHP.hpp"
#include "TeeMapSeriesEdit.hpp"
//---------------------------------------------------------------------------
#pragma link "TeeMapSeries"
#pragma link "TeeSurfa"
#pragma "TeeSHP"
#pragma "TeeMapSeriesEdit"
LoadMap(Series1,'Maps\World.shp',Table1,Edit1.Text,Edit2.Text,tmp);
Like in the example included into the TeeChart Pro installation under :
E:\Program Files\Steema Software\TeeChart 8.0.1 for Delphi 2007\Examples\TeeMaps
you should be able to load it by using the LoadMap procedure :
#include "TeeSHP.hpp"
#include "TeeMapSeriesEdit.hpp"
//---------------------------------------------------------------------------
#pragma link "TeeMapSeries"
#pragma link "TeeSurfa"
#pragma "TeeSHP"
#pragma "TeeMapSeriesEdit"
LoadMap(Series1,'Maps\World.shp',Table1,Edit1.Text,Edit2.Text,tmp);
Like in the example included into the TeeChart Pro installation under :
E:\Program Files\Steema Software\TeeChart 8.0.1 for Delphi 2007\Examples\TeeMaps
Pep Jorge
http://support.steema.com
http://support.steema.com