Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
22_23-J 50
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
22_23-J 50
22_23-J 50
Commits
5fcaf0d9
Commit
5fcaf0d9
authored
Jan 30, 2023
by
Yasiru-Deshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Marker for my location added
parent
8d32716e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
Frontend/look_ai/lib/main.dart
Frontend/look_ai/lib/main.dart
+11
-2
No files found.
Frontend/look_ai/lib/main.dart
View file @
5fcaf0d9
...
...
@@ -31,7 +31,7 @@ class MapSampleState extends State<MapSample> {
zoom:
14.4746
,
);
static
const
Marker
_kGooglePlexMarker
=
Marker
(
static
final
Marker
_kGooglePlexMarker
=
Marker
(
markerId:
MarkerId
(
'_kGooglePlex'
),
infoWindow:
InfoWindow
(
title:
"Google Plex"
),
icon:
BitmapDescriptor
.
defaultMarker
,
...
...
@@ -44,12 +44,21 @@ class MapSampleState extends State<MapSample> {
tilt:
59.440717697143555
,
zoom:
19.151926040649414
);
static
final
Marker
_kLakeMarker
=
Marker
(
markerId:
MarkerId
(
'_kLakeMarker'
),
infoWindow:
InfoWindow
(
title:
"Lake"
),
icon:
BitmapDescriptor
.
defaultMarkerWithHue
(
BitmapDescriptor
.
hueBlue
),
position:
LatLng
(
37.43296265331129
,
-
122.08832357078792
),
);
@override
Widget
build
(
BuildContext
context
)
{
return
Scaffold
(
body:
GoogleMap
(
mapType:
MapType
.
normal
,
markers:
{
_kGooglePlexMarker
},
markers:
{
_kGooglePlexMarker
,
_kLakeMarker
,
},
initialCameraPosition:
_kGooglePlex
,
onMapCreated:
(
GoogleMapController
controller
)
{
_controller
.
complete
(
controller
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment