Page 1 of 1

Map belgium

Posted: Wed Jan 16, 2008 1:02 pm
by 10547131
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

Posted: Wed Jan 23, 2008 4:30 pm
by Pep
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