Map belgium

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
MD
Newbie
Newbie
Posts: 2
Joined: Wed Oct 24, 2007 12:00 am

Map belgium

Post by MD » Wed Jan 16, 2008 1:02 pm

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

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Wed Jan 23, 2008 4:30 pm

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

Post Reply