Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Implement Support for GoogleMap Widget in Mirai Library #238

Open
ArjunBhilare opened this issue Dec 20, 2023 · 2 comments
Open

feat: Implement Support for GoogleMap Widget in Mirai Library #238

ArjunBhilare opened this issue Dec 20, 2023 · 2 comments
Labels

Comments

@ArjunBhilare
Copy link

Feature Request

Summary: Extend the Mirai library to include support for the GoogleMap widget, enabling dynamic rendering and control of maps in Server-Driven UI applications.

Details: Maps are a fundamental component in many mobile applications, used in scenarios ranging from location tracking to route planning. Integrating GoogleMap support into Mirai would empower developers to dynamically manipulate map properties, markers, and behaviors directly from the server, enhancing the interactivity and versatility of SDUI apps.

Proposed Implementation

JSON Schema for Map Properties: Define a comprehensive JSON structure to represent various GoogleMap properties like initial camera position, markers, polylines, polygons, and map type.

Dynamic Content Management: Allow updating map elements (like markers and polylines) in real-time based on server responses, enabling live tracking features or dynamic content presentation on maps.

Interaction Handlers: Implement support for map interaction events such as onMarkerTapped, onMapCreated, and onCameraMove, with corresponding actions defined in the JSON.

Custom Parser for Map Widget: Develop a custom parser in Mirai that translates the JSON map definitions into a GoogleMap widget, handling the instantiation and configuration of the map according to the server-defined properties.

Use Cases

Location-Based Services: For apps that need to display user or asset locations dynamically, like delivery apps or ride-sharing services.

Interactive Maps in Travel Apps: To dynamically update points of interest, routes, or informational overlays based on user preferences or travel itineraries.

Real Estate Applications: For displaying property listings with dynamic markers and information based on user search criteria.
Impact

Adding GoogleMap support would significantly broaden the scope of applications that can be developed with the Mirai library, especially for location-based services and apps requiring high degrees of interactivity with map data. This feature aligns with the growing trend of providing rich, dynamic content in mobile applications.

@ArjunBhilare ArjunBhilare changed the title Implement Support for GoogleMap Widget in Mirai Library feat: Implement Support for GoogleMap Widget in Mirai Library Dec 20, 2023
@mtellect
Copy link

mtellect commented Mar 13, 2024

Feature Request

Summary: Extend the Mirai library to include support for the GoogleMap widget, enabling dynamic rendering and control of maps in Server-Driven UI applications.

Details: Maps are a fundamental component in many mobile applications, used in scenarios ranging from location tracking to route planning. Integrating GoogleMap support into Mirai would empower developers to dynamically manipulate map properties, markers, and behaviors directly from the server, enhancing the interactivity and versatility of SDUI apps.

Proposed Implementation

JSON Schema for Map Properties: Define a comprehensive JSON structure to represent various GoogleMap properties like initial camera position, markers, polylines, polygons, and map type.

Dynamic Content Management: Allow updating map elements (like markers and polylines) in real-time based on server responses, enabling live tracking features or dynamic content presentation on maps.

Interaction Handlers: Implement support for map interaction events such as onMarkerTapped, onMapCreated, and onCameraMove, with corresponding actions defined in the JSON.

Custom Parser for Map Widget: Develop a custom parser in Mirai that translates the JSON map definitions into a GoogleMap widget, handling the instantiation and configuration of the map according to the server-defined properties.

Use Cases

Location-Based Services: For apps that need to display user or asset locations dynamically, like delivery apps or ride-sharing services.

Interactive Maps in Travel Apps: To dynamically update points of interest, routes, or informational overlays based on user preferences or travel itineraries.

Real Estate Applications: For displaying property listings with dynamic markers and information based on user search criteria. Impact

Adding GoogleMap support would significantly broaden the scope of applications that can be developed with the Mirai library, especially for location-based services and apps requiring high degrees of interactivity with map data. This feature aligns with the growing trend of providing rich, dynamic content in mobile applications.

Feature Request

Summary: Extend the Mirai library to include support for the GoogleMap widget, enabling dynamic rendering and control of maps in Server-Driven UI applications.

Details: Maps are a fundamental component in many mobile applications, used in scenarios ranging from location tracking to route planning. Integrating GoogleMap support into Mirai would empower developers to dynamically manipulate map properties, markers, and behaviors directly from the server, enhancing the interactivity and versatility of SDUI apps.

Proposed Implementation

JSON Schema for Map Properties: Define a comprehensive JSON structure to represent various GoogleMap properties like initial camera position, markers, polylines, polygons, and map type.

Dynamic Content Management: Allow updating map elements (like markers and polylines) in real-time based on server responses, enabling live tracking features or dynamic content presentation on maps.

Interaction Handlers: Implement support for map interaction events such as onMarkerTapped, onMapCreated, and onCameraMove, with corresponding actions defined in the JSON.

Custom Parser for Map Widget: Develop a custom parser in Mirai that translates the JSON map definitions into a GoogleMap widget, handling the instantiation and configuration of the map according to the server-defined properties.

Use Cases

Location-Based Services: For apps that need to display user or asset locations dynamically, like delivery apps or ride-sharing services.

Interactive Maps in Travel Apps: To dynamically update points of interest, routes, or informational overlays based on user preferences or travel itineraries.

Real Estate Applications: For displaying property listings with dynamic markers and information based on user search criteria. Impact

Adding GoogleMap support would significantly broaden the scope of applications that can be developed with the Mirai library, especially for location-based services and apps requiring high degrees of interactivity with map data. This feature aligns with the growing trend of providing rich, dynamic content in mobile applications.

@divyanshub024
For the proposed feature stated to work, it will require some sort of state management to keep track the state of google map controller, is there a proposition to support a state management solution for the framework yet?

@divyanshub024
Copy link
Contributor

Hey @mtellect,

Yes, I am working on bringing the state management solution to Mirai. Please keep an eye on #280

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants