- App.tsx: full navigation (Auth stack + Main tabs with 5 screens) - Auth: LoginScreen, RegisterScreen, ForgotPasswordScreen - HomeScreen: dashboard with IoT metrics, weather widget, alerts, quick actions, sensors - MapScreen: interactive map with layer toggles (6 layers) - MarketplaceScreen: categories (6), products (5), search - ChatScreen: AI chat with quick prompts (4), bot responses - ProfileScreen: user info, stats, menu (9 items), logout - AlertsScreen: alert list with severity, acknowledge - SensorsScreen: sensor list with type filters (6 types), search - ZonesScreen: zone cards with stats - SettingsScreen: language picker (FR/EN/ES/DE), privacy, about - Stores: iotStore (sensors, zones, alerts), notificationStore, uiStore + i18n - Hooks: useSensors, useAlerts, useNotifications, useLocation - Components: Card, Button, LoadingSpinner, ErrorBoundary, Header - Services: iotService, notificationService (with axios API client) - Utils: formatters (temp, AQI, noise, dates), validators (email, password, IBAN) - Theme: colors.ts with full design system (Blue Ocean palette) - Ditto: fixed MongoDB connection, new JWT secrets, official gateway image
101 lines
1.7 KiB
Objective-C
101 lines
1.7 KiB
Objective-C
//
|
|
// AIRGoogleMapsCircle.m
|
|
//
|
|
// Created by Nick Italiano on 10/24/16.
|
|
//
|
|
|
|
#ifdef HAVE_GOOGLE_MAPS
|
|
#import <UIKit/UIKit.h>
|
|
#import "AIRGoogleMapCircle.h"
|
|
#import <GoogleMaps/GoogleMaps.h>
|
|
#import <React/RCTUtils.h>
|
|
|
|
@implementation AIRGoogleMapCircle
|
|
{
|
|
BOOL _didMoveToWindow;
|
|
}
|
|
|
|
- (instancetype)init
|
|
{
|
|
if (self = [super init]) {
|
|
_didMoveToWindow = false;
|
|
_circle = [[GMSCircle alloc] init];
|
|
_circle.fillColor = _fillColor;
|
|
_circle.strokeColor = _strokeColor;
|
|
}
|
|
return self;
|
|
}
|
|
- (void) prepare
|
|
{
|
|
if(_didMoveToWindow) return;
|
|
_didMoveToWindow = true;
|
|
if(_fillColor) {
|
|
_circle.fillColor = _fillColor;
|
|
}
|
|
if(_strokeColor) {
|
|
_circle.strokeColor = _strokeColor;
|
|
}
|
|
if(_strokeWidth) {
|
|
_circle.strokeWidth = _strokeWidth;
|
|
}
|
|
if (_zIndex) {
|
|
_circle.zIndex = _zIndex;
|
|
}
|
|
}
|
|
- (void) didMoveToSuperview
|
|
{
|
|
[super didMoveToSuperview];
|
|
[self prepare];
|
|
}
|
|
|
|
- (void)didMoveToWindow {
|
|
[super didMoveToWindow];
|
|
[self prepare];
|
|
}
|
|
|
|
- (void)setRadius:(double)radius
|
|
{
|
|
_radius = radius;
|
|
_circle.radius = radius;
|
|
}
|
|
|
|
- (void)setCenterCoordinate:(CLLocationCoordinate2D)centerCoordinate
|
|
{
|
|
_centerCoordinate = centerCoordinate;
|
|
_circle.position = centerCoordinate;
|
|
}
|
|
|
|
-(void)setStrokeColor:(UIColor *)strokeColor
|
|
{
|
|
_strokeColor = strokeColor;
|
|
if(_didMoveToWindow) {
|
|
_circle.strokeColor = strokeColor;
|
|
}
|
|
}
|
|
|
|
-(void)setStrokeWidth:(double)strokeWidth
|
|
{
|
|
_strokeWidth = strokeWidth;
|
|
if(_didMoveToWindow) {
|
|
_circle.strokeWidth = strokeWidth;
|
|
}
|
|
}
|
|
|
|
-(void)setFillColor:(UIColor *)fillColor
|
|
{
|
|
_fillColor = fillColor;
|
|
if(_didMoveToWindow) {
|
|
_circle.fillColor = fillColor;
|
|
}
|
|
}
|
|
|
|
-(void)setZIndex:(int)zIndex
|
|
{
|
|
_zIndex = zIndex;
|
|
_circle.zIndex = zIndex;
|
|
}
|
|
|
|
@end
|
|
|
|
#endif
|