google-maps-markers

Unable to add markers using latitude and longitude retrieved from Firebase and stored in ArrayList<String>

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-25 04:57:11
问题 I am developing an app which has an activity having map in it. When users open this activity from their devices, their current location coordinates is saved in the Firebase and then are retrieved instantly and a marker is shown on their current location. This procedure is happening successfully. Here's how I'm retrieving the latitude and longitude from firebase: acceptingUserReference.child(requestID).child(key).addListenerForSingleValueEvent(new ValueEventListener() { @Override public void

Update Markers using Dropdown without reloading google map

此生再无相见时 提交于 2019-12-25 03:55:22
问题 Hello everyone through this script I am loading all the markers in map after that I have 5 dropdowns on top of my page , Initially i have loaded all markers from database now i want to filter markers on the basis of selected dropdown how i can do please suggest something thank you in advance check this image for more clarity Here is my script to load google map <script language="javascript" type="text/javascript"> var pubvar1 = 0; var pubvar2 = 0; var locations = []; // these things i am

Setting a Info window for google map markers located on route (start and End Points)

我怕爱的太早我们不能终老 提交于 2019-12-25 02:45:06
问题 Hi i'm drawing a route here in my code between two markers. what i need to get done is adding a click event to those two markers and setting a info window to each marker. i searched on many websites couldn't find a solution. though it draws the route between markers cannot set a info window to each marker. Here is my Code... function mapLocation() { var directionsDisplay; var directionsService = new google.maps.DirectionsService(); var map; function initialize() { directionsDisplay = new

Multiple Map Markers with Infoboxes from parsed XML

混江龙づ霸主 提交于 2019-12-25 02:08:01
问题 I know I'm fairly close to solving this, I just need a little push in the right direction. I'm generating XML from a database that has marker locations and some other data that should be displayed in an infobox on click. I generate the XML properly and plot the markers correctly. My problem lies with the infobox. My infoboxes display the data for the last marker that was placed. I've created an array that stores one piece of data(NAME), but the infobox still only shows the info from the last

How to create Image slide show within a custom InfoWindow on Google Maps V2 - Android API

爷,独闯天下 提交于 2019-12-25 00:21:12
问题 I am a newbie wrt android development. My goal is to have a video running inside a customized info window in google maps V2 API android. I know how to make a video run inside a view (by loading series of images making them to look like a movie) Also I learnt how to load image inside a customized infowindow. I am trying to have image slide show inside the infowindow. But the problem is only the first image is getting loaded. Unless otherwise I click on the marker again, the infoWindow contents

Marker is not adding properly while add through for loop

倾然丶 夕夏残阳落幕 提交于 2019-12-24 23:44:03
问题 Marker not properly adding through for loop When i give i=2 then it's loading 2nd marker otherwise it's just loading single marker Can you please tell me what could be the reason JSONObject jsonObject = new JSONObject(result); for (int i = 1; i <= jsonObject.length(); i++) { jsonObject = jsonObject.getJSONObject(Integer.toString(i)); Double lat = jsonObject.getDouble("latitude"); Double lon = jsonObject.getDouble("longitude"); int sno = jsonObject.getInt("sno"); Toast.makeText(getBaseContext(

Assign a click listener to the info window, cannot navigate to the webpage Google Maps V2

不问归期 提交于 2019-12-24 21:32:13
问题 The problem is that I cannot click on the URL "www.news.com" displayed on andoid map v2 inside custom infowindow of a marker. In xml layout file I have: <TextView android:id="@+id/web" android:layout_width="wrap_content" android:layout_height="wrap_content" android:autoLink="web" android:background="#ADD8E6" android:text="www.google.gr" android:linksClickable="true"/> In Java activity file I have: mMap.setInfoWindowAdapter(new InfoWindowAdapter() { // Use default InfoWindow frame @Override

Google maps API autocomplete.getPlace() inconsistently returns geometry

寵の児 提交于 2019-12-24 21:27:09
问题 I'm using GoogleMaps Autocomplete in an AngularJS application and when I call... autocomplete.getPlace(); half the time when i try to use place it says geometry is null and half the time it works... Cant seem to figure it out...my only idea is that my code is moving on before getPlace() returns but i'm not sure how to wait for it to get done? My library include... <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=MyKey&libraries=imagery,places,geometry"> </script

How to include a button in InfoWindow

自闭症网瘾萝莉.ら 提交于 2019-12-24 15:27:50
问题 I followed this tutorial on how to add custom info window to a google map marker, in the UIView I've added a button and created an IBAction but when I click on it nothing happen my infoWindow view code looks like this .h #import <UIKit/UIKit.h> #import "Details.h" @interface MarkerInfoWindowView : UIView @property (weak, nonatomic) IBOutlet UIImageView *imageView; @property (weak, nonatomic) IBOutlet UILabel *label1; @property (weak, nonatomic) IBOutlet UILabel *label2; @property (weak,

Fusion Table Layer with polygons AND markers

末鹿安然 提交于 2019-12-24 11:28:18
问题 Using Google Maps API v3 I have a map with the countries coloured using polygons from a Fusion Table Layer. When a polygon is clicked it opens the default Fusion Table info window which has been configured in the web interface. Some of the countries can't be seen at certain zoom levels so I'd like these countries to have a polygon AND marker, which when clicked open the default Fusion Table info window. I did add a standard map marker but there is no way to open the Fusion Table info window