google-maps-markers

Find nearest resturant, coffee shop, and grocery store using google maps in android

感情迁移 提交于 2020-01-01 05:54:14
问题 I am working in android sdk and using google maps api. I wanted to know if there is any way to find the nearest resturant or coffee shop or a grocery store from current location of the user. There are many apps available for this purpose but i want to code my own application for learning purpose. 回答1: This may help, dont know if it works for android.. http://code.google.com/apis/maps/documentation/places/ 回答2: I've had the same issue making a Navigation program for Android. I ended up using

Find nearest resturant, coffee shop, and grocery store using google maps in android

我的梦境 提交于 2020-01-01 05:54:04
问题 I am working in android sdk and using google maps api. I wanted to know if there is any way to find the nearest resturant or coffee shop or a grocery store from current location of the user. There are many apps available for this purpose but i want to code my own application for learning purpose. 回答1: This may help, dont know if it works for android.. http://code.google.com/apis/maps/documentation/places/ 回答2: I've had the same issue making a Navigation program for Android. I ended up using

Scale Map Markers by Zoom, Android

戏子无情 提交于 2020-01-01 05:24:27
问题 I have lot of markers on my map. Zooming in each marker shows me a position. but zooming out the markers are overlapping each other and it is more difficult do determine the position of a marker. Is there a way to scale the marker image depending on the zoom factor? 回答1: Depends on how you draw your marker. If your marker is just a bitmap/drawable, simply use matrix.postScale() Matrix matrix = new Matrix(); matrix.postScale(2f, 2f); // douple the size canvas.drawBitmap(mBitmap, matrix, mPaint

Google Maps SVG image marker icons not showing in IE11

你说的曾经没有我的故事 提交于 2020-01-01 03:16:31
问题 There is an issue on a site I have been working on that for some reason the SVG image markers are not showing up in IE 11. I have two sets of markers: the default zoomed out has PNG markers for the suburbs zoomed in has address specific numbered SVG ones I use a fallback for older browsers that don't support SVG (testing it with modernizr). I am using the old Google Chart markers for IE 11 to get it to work (testing the user agent string to id it). I want to know if anyone has an idea as to:

how to remove a single marker from google map

拟墨画扇 提交于 2019-12-31 22:43:08
问题 I am working on google maps i am trying to add markers to a google map and then tried to remove it but now as i have done both adding and removing with the code below <html> <head> <meta name="viewport" content="initial-scale=1.0, user-scalable=no"> <meta charset="utf-8"> <title>MapsApi</title> <style> #map_canvas { width: 100%; height: 500px; background-color: #CCC; } #menu_bar{ width: 100%; height: 150px; position:absolute; bottom:0px; background-color: #CCC; border-top:1px solid red; }

How to create multiple infowindow in google map api

家住魔仙堡 提交于 2019-12-31 10:23:09
问题 I create 3 markers in the map whose data comes from a json. but when I click on a marker and try to open the Info window only the last marker will response correctly.. please help me.... this the code.... <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <script src="http://maps.google.com/maps/api/js?sensor=false" type="text/javascript"></script> <script type="text/javascript" src="js/jquery-1.8.3.min.js"></script> <script src="http://google-maps-utility

Unable to add marker on map in Android

守給你的承諾、 提交于 2019-12-31 03:18:07
问题 I am getting this exception while starting the mapActivity. GooglePlayServicesUtil: Google Play services out of date. Requires 8298000 but found 6599036 and App Crashes at following line. final Marker marker = mMap.addMarker(new MarkerOptions().position(location); Note: App is working fine on 4.3 and 5.0.1 version but facing this problem in 4.4.2. Any solution? Thanks 回答1: This is a runtime error that occurs when the device does not have at least the same version of Google Play Services that

Google API V3 multiple infowindows plus close on click

陌路散爱 提交于 2019-12-31 02:09:12
问题 I figured out how to have multiple markers with info windows but they do not close when you click another marker, I believe it is because I am creating a new info window for each marker, any help would be appreciated. <script type="text/javascript"> var map ; function initialize() { var latlng = new google.maps.LatLng(53.063165, -3.205390); var myOptions = { zoom: 6, center: latlng, mapTypeId: google.maps.MapTypeId.SATELLITE, zoomControl: false, mapTypeControl: false, mapTypeControlOptions: {

Javascript select Google markers for all possibilities of checkbox conditions

旧街凉风 提交于 2019-12-30 07:49:46
问题 I am placing markers on a Google map. I have a number of checkboxes (19 currently) in a form that I am trying to create a dynamic "and" condition to display or not display markers. The code works great for the individual pieces when a single checkbox is selected. I would like to have the code take into account if multiple checkboxes are selected and only display those markers that meet all conditions not just add the ones that meet the next condition. Givens: The checkbox ids are "q"+# Each

Javascript select Google markers for all possibilities of checkbox conditions

混江龙づ霸主 提交于 2019-12-30 07:49:20
问题 I am placing markers on a Google map. I have a number of checkboxes (19 currently) in a form that I am trying to create a dynamic "and" condition to display or not display markers. The code works great for the individual pieces when a single checkbox is selected. I would like to have the code take into account if multiple checkboxes are selected and only display those markers that meet all conditions not just add the ones that meet the next condition. Givens: The checkbox ids are "q"+# Each