Closed vvusts closed 1 year ago
Regrettably this hasn't been implemented yet. In the code you can see.
# pragma PointOfInterest
-(void)pointOfInterestTemplate:(CPPointOfInterestTemplate *)pointOfInterestTemplate didChangeMapRegion:(MKCoordinateRegion)region {
// noop
}
Supported in 2.3.0
issue is still there in 2.3.0, The supported events needed "didChangeMapRegion" at the top of the class
Yeah we need a MKCoordinateRegion
to json converter so we can support the event.
The original issue is resolved however, please create a new issue for missing events (or PR)
@vvusts Are you able use PointOfInterestTemplate now? Still I'm facing same issue. App getting crash (Closed unfortunately). Can you someone help me how to use this template?
Adding code sample below:
const template = new PointOfInterestTemplate({
title: 'Example',
items: [
{
id: 'test',
location: { latitude: 64.011, longitude: -21.66 },
title: 'Testing',
subtitle: 'foobar',
},
],
});
CarPlay.pushTemplate(template, false);
@birkir @princekurt FYI
@birkir Still facing the same issue
@vvusts hey are u able to get the POI work ?
Hi,
I am trying to use POI template same as in examples but app crash:
But error that I get is:![Screenshot 2021-08-20 at 16 11 34](https://user-images.githubusercontent.com/25580183/130246514-b67a4aee-420a-4662-9158-5df7a2094ef9.png)
If this is not possible I tried something else:
but this doesn't catch touch event on button over map. Any idea?