google-maps-markers

Map Marker Management, Android

本小妞迷上赌 提交于 2019-12-08 21:19:27
I have a map that dispays markers. If the user clicks on a marker a popup shows up. A method calculates wheather there is a marker at the clicked position. My Problem is that I have a lot of different markers, but in this method I can handle only one specific marker. I need something like a general bitmap, that holds all marker resources. E.g. I do not wand to handle 100 markers manually, because all are a Bitmap so I need just to handle one general bitmap. any ideas? I have solved my problem. I define a MarkerManager class that holds static fields that contain intergers. public class

Object has no method 'getPosition' when clustering Google map markers (api v3)

旧街凉风 提交于 2019-12-08 18:25:35
问题 I'm trying out a basic implementation of clustering markers on a Google map using the Google Maps Utility Library v3. When I run this though, I get an error on the Chrome Developer Tools console: Uncaught TypeError: Object #<Object> has no method 'getPosition' This relates to line 649 in the utility library script here: http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/src/markerclusterer.js. Which is the following function: /** * Determins if a marker is

How to clear all the markers in v2 google map?

落花浮王杯 提交于 2019-12-08 16:56:56
问题 I need to clear all markers in v2 google map. And again need to add some markers. If anybody knows the answer kindly share your thoughts. 回答1: You can either use googleMap.clear(), or you can store your Markers in a collection of some kind and remove them in a loop: private ArrayList<Marker> mMarkers; ... private void removeMarkers() { for (Marker marker: mMarkers) { marker.remove(); } mMarkers.clear(); } 回答2: ex - if you want to refresh and load new marker point in the map for a button click

Marker in google maps for android

爷,独闯天下 提交于 2019-12-08 14:45:35
问题 I want to know how i can set " OnClick " for a marker on google maps in android. Example: User touch the marker and My app detect this. My marker @Override public void onMapReady(GoogleMap map) { map.moveCamera(CameraUpdateFactory.newLatLngZoom( new LatLng(-18.142, 178.431), 2)); map.setMapType(GoogleMap.MAP_TYPE_TERRAIN); map.setMyLocationEnabled(true); mUiSettings = map.getUiSettings(); mUiSettings.setZoomControlsEnabled(true); LatLng sydney = new LatLng(-33.867, 151.206); map

Google Maps API - show marker from select

风格不统一 提交于 2019-12-08 14:04:26
问题 I have Google maps on site (www.maclife.pl/pl/kontakt) with 4 markers. I don't know how I can move map between markers when I change select options (like First marker...) var map; function initialize(){ var mapOptions = { scrollwheel: false, zoom: 15, center: new google.maps.LatLng(52.2081935, 21.0220677) }; map = new google.maps.Map(document.getElementById('google-maps'), mapOptions); var markers = [ ['MacLife - Warszawa, Puławska', 52.2082716, 21.0218746, ''], ['MacLife - Warszawa, Łukowska

Get Custom class data information on Map V2 PopupClick event in android

假如想象 提交于 2019-12-08 13:22:08
问题 hello friends my java file as below public class MainActivity extends FragmentActivity { GoogleMap googleMap; final int RQS_GooglePlayServices = 1; Double lat; Double lng; Marker marker; LatLng coordinate; private LocationManager locationManager; private String provider; Marker startPerc; AutoCompleteTextView mAutoCompleteTextViewAddress; CommonMethods mCommonMethods; String getsearchingAddress; Geocoder mGeocoder; List<Address> list; int maxResult = 10; String addressList[]; Intent mIntent;

Google map multiple markers infowindow open from external link

£可爱£侵袭症+ 提交于 2019-12-08 12:28:29
问题 Created a Google markers map and also listed locations name next to map - Its working fine Demo Target- How can I open corresponding infowindow when I click on listed each location's name ? Code var markers = [ ['Bondi Beach', -33.890542, 151.274856], ['Coogee Beach', -33.923036, 151.259052], ['Cronulla Beach', -34.028249, 151.157507], ['Manly Beach', -33.80010128657071, 151.28747820854187], ['Maroubra Beach', -33.950198, 151.259302] ]; function initializeMaps() { var myOptions = { mapTypeId:

Zoom to the closest level that still shows all markers, including the blue MyLocation marker

旧街凉风 提交于 2019-12-08 12:22:26
问题 I would like to zoom and position my GoogleMap such that all markers, including the blue MyLocation marker, are visible. This SO question shows how to do this for all manually added markers, but I am not sure how to get a handle to the MyLocation marker, which is automatically added after calling setMyLocationEnabled(true) , in order to pass it to the LatLngBounds.Builder . I have tried using GoogleMap.getMyLocation() , and I am calling it in onPostCreate , after the map has been fully

make groups for markers in google map apiV3

梦想的初衷 提交于 2019-12-08 10:25:16
问题 I found a very good tutorial which put the markers from any IP address. (google maps) http://lab.abhinayrathore.com/ipmapper/ I would like to modify this code: http://lab.abhinayrathore.com/ipmapper/ipmapper.htm . I have more than 500 markers in the same area, and I would like to make groups, something like this: http://google-maps-utility-library-v3.googlecode.com/svn/tags/markerclustererplus/2.0.9/examples/simple_example.html So I modified the original code I put the 37. Line this code: var

Google Maps Marker not getting displayed

こ雲淡風輕ζ 提交于 2019-12-08 08:32:57
问题 I am trying to learn google map API. I see a map but I am unable to get a marker at the right location. I see it somewhere in the ocean near China. Moreover, map is centered at (0,0) and not the (lat,long) that I have provided. Here is my code Activity public class HomeActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.home_page); GoogleMap map = ((MapFragment) getFragmentManager()