google-maps-markers

Google Maps - Multiple Markers via URL only

我是研究僧i 提交于 2019-12-17 19:34:01
问题 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? 回答1: 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

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

社会主义新天地 提交于 2019-12-17 19:27:55
问题 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

Avoid geocode limit on custom google map with multiple markers

我是研究僧i 提交于 2019-12-17 17:59:38
问题 I've created a custom map with around 150 markers. It only plots around 20 or so before it hits the geocode limit. What can I incorporate into my code to avoid hitting the limit? UPDATE: How can I add a time delay to each request say 0.25seconds (or whatever the lowest I can get away with)? I've tried a few different suggestions but I can't seem to get them to work with my code so please could any examples use my code. 回答1: So instead of sending all the requests almost instantly in a for-loop

Get Latitude and longitude of marker in google maps

一笑奈何 提交于 2019-12-17 17:58:25
问题 I'm using the following code to create a map and attach a marker to it. I'm also adding a marker listener where I need to get the longitude and latitude of the marker position after dragging. What it does is returnning my current location not the location of the marker after drag. Any help with this part?! package com.example.mysample; import com.google.android.gms.common.GooglePlayServicesUtil; import com.google.android.gms.maps.CameraUpdateFactory; import com.google.android.gms.maps

@Url.Content in separate javascript file using ASPNET MVC 3 and Razor

孤街醉人 提交于 2019-12-17 17:44:24
问题 I was using this if (ret = 1) iconType = new google.maps.MarkerImage('@Url.Content("~/Content/images/image.png")'); else if (ret = 2) iconType = new google.maps.MarkerImage('@Url.Content("~/Content/images/image2.png")'); else if (ret = 3) iconType = new google.maps.MarkerImage('@Url.Content("~/Content/images/image3.png")'); in a View (ASPNET MVC 3), now I'm moving the code to a separate javascript file (I'm using that because depending on a vaiable value I set as image of a control image.png,

Marker content (infoWindow) Google Maps

五迷三道 提交于 2019-12-17 17:34:17
问题 I'm trying to add infoWindow's to multiple markers on a Google Map. The closest I have come is to get an infoWindow to display the last address you can see in the array, on all markers. The bit of code I have pasted below does not work, I get an "Uncaught TypeError: Cannot read property '4' of undefined". I'm sure this is a scope issue, but I'm going round in circles here and could do with some help: var hotels = [ ['ibis Birmingham Airport', 52.452656, -1.730548, 4, 'Ambassador Road<br /

How to move a map under a marker?

∥☆過路亽.° 提交于 2019-12-17 17:32:23
问题 Suppose that we have a centered marker on the map, when we move the map with our fingers we can see that marker would no longer displayed when you got out of bounds of the area. So how can we make a marker that would remain always on the center of the map although we move the map anywhere? There is an app named UBER and they provide this feature, you don't drag and drop the marker you just move the map and the marker remained it's position. Here is a screenshot: As you can see green marker is

Toggle multiple KML/KML layers in google maps API v3

本小妞迷上赌 提交于 2019-12-17 16:40:03
问题 I have been tying to toggle KML layers in google maps. I have had it setup such that only one layer shows up with out any toggle button. I followed many examples online but none seem to work. The code I have setup so far is below: <html> <head> <script type="text/javascript"> var layers=[]; layers[0] = new google.maps.KmlLayer('http://wrf1.geology.um.maine.edu/bipush/kml/plot_5254.kml', {preserveViewport: true}); layers[1] = new google.maps.KmlLayer('http://wrf1.geology.um.maine.edu/bipush

Add marker on touched location using google map in Android

烂漫一生 提交于 2019-12-17 16:21:23
问题 How do I add a marker on a particular location in the map? I saw this code that shows the coordinates of the touched location. And I want a marker to pop or be shown in that same location every time it is touched. How do I do this? public boolean onTouchEvent(MotionEvent event, MapView mapView) { if (event.getAction() == 1) { GeoPoint p = mapView.getProjection().fromPixels( (int) event.getX(), (int) event.getY()); Toast.makeText(getBaseContext(), p.getLatitudeE6() / 1E6 + "," + p

Adding Click Event on InfoWindow/Marker in Google Maps SDK for native iOS/objective C

送分小仙女□ 提交于 2019-12-17 15:44:13
问题 Simple Question I´m working on an App for iOS where I embedded the new Google Map for native iOS. Everything works fine except one problem where I can´t find a propper solution for native IOS/ Objective-C neither here nor at google (if there is one please show me and sorry for annoying you) What I want: I want the User to Click on the Marker that opens the Info Window. After If he clicks or taps on the Info Window it should open a New UIView with further Informations. How can I do that?