/GPS display
Bool supermapgisctrl: showgps (double longtitudex, double latitudey, cstring gpsid, long iconnum, cstring Introduction)
{
Csogeopoint objgeopoint;
Csostyle objsty;
Objsty. createdispatch (L "Supermap. sostyle ");
Objsty. setsymbolstyle (m_bufferparam.gpsicon );
Objsty. setsymbolsize (50 );
Objgeopoint. createdispatch (L "Supermap. sogeopoint ");
Objgeopoint. setx (longtitudex );
Objgeopoint. sety (latitudey );
// Car text
Csotextpart objtextpart;
Csogeotext objtext;
Objtextpart. createdispatch (L "Supermap. sotextpart ");
Objtext. createdispatch (L "Supermap. sogeotext ");
Objtextpart. setx (m_mapctrl-> pixeltomapx (m_mapctrl-> maptopixelx (longtitudex) + 10 ));
Objtextpart. sety (m_mapctrl-> pixeltomapy (m_mapctrl-> maptopixely (latitudey) + 10 ));
Objtextpart. settext (gpsid );
Objtext. addpart (objtextpart );
Csotextstyle objtextstyle;
Objtextstyle. createdispatch (L "Supermap. sotextstyle ");
Objtextstyle. setcolor (RGB (4,44, 250 ));
Objtextstyle. setfixedtextsize (35 );
Objtextstyle. setfontheight (50.00 );
Objtextstyle. setfixedsize (true );
Objtextstyle. setbold (true );
Objtext. settextstyle (isotextstyle *) objtextstyle. m_lpdispatch );
M_trackinglayer.removeevent (colevariant (gpsid + L "GPS "));
M_trackinglayer.removeevent (colevariant (gpsid ));
If (m_trackinglayer.addevent (objgeopoint, objsty, gpsid + L "GPS ")
& M_trackinglayer.addevent (objtext, objsty, gpsid ))
{
M_trackinglayer.refreshex ();
}
Objsty. releasedispatch ();
Objgeopoint. releasedispatch ();
Return true;
}