$crawler = $client->request('GET',$url);
// here i want to add css styling that hide all elements except canvas containg plane tracking.
$crawler->addContent('<style type="text/css">div:not(.flightPageStaticMap) {display: none;}</style>');
$crawler->filter('.flightPageStaticMap')->each(function ($node) {
// display canvas (map) only here
});
how to do it ?, here is my code.
$url = 'https://flightaware.com/live/flight/BTK7541'; $client = new Client();