google-maps-markers

React and google-maps-react. Not displaying InfoWindow

我的梦境 提交于 2020-03-24 12:05:52
问题 I am using React and google-maps-react library for a project. I am trying to display InfoWindows for each of the markers. But it is not working. I have looked at the documentation as well as GitHub issues for this and have no been able to find a solution. Here is the code import React from "react"; import { connect } from "react-redux"; import { Map, GoogleApiWrapper, Marker, InfoWindow } from "google-maps-react"; import { API_GOOGLE_MAPS } from "../config"; const mapStyles = { width: "100%",

markerclusterer check if marker is in cluster

江枫思渺然 提交于 2020-03-21 21:54:58
问题 I have a web based map that is using the jquery-ui-map and markerclusterer plugin to make a google map. I filter out which markers should be shown or not then update the map. I need to create a list of unclustered markers and so to this end need a way to check clusters against markers and find out which are not clustered. Is there any techniques to do this? I have tried to cycle through clusters and manually check the markers against clusters but get an error telling me the clusters property

markerclusterer check if marker is in cluster

↘锁芯ラ 提交于 2020-03-21 21:53:53
问题 I have a web based map that is using the jquery-ui-map and markerclusterer plugin to make a google map. I filter out which markers should be shown or not then update the map. I need to create a list of unclustered markers and so to this end need a way to check clusters against markers and find out which are not clustered. Is there any techniques to do this? I have tried to cycle through clusters and manually check the markers against clusters but get an error telling me the clusters property

I can't get markers from firebase

穿精又带淫゛_ 提交于 2020-03-21 11:04:12
问题 When i start thist activity my app stopping.I need get coordinates from databes and place marker. I don't know where is problem. My database: public class MapsActivityUser extends FragmentActivity implements OnMapReadyCallback { private GoogleMap mMap; DatabaseReference f_database = FirebaseDatabase.getInstance().getReference(); @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_maps_user); SupportMapFragment

Google map marker label text color change

眉间皱痕 提交于 2020-03-18 03:31:53
问题 I am trying to change the Google map marker label color to white, while hover the event. How can i change the label color. My code is function hover(id) { var icon2 = "<?php echo base_url(). "bootstrap/images/tooltip_solid.png";?>"; for ( var i = 0; i< markers.length; i++) { if (parseInt(id) == parseInt(markers[i].id)) { markers[i].setIcon(icon2); markers[i].setZIndex(99999999999999); break; } } } 回答1: Simplest way is to create mouseover/mouseout event handlers for each marker to update the

Plot Multiple Marker on Map-view From Firestore Cloud Database?

白昼怎懂夜的黑 提交于 2020-03-04 18:39:30
问题 I had Stored longitude & latitude in Firestore Collection and using Marker I Showed it On Map. but only one marker is displayed on a map. I want to show multiple markers on a map using stored longitude & latitude in Firestore Collection. Here is my java code package part.time.job.v2; import android.os.Bundle; import android.view.LayoutInflater; import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; import androidx.annotation.NonNull; import androidx.fragment

Plot Multiple Marker on Map-view From Firestore Cloud Database?

杀马特。学长 韩版系。学妹 提交于 2020-03-04 18:38:36
问题 I had Stored longitude & latitude in Firestore Collection and using Marker I Showed it On Map. but only one marker is displayed on a map. I want to show multiple markers on a map using stored longitude & latitude in Firestore Collection. Here is my java code package part.time.job.v2; import android.os.Bundle; import android.view.LayoutInflater; import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; import androidx.annotation.NonNull; import androidx.fragment

Moving and showing the driving camera view on Google maps

瘦欲@ 提交于 2020-02-20 11:20:51
问题 I have added current location via google map routing with Routing routing = new Routing.Builder() .travelMode(Routing.TravelMode.DRIVING) .key(getResources().getString(R.string.google_maps_api)) .withListener(this) .waypoints(new LatLng(mLastKnownLocation.getLatitude(), mLastKnownLocation.getLongitude()), site_location) .alternativeRoutes(false) .build(); routing.execute(); @Override public void onRoutingSuccess(ArrayList<Route> route, int shortestRouteIndex) { if (polylines.size() > 0) { for

Flutter - How to remove an individual google_maps_flutter ^0.5.21 marker?

主宰稳场 提交于 2020-02-04 01:31:14
问题 Quite a bit has changed since the inception of google_maps_flutter , this means that the process for removing individual markers has also changed. What I've found on older queries for this question, removing markers on version ~ 0.0.1, is this: mapController.markers.forEach((marker){ mapController.removeMarker(marker); }); This doesn't work for me as I get the errors: The getter 'markers' isn't defined for the class 'GoogleMapController'. and The method 'removeMarker' isn't defined for the

Google Maps - Show many markers in a map

别来无恙 提交于 2020-01-30 13:02:16
问题 I have tried for some time now to display multiple markers in a map and I keep running into errors. I have managed to come up with this code, but i get a crash. Here is my mapsActivity.java package com.example.moses.ngongapp; import android.app.Dialog; import android.content.pm.PackageManager; import android.os.Bundle; import android.support.v4.app.ActivityCompat; import android.support.v4.app.FragmentActivity; import android.view.ViewTreeObserver; import android.widget.RelativeLayout; import