Questions tagged [maps]

28629 questions
0

votes
0

answer
16

Views

Xamarin - Google Maps keep “showing” Malls

We are using a stylization with the minimum of items to render (without markers, houses, rivers, etc ...) but somehow we can not disable the rendering of Malls. The rendering in the browser works perfectly (does not display the malls): But when we load the JSON in the Device the malls keep appearing...
Igor
1

votes
1

answer
3.4k

Views

How to check if Google maps API key is integrated

Question:- Is there any way to check that whether google maps has been integrated with correct api key? Description:- I am using Google maps in my project which was not developed from scratch by me. The project has also used async loading of maps using requirejs as well. But I am not sure whether th...
Shivek Parmar
1

votes
2

answer
4.7k

Views

Check axios request url before sending

API requests are failing because the URL generated by Axios is incorrect due to my config. I know what the request url is suppose to look like, so I want to see the request url Axios generates. I can point Axios to my local server and see the requests there, but I want to debug this on the client. I...
Dan
1

votes
2

answer
558

Views

Proper use of ARIA role for Google Maps [duplicate]

This question already has an answer here: What is a suitable WAI-ARIA role attribute for a map element 2 answers Which proper ARIA role should I use for Google Maps application?
Rainbowski
1

votes
1

answer
286

Views

Google Maps autocomplete suggestions not appearing

I'm trying to create an autocomplete for Google Maps in HTML and JavaScript, and I'm using a Bootstrap modal. But it doesn't show the suggestions. This is my code: Hello, world! Abrir mapa Modal title × Close Save changes function init() { var map = new google.maps.Map(document.getElementByI...
Diego Avila
1

votes
1

answer
695

Views

Get coordinates of current location in angular

I created the following function in a service, to get the coordinates of the current location and store them in 2 variables: getCurrentLocation() { if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(position => { this.currLat = position.coords.latitude; this.currLng = position.coo...
Elias
1

votes
1

answer
56

Views

Map seems to drop values in recursion

I've been working on a problem and I figured I would demonstrate it using a pokemon setup. I am reading from a file, parsing the file and creating objects/structs from them. This normally isn't a problem except now I need to implement interface like inheriting of traits. I don't want there to be dup...
1

votes
2

answer
25

Views

Google Maps Heatmap works only when the heatmap data is hardcoded and not when it is generated using a for loop

I am trying to plot a heatmap on Google Maps using the API. On using a hardcoded array of LatLng objects, the rendering works. However, if I then try to remove the hardcoded array and generate the array using a for loop, the rendering fails. console.log for the 2 array variables give me the same obj...
Chaos
1

votes
1

answer
61

Views

Checking if an ArrayList exists in a map

My football team has 5 different teams and I am trying to make a program to keep a track of which players are registered with each team. I want to be able to add a new player but first the program checks if that player is already registered. I would also be able to add new teams in the future and ag...
Joe Pasquale
0

votes
0

answer
7

Views

google maps find_place() positional arguments problem

i need to use the googlemaps/google-maps-services-python for a project, and there is the problem : i want to use find_place(): def find_place(client, input, input_type, fields=None, location_bias=None, language=None): but when i launch my script : import googlemaps from datetime import datetime cl...
X3n4k1s
0

votes
1

answer
15

Views

Geocode returning wrong lat/long

I am using this code to geocode this address to get the lat and long, but it is returning the wrong coordinates. import requests address = '50 Bega St, Tathra NSW 2550, Australia' response = requests.get('https://maps.googleapis.com/maps/api/geocode/json?address= address &key= ****') resp_json_payl...
vartika
0

votes
0

answer
4

Views

Looking for distance history using google API (or other)

I've been searching and i thought i could ask you directly in here. I'm looking for an API (maybe Google) that does the same work as Google fit history API as of recording every distance you made and the transportation mode. It is not necessary for me to get the exact latitude or longitude by at le...
Bertrand Gélinas
0

votes
0

answer
8

Views

Separate land and water using two gradients in ggplot

I'm trying to get two separate gradients for land and water on a map. I am able to get the water gradient (first figure), but not the land. How can I set a grey gradient for land in this code (similar to figure 2)? Code library(marmap) library(ggplot) greys
Vedda
1

votes
2

answer
1.2k

Views

google earth vs. google map api: For a specific environment

I am about to start a new project which will be used about 80% through non-mobile devices like desktops and laptops and 20% through mobile devices. And yes, I want to use KML capabilities too, use JQuery for all my JS work and do not want users to download any plugin separately. I have implemented...
Sunny
0

votes
0

answer
2

Views

Google heat map not showing in Xcode

I am trying to call data from firebase using google heatmaps. for some reason my simulator is just showing a white screen for the google map I am trying to implement googleHeatmaps that calls data from a database and store onto the MapView as a heatmap. import UIKit import GoogleMaps import Google...
Brian
0

votes
0

answer
4

Views

How to get POINT OF VIEW of specific Place using Google Maps

I want to use Google Places Autocomplete - Per Session, with Place Details included, and when an user clicks on an item, display a Google Map StreetView with the Place. The way I was trying to do was: when a user clicks on an autocomplete-list, I use getPlace() function for getting geometry.coordina...
David Manso
0

votes
0

answer
6

Views

Show location of coordinates on google maps using Python

I wrote a code for data science and I got some coordinates that I want to plot on google maps. These are the coordinates, and all of these coordinates are in capitol city of Serbia called Belgrade. X Y 20.657460 44.490140 20.510760 44.652443 20.510540 44.884460 20.471758 44.788613 20.35...
Aleksandar
1

votes
2

answer
6.5k

Views

How can I format the label of a google maps marker

I've been looking all over to find out how to format the text on a custom marker in google maps. I have found some stuff but they all use at least one external js file which I would like to avoid. I read the API documentation on google's site (see link and look under Marker Labels) and it says tha...
speedracer2003
1

votes
2

answer
344

Views

Add place via Google Place API WEB Service with opening hours

Is it possible to add new place with opening hours via Google Places API Web Service? I can't find any information about it. https://developers.google.com/places/web-service/add-place Thank you in advance
barbaris
1

votes
1

answer
972

Views

Xamarin Forms Maps - How to get the value of the Zoom and add a listener on it?

I think that everything is in the title, I'm working with a PCL logic Thank in advance !
Emixam23
1

votes
1

answer
1.6k

Views

How to set style of a data layer feature label in Google maps api?

I've got this working js code: var p; p = new google.maps.Data(); p.loadGeoJson('http://mysource.example.com'); p.setStyle( function(feature){ var icon = feature.getProperty('icon'); var title = feature.getProperty('title'); return { icon: icon, label: title } }); p.setMap(map); The code generate...
kiks73
0

votes
0

answer
3

Views

How to set Custom Infowindow to google marker in different category

I am new in Swift and my english is not very well My question is I have two case to show different Google Marker like this extension ViewController: DropDownButtonDelegate { func titleDidChange(_ newTitle: String) { let realm = try! Realm() switch newTitle { case 'A': mapView.clear() let Adat...
Bruce
1

votes
1

answer
1.1k

Views

How to get estimated travel time and distance in flutter

I'm trying to get estimated time and distance between users current location and predefined destination, and I cannot find a way to do this. I know that flutter now has map plugin - flutter maps but I do not need to display map, just to use map api to calculate estimated travel time and distance. So...
Filip Raj
1

votes
1

answer
1k

Views

sourceMap with sass-loader and postcss-loader in Webpack

I'm trying to enable sourceMaps in webpack but there seems to be a problem with sass-loader and postcss-loader combination. With both sass-loader and postcss-loader enabled my console shows 'no source': But when I disable postcss-loader the sourceMap works fine and points to 'typography' file: webpa...
Tomarz
1

votes
2

answer
1.3k

Views

Flutter: How to add marker to Google Maps with new Marker API?

mapController.addMarker( MarkerOptions( position: LatLng(37.4219999, -122.0862462), ), ); I've seen this code snippet in a blog post, and I'm trying to add markers to Google Maps. The method 'addMarker' isn't defined for the class 'GoogleMapController'. I think the library has changed and I want to...
mirkancal
0

votes
0

answer
3

Views

Mapbox GL JS - Highlight Country Polygon

I have a select2 option where a user can select a Continent, Region, Country, City or Airport. I integrated mapbox to add markers to the map on selecting a location. In case of Country and continent selection I would like to select the whole country/continent instead of just a marker. I tried using...
Omar Tanti
1

votes
1

answer
114

Views

GMSAutocompleteViewController showing only 5 results

I integrated GMSAutocompleteViewController in my app. let autocompleteController = GMSAutocompleteViewController() autocompleteController.delegate = self let filter = GMSAutocompleteFilter() filter.type = .address autocompleteController.autocompleteFilter = filter // Display the autocomplete view c...
Nitish
2

votes
0

answer
77

Views

Xcode 10.2 -Visual studio 2019 - XamarinForms -TKCustomMaps crash

I am facing a particular crash after I updated visual studio 2019, Xcode 10.2. and iPhone 12.2 when I leave the map page is crashing. 1.it opens fine the first time 2.crashes during the next time I open the same page 3. the crash will disappear if I comment the XAML for the map Version Xamarin f...
Pxaml
1

votes
1

answer
151

Views

finding distance of a Autocomplete resulted location from current location IOS

I m working on application like Uber and Careem. When user searches for a location using Google Places Autocomplete API, I want to show the distance as well along with the name of the autocomplete resulted place like Uber and Careem does this. Plz have a look on this image for further clarification
Raja Saad
1

votes
1

answer
77

Views

Google Maps Screen Control

I am using google maps on my project. I want to put arrow to screen if marker not showing on the screen. How can I control screen?
Eli gu
1

votes
1

answer
303

Views

Fetch data using volley and display in Google Maps

This is my first time working with Google Maps in android. I was able to create a map displaying one marker. That was a good start for me. However, I would like to display multiple markers. To do these, I am fetching the locations from the database using volley. However, I am experiencing one proble...
1

votes
0

answer
42

Views

Proper way to do map generation in java

I was thinking about making a game with a map larger than the screen like most open world games. The question I run in to is when a player wants to move on the map how do I move the screen or how would I go about properly rendering new spots on the map. This is like any game such as Mario, awesome t...
Nameis j
1

votes
1

answer
34

Views

Ionic 3 Google Map flickers during view transition

I'm using Ionic 3, and working on iPhones (all versions), and when my view transitions to a view with a Google Map in it, for a second the map flickers and I can still see in the background the previous view. Does anyone know how to fix it?
Dimitri
1

votes
1

answer
24

Views

google maps no gestures working

I have created a Map Fragment that looks like the following : public class MapsFragment extends Fragment implements OnMapReadyCallback { private GoogleMap mMap; @Nullable @Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {...
simplify
1

votes
1

answer
587

Views

Cesium — on click, change map point to standard marker with icon

I am attempting to mimic the the functionality one would see using the Waze LiveMap (https://www.waze.com/livemap) in Cesium. When a point is clicked, it is converted to a marker with an icon. I've attempted a few different things with varying levels of success and I'm at my wits end. Does anyone h...
KateJean
1

votes
1

answer
246

Views

Webview loading only first time

I have a activty which has viewpager and a button . Onclick of button moving to the OutletMapWebView activity with respective needed parameter(viewpager data) ,Below is the code of protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activ...
ndn
1

votes
1

answer
26

Views

Google UIAutocompleteResultController for ios

I want to add pre-defined text on in the result controller, is there any way that it is possible?
makkhokher
1

votes
1

answer
104

Views

google map- zoom to my location

I always struggle a lot with google maps library on Android. My code to zoom to location is really simple: Location location = locationManager.getLastKnownLocation(locationManager.getBestProvider(criteria, false)); if (location != null) googleMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new L...
1

votes
1

answer
148

Views

Redraw direction paths in didUpdateLocations

I want to redraw my direction path and move my marker to the current location. I am currently doing this inside didUpdateLocations function but it gets glitchy because it draws multiple markers and path at the same time. Here is my code: let location = locations.last let destination = CLLocation(la...
Sagaya Abdul
1

votes
0

answer
200

Views

Ionic 2 component use a variable in a function

I'm developing a map with google maps for multiple markers. My first step is to display one marker. The marker is also displayed in the center of the map. Now I would like to display the shop name in the marker info box. I get the list of the vendors from my woocommerce api, but I have trouble displ...
Lorenzo Varano

View additional questions