I want to add a blur effect to mapbox.when the first time loading map is that time only displays the current location on the map, the other map is a blue screenshot.

when I move userlocation to a different place than another place clear on the map. Also annotating the display in a specific place see screenshot

help me how to implement this
here i will use the code
- (CGPoint)convertLatLongCoord:(CGPoint)latLong { CGSize screenSize = [UIScreen mainScreen].applicationFrame.size]; CGFloat SCALE = MIN(screenSize.width, screenSize.height) / (2.0 * EARTH_RADIUS); CGFloat OFFSET = MIN(screenSize.width, screenSize.height) / 2.0; CGFloat x = EARTH_RADIUS * cos(latLong.x) * cos(latLong.y) * SCALE + OFFSET; CGFloat y = EARTH_RADIUS * cos(latLong.x) * sin(latLong.y) * SCALE + OFFSET; return CGPointMake(x, y); } -(void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray<CLLocation *> *)locations { NSLog(@"data=%f",self.mapview.userLocation.coordinate.latitude); CLLocation *currentLoc=[locations objectAtIndex:0]; _coordinate=currentLoc.coordinate; CGPoint latLong = {_coordinate.latitude, _coordinate.longitude}; oldcord = [self convertLatLongCoord:latLong]; NSLog(@"Cartesian Coordinate: (%f, %f)",oldcord.x, oldcord.y); }
in this code I get the perfect pixel point of view of the UserLocation coordinate. After I want to clear the blur in the view using CGPoint, but I can not get it. I think I will create a CGPoint array and then clean it using the blur line, but I cannot get it by suggesting to me.
I also use this lib, but I can not understand what is needed https://github.com/DenHeadless/Shapes
source share