marker

Android marker custom infowindow

孤街醉人 提交于 2020-01-13 18:38:30
问题 I am using Google Map V2. I need to show the ListView (custom ListView with Image) in custom InfoWindow . I tried it and got success only in View , the problem is I can't get the listItemClick event. googleMap.setInfoWindowAdapter(new InfoWindowAdapter() { @Override public View getInfoWindow(Marker arg0) { // TODO Auto-generated method stub return null; } @Override public View getInfoContents(Marker arg0) { View v = getLayoutInflater().inflate(R.layout.infowindow, null); try{ String[] names =

MapBox marker offset

元气小坏坏 提交于 2020-01-06 08:16:20
问题 I'm using the MapBox SDK for iOS and encountered a problem I can't find a good solution for. In the iOS the MKAnnotationView allows me to do the following: view.centerOffset = CGPointMake(0, -15); Is there a MapBox RMMarker equivalent for this? So basically I need to move the marker a few pixels up from its original position, taking the zoom level into account as well. (So when you zoom, the marker's bottom part keeps fixed on the same point) As you can guess, there's a little arrow at the

Clickable Google Maps marker in Fragment

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-06 07:28:09
问题 What I am trying to accomplish here is be able to show a AlertDialog when I click on a marker that is dynamically added on load (call an API, get positions and show them on map). This is done in the fragments onCreateView . The map loads here: @Override public void onActivityCreated(@Nullable Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); FragmentManager fm = getChildFragmentManager(); mapFragment = (SupportMapFragment) fm.findFragmentById(R.id.map_container); if

android different info window for each marker in google maps

喜夏-厌秋 提交于 2020-01-04 12:46:31
问题 I am using a for loop to make markers on maps based on locations retrieved from database. I have a layout with two TextViews that i want to fill with the marker's name and address(retrieved from database). I tried using googleMap.setInfoWindowAdapter() but all it did was changing the layout for all markers altogether (which is obviously NOT what i need). So is there a way to allow me to change the info window of each marker independently? 回答1: Implement onMarkerClickListener. Get the marker

Retrieve location from Firebase and put marker on google map api for android application

北城余情 提交于 2020-01-03 05:31:08
问题 I'm creating a online mess application where there are two logins one for mess owner and another for user so when mess owner put location in his data there should be marker on map in user side. here is structure of database in imageDatabase structure please suggest me code to access those latitude n longitude values and create marker on map for each mess registered with location values. 回答1: EDITED Am proposing a small adjustment to the database structure...under 'MessProviders' create

adding sound to an array of markers - google map javascript

丶灬走出姿态 提交于 2020-01-01 18:58:29
问题 I am new here so I know I don't have any credibility. I am an artist and new to programming so I understand if no one will take this on. I am posting this on the off chance that this is an easy question. -S This is the code (mostly from the google developer site) to create multiple markers. It works fine and creates a custom icon for each marker. Each marker should play a different audio file when clicked (right now only the last marker created does). I would also like to change the icon when

Google Maps API v3 multiple markers Infowindow

天涯浪子 提交于 2019-12-30 02:28:30
问题 I've used the code below to display a map with multiple markers and infowindows. Now I have encountered the very common problem of the last infowindow showing up on all markers. I've tried all sorts of solutions including: http://you.arenot.me/2010/06/29/google-maps-api-v3-0-multiple-markers-multiple-infowindows/ and this one http://www.robertbolton.com/blog/google-maps-v3-multiple-markers-and-infowindows-in-a-loop but none of them fix the problem. Here is my code: var infowindow = null; var

Scatterplot with different size, marker, and color from pandas dataframe

自作多情 提交于 2019-12-29 07:42:13
问题 I am trying to do a scatter plot with speed over meters for each point where marker indicate different types, size indicate different weights and color indicate how old a point is over 10 minutes scale. However, I was only able to plot by size so far. Any help is highly appreciated. x = {'speed': [10, 15, 20, 18, 19], 'meters' : [122, 150, 190, 230, 300], 'type': ['phone', 'phone', 'gps', 'gps', 'car'], 'weight': [0.2, 0.3, 0.1, 0.85, 0.0], 'old': [1, 2, 4, 5, 8]} m = pd.DataFrame(x) plt

Map Marker icon animation (Google Maps API V2 for Android)

天涯浪子 提交于 2019-12-29 07:19:36
问题 On a custom event, I need my Marker to update its drawable 6 times (basically, I want the Marker to grow and shrink 3 times with a delay of 0.5 s between each growth and each shrink) so it notifies the user of said event. Is there any way to achieve this without actually having to remove the Marker and adding it again with a different Drawable ? 回答1: I'm afraid there is no way to do it today without actually removing the marker and adding it again with another drawable. I have just done so

Google Map click marker by external link

别说谁变了你拦得住时间么 提交于 2019-12-29 02:01:49
问题 Google map, on click external link target marker. Find fiddle demo below. find fiddle demo google.maps.event.addListener(marker, 'click', (function(marker, i) { return function() { infowindow.setContent(locations[i][0]); infowindow.open(map, marker); map.setZoom(9); map.setCenter(marker.getPosition()); } })(marker, i)); function triggerClick(i) { google.maps.event.trigger(markers[i],'click'); } <ul class="nav"> <li><a href="javascript:triggerClick(0)">location1</a></li> <li><a href=