google-maps-markers

Google Maps - Multiple Markers via URL only

↘锁芯ラ 提交于 2019-11-28 12:04:04
If I want to open a browser to Google Maps to center and show a single marker, I do it with a URL like this: https://www.google.com/maps/place//@33.91729,-106.85761,10z/data=!4m2!3m1!1s0x0:0x0 But, I have 5-10 lat/long pairs that I want to show on that same map. How can I show multiple lat/long markers all specified only in a URL? There is an up-to-date article (updated: May 18 2017) about easily linking to locations and directions using the New Google Maps. You could use the directions service and form a url as such : https://www.google.com/maps/dir/33.93729,-106.85761/33.91629,-106.866761/33

Marker cluster number in a polygon or/and infowindow

☆樱花仙子☆ 提交于 2019-11-28 11:50:34
When you click on some polygon you got infowindow with the name of these polygon, is possible to put in this infowindow number of markers inside this polygon (same like marker cluster number) or to put this number (marker cluster number) on the polygon? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> <link rel="stylesheet" type="text/css" href=

Google Maps API v3 - creating multiple maps with markers on one page

我的梦境 提交于 2019-11-28 11:44:16
问题 I'm trying to create a slider with 3 slides, each containing a mini map with marker pointing to certain location. I managed to create one slide, but every attempt to create more than one on this page results in failure. Here is my code so far: HTML + PHP <?php if (have_rows('job_offers')): ?> <?php $rows = get_field('job_offers'); $row_count = count($rows); for ($i = 0; $i <= 2; $i++) { ?> <li> <div id='googleMap<?php echo $i; ?>' style="position:absolute;top:0;right:0;width:180px;height:100%

Google Maps API v3 in PhoneGap: markers not drawing properly after move

萝らか妹 提交于 2019-11-28 11:39:37
I've been working on a Google Maps API 3 application on Android using PhoneGap. It should track the users location and mark the location with a marker and a circle around it. I had been developing this on Android 2.3 and it was working fine. I then upgraded to a phone with Android 4.x and it was still working well, I thought. Last week I began noticing it doing some strange things when I move the markers. It would seem to create a duplicate marker instead of just moving it. Same with the circle. Sometimes if I change zoom then the duplicates seem to go away. But also, it occasionally draws

Google Maps API — Unique Active Icon per marker on click

给你一囗甜甜゛ 提交于 2019-11-28 11:23:21
问题 I have the following JS using the Google Maps API: // initialize variables var infowindow = null; var directionDisplay; var directionsService = new google.maps.DirectionsService(); var gmarkers = []; $(document).ready(function () { initialize(); }); function initialize() { // directions directionsDisplay = new google.maps.DirectionsRenderer(); var centerMap = new google.maps.LatLng(busipress_map_vars.center_lat , busipress_map_vars.center_long); var myOptions = { zoom: 4, center: centerMap,

Animating Multiple Markers

∥☆過路亽.° 提交于 2019-11-28 10:37:21
I have several markers on a map with polylines drawn. I would like to move each marker along the path of the polyline to simulate simultaneous movement of each marker. I am having problems doing this i am getting only the last marker to move and the rest doesn't. Being new to the use of this programming technology i think something is wrong with my code especially the way i attempt to animate each marker. I need some guidance on this. Here's my work thus far: Jsbin DEMO var startLoc = new Array(); startLoc[0] = 'rio claro, trinidad'; startLoc[1] = 'preysal, trinidad'; startLoc[2] = 'san

How to implement GMUClusterRenderer in Swift

a 夏天 提交于 2019-11-28 10:25:36
I am using Google Maps API for iOS and want to use marker clustering utility. I figured out how to show clustered markers, but I would like to customize markers. Can someone explain how to set/change icon and title of each marker or clustered markers? An example code would be very helpful. class POIItem: NSObject, GMUClusterItem { var position: CLLocationCoordinate2D var name: String! init(position: CLLocationCoordinate2D, name: String) { self.position = position self.name = name } } class MyRenderer: NSObject, GMUClusterRenderer { var mapView: GMSMapView var clusterIconGenerator:

How do I fade out a circle in a Google Map, x seconds after I've added it to the map?

旧巷老猫 提交于 2019-11-28 10:25:12
问题 What I basically had in mind is what Google did in this example Every second I want to add circles at certain coordinates and then slowly fade them out. I already managed to add circles to the map: var citymap = {}; citymap['chicago'] = { center: new google.maps.LatLng(41.878113, -87.629798), population: 100 }; citymap['amsterdam'] = { center: new google.maps.LatLng(52.878113, 5.629798), population: 40 }; citymap['paris'] = { center: new google.maps.LatLng(48.9021449, 2.4699208), population:

How to constantly detect nearby marker locations from current location in Google Maps android?

前提是你 提交于 2019-11-28 10:12:53
I am trying to display a TextView at the top left corner of Google Maps that inform users if they are x distances from particular marker point locations, i.e. "You are close to location A", but only display the TextView if within range. If they move out of range, the TextView will disappear. I understand that the Google Places API shows you all the nearby locations, but I only want to show nearby locations of the markers I have on the map if users are x distances close to them. How can I achieve this? Would I still need to use Google Places API? my class .java: private GoogleMap mMap; private

How to know which Marker was clicked on Google Maps v2 for Android?

六眼飞鱼酱① 提交于 2019-11-28 09:14:30
I am making an application with a Google Maps on it, for Android. I have plenty of Markers on my screen and I am preparing customizable balloon for each marker when they are clicked. This means, I have information which is different according to the marker which was clicked. I set up the contents of the View of the marker with setInfoWindowAdapter and then I override the method getInfoContents. The problem is: This method is the general implementation of the contents of the Info Window, but each marker shall show its own information. So, as far as I understand, I have to somehow detect on