google-maps-markers

Add multiple tags to marker

不羁岁月 提交于 2021-02-20 04:47:17
问题 Created i model like in answer. Also added tags in markers: MarkerTag tag = new MarkerTag(); Marker marker = map.addMarker(new MarkerOptions() .position(new LatLng(47.045029, 28.861427)) .title("Marker") .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_AZURE)) .snippet("Population: 4,137,400")); tag.setEmail("first@gmail.com"); tag.setPhoneNumber("+37369490007"); marker.setTag(tag); Marker marker2 = map.addMarker(new MarkerOptions() .position(new LatLng(47.000327, 28

Angular 2+ Google Maps get coordinates from click position on map to update marker position

谁说我不能喝 提交于 2021-02-18 22:12:33
问题 I want to do something which is probably really simple however I can't seem to figure it out. I integrated the Angular2+ Google Maps module to my Angular project (https://angular-maps.com/). Now I want to be able to replace the marker by clicking somewhere on the map. In order to do this I need to fetch the coordinates of the location where the user clicked on the map. If I have these coordinates I can update the longitude and latitude to move the marker. However I am not sure how to fetch

Angular 2+ Google Maps get coordinates from click position on map to update marker position

房东的猫 提交于 2021-02-18 22:12:20
问题 I want to do something which is probably really simple however I can't seem to figure it out. I integrated the Angular2+ Google Maps module to my Angular project (https://angular-maps.com/). Now I want to be able to replace the marker by clicking somewhere on the map. In order to do this I need to fetch the coordinates of the location where the user clicked on the map. If I have these coordinates I can update the longitude and latitude to move the marker. However I am not sure how to fetch

How to show current position marker on Map in android?

落爺英雄遲暮 提交于 2021-02-18 06:46:39
问题 I am developing an application in which I want to display current location using marker in my map. I am using Google Map v2. Here I can display Map and marker when GPS is off ,but not visible any marker on map when GPS on. My requirement is display marker on map with current position I tried like this, @Override public void onLocationChanged(Location location) { // TODO Auto-generated method stub //locationManger.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, this); ArrayList

Flutter Map markers not displaying

前提是你 提交于 2021-02-11 12:47:39
问题 import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:flutter/material.dart'; import 'package:geolocator/geolocator.dart'; import 'package:google_maps_flutter/google_maps_flutter.dart'; import 'package:flutter_spinkit/flutter_spinkit.dart'; class NewMap extends StatefulWidget { @override _NewMapState createState() => _NewMapState(); } class _NewMapState extends State<NewMap> { GoogleMapController _controller; Position position; Widget _child; Map<MarkerId, Marker> markers =

Placing a marker on google maps using asp.net-core razor pages

[亡魂溺海] 提交于 2021-02-11 12:35:43
问题 I have the following 3 pages in my project: Create.cshtml: @page @model AdminPortal.Web.Pages.Assets.CreateModel @{ ViewData["Title"] = "Create"; } <h1>Create</h1> <h4>Asset</h4> <hr /> <div class="row"> <div class="col-md-4"> <form method="post"> <div asp-validation-summary="ModelOnly" class="text-danger"></div> <div class="form-group"> <label asp-for="Asset.ID" class="control-label"></label> <input asp-for="Asset.ID" class="form-control" /> <span asp-validation-for="Asset.ID" class="text

Placing a marker on google maps using asp.net-core razor pages

北城以北 提交于 2021-02-11 12:34:35
问题 I have the following 3 pages in my project: Create.cshtml: @page @model AdminPortal.Web.Pages.Assets.CreateModel @{ ViewData["Title"] = "Create"; } <h1>Create</h1> <h4>Asset</h4> <hr /> <div class="row"> <div class="col-md-4"> <form method="post"> <div asp-validation-summary="ModelOnly" class="text-danger"></div> <div class="form-group"> <label asp-for="Asset.ID" class="control-label"></label> <input asp-for="Asset.ID" class="form-control" /> <span asp-validation-for="Asset.ID" class="text

Not able to get formated_address 'only in English' getting some part of result in regional language

纵饮孤独 提交于 2021-02-10 23:28:30
问题 I'm getting some part of google map result in regional language need complete result in ENGLISH I have tried hitting map's API with changing the language to 'en' and region to 'IN' $geocode=file_get_contents(https://maps.googleapis.com/maps/api/geocode/json?latlng=12.9415554,77.5595728&sensor=false&key=MYAPIGOOGLEKRY&language=en&region=IN); $geocode_arr=json_decode($geocode,true); if(array_key_exists("0",$geocode_arr['results'])){ $arr_exp=explode(",",$geocode_arr['results'][0]['formatted

Markers not showing on google maps

假装没事ソ 提交于 2021-02-10 06:13:31
问题 I'm trying to show markers on my map. but it's not showing them. this is the code I use: var map; var markers = new Array(); function initialize() { var mapOptions = { zoom: 12, center: new google.maps.LatLng(27.9881, 86.9253), }; var map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions); google.maps.event.addListener(map, 'click', addMarker); } function addMarker(event) { markers.push(event.latLng); marker = new google.maps.Marker({ position: event.latLng, map: map });

Flutter show marker's infoWindowText by default in Google map widget

半世苍凉 提交于 2021-02-10 03:01:41
问题 Can anyone suggest if there is a way of keeping infoWindowText showing when I open the Google map widget in Flutter (without having to click the marker first)? or a similar way of keeping a Text widget above a specific marker? Thanks in advance ~~ 来源: https://stackoverflow.com/questions/54745550/flutter-show-markers-infowindowtext-by-default-in-google-map-widget