CompanyOnwership_icon
Ritesh Ghate
Created on 30 December 2021
icon_unfollowing
Login to follow
google-map-model-prototype-app

Google Map Model - Prototype App

Stable version 1.0.0 (Compatible with OutSystems 11)
Uploaded on 30 December 2021 by 
Ritesh Ghate
google-map-model-prototype-app

Google Map Model - Prototype App

Documentation
1.0.0
  • Current Location


1. Using the Location plugin, in client action, we can get location. Then append the list into the map marker list.

  • OnAfterFetch

  • In this client action, we clear the marker list
  • Then we store the marker data in the map marker variable.
  • Then we append the map marker variable to the map marker list.
  • i.e. using the MapMarker list variable we can show all markers on the map.


  • MapMarkerRaisedEvent

This event is used for displaying the information related to the marker when clicked.

-Referred from GoogleMapLibrary


  • Current Location on click  – This will show you the current location of the user when clicked on the icon

In this client action, we can get the live location of the user with all the markers on the map. So, in this action, we can assign the current lat and long to the coordinate variable,

Then we reset the direction to disable the direction feature.

  • CarouselOnItemChange

This action will perform when the carousel is changed

check index >=0

1.a. If the condition is false then the action will end and the condition and,

1.b. If it is true then the marker will be set to the center location.

2. Then we assign map direction lat & long to origin and destination which will enable direction.

check showDirection condition

3.a. if it is false then action will end

3.b. if the condition is true then the markers list will clear then append that current marker in the marker list variable. And action will end. 


  •  MapInitialized

  • Start, the Current location of the user will be fetched.
  • Assign, Coordinate Lat & Long – For the center position of the marker on the screen.
  • GoogleMap_CircleCreate, CircleObj – Will create a ring around your current location as shown in the image



Support options
This asset is not supported by OutSystems. You may use the discussion forums to leave suggestions or obtain best-effort support from the community, including from  who created this asset.
Dependencies
See all 6 dependencies