infowindow

Change infowindow position according to move right and left side map

狂风中的少年 提交于 2020-03-23 06:50:31
问题 I have set two infowindow for pickup and drop location. I want to change info window postion like uber in the below images, Below code is what I have tried : @Override public void onCameraIdle() { //get marker position Projection projection = googleMap.getProjection(); LatLng markerLocation = null; LatLng dropMarkerLocation=null; try { if (Marker != null) { markerLocation = Marker.getPosition(); } else { markerLocation = new LatLng(0.0f, 0.0f); } if (MarkerDrop != null) { dropMarkerLocation =

Change infowindow position according to move right and left side map

家住魔仙堡 提交于 2020-03-23 06:50:12
问题 I have set two infowindow for pickup and drop location. I want to change info window postion like uber in the below images, Below code is what I have tried : @Override public void onCameraIdle() { //get marker position Projection projection = googleMap.getProjection(); LatLng markerLocation = null; LatLng dropMarkerLocation=null; try { if (Marker != null) { markerLocation = Marker.getPosition(); } else { markerLocation = new LatLng(0.0f, 0.0f); } if (MarkerDrop != null) { dropMarkerLocation =

Google Maps - Attaching InfoWindows to polygons in array

戏子无情 提交于 2020-03-16 06:18:45
问题 I've been banging my head against the wall all morning with this one. I an creating an array of polygons, and want to associate some data in each one that will show in an infoWindow. I can see all the polygons on the map. I add the listener, and it fires (the color change happens), but I don't get the infoWindow. Any help would be greatly appreaciated! Cheers! C... tmppoly = new google.maps.Polygon({ map: map, paths: polypath, strokeColor: scolor, strokeOpacity: 0.5, strokeWeight: 2,

angularjs google maps - markers with window - infowindow not showing

梦想与她 提交于 2020-01-22 19:46:27
问题 Trying to get a app using angular-google-maps with: - multiple markers via the markers directive - a single infowindow via the window directive I've been through the API and multiple closed issues / questions on the git-hub site but just can't get it working... :-/ jsfiddle For simplicity, I'm declaring the markers manually (and they're displaying correctly): $scope.markers = [ { id: 0, coords: { latitude: 37.7749295, longitude: -122.4194155 }, data: 'restaurant' }, { id: 1, coords: {

google maps infobubble dynamic content not loading on first marker click

允我心安 提交于 2020-01-17 04:54:11
问题 I'm trying to add dynamic content inside a google maps infobubble: - one first marker click an empty infobubble appears - on SECOND click of the marker the correct content is loaded As per this answer I'm using the domready event on the previously defined infobubble object to launch the function that loads the dynamic content. ...although the JS fiddle in that answer is misleading since the 'dynamic' content is actually loaded prior to domready using the content option of the new InfoBubble()

Google Maps V3: Infowindows not resizing to fit information

北慕城南 提交于 2020-01-17 03:27:07
问题 Problem I have a API V3 map, with a content window for each marker. The content of the infowindow stretches across multiple lines, but the infowindow does not resize to fit it all, causing an iframe-like scroll to appear. I have looked at the setContent() method in the API which according to some posts on the API V3 mailing list should correct the issue. However, it looks like I've been putting into the wrong place thus causing the map not to load. Infowindow content is populated from a field

How to customise the state_pressed colour of an infowindow in Google Maps?

流过昼夜 提交于 2020-01-14 10:44:07
问题 I am trying to customise the state_pressed behaviour of an InfoWindow in Google Maps. Normally when this InfoWindow is pressed, it turns yellow. That's also the case with custom InfoWindows. But I want to change this to another colour, like red or orange or blue. So I created a very simple custom InfoWindow like this: class MyInfoWindowAdapter implements InfoWindowAdapter { private final View myContentsView; MyInfoWindowAdapter() { myContentsView = getLayoutInflater().inflate(R.layout.popup,

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 =

Maps API v3: New InfoWindow, with pixelOffset, w/ data from KML.

二次信任 提交于 2020-01-13 18:09:35
问题 Hello: I'm making progress on my Google Map (see my previous post: KML markers missing on Google Maps API v3: What's wrong?), but I'm now stuck, and hoping for help. My custom-styled map pulls from a KML file with about 20 Placemarks. For design reasons, I want my Placemarks to open on the RIGHT side of the anchor, rather than the default top/center. I've tried searching in vain for a simple way to do this; closest I've come is: Issue with infowindows remaining active when another KML layer

Google Maps : open InfoWindow on mouseover, close & reopen on click

蓝咒 提交于 2020-01-10 14:45:48
问题 I've a page with markers with InfoWindows that I opened on Click. I decided to rather open the InfoWindows on MouseOver which is working. But I find that having to move the mouse to the cross of the InfoWindow to close it is a bit demanding for these lazy visitors of the internet. So I added a Close event on Click of the Marker which is also working. What I can't figure out to work is to be able to re-open the InfoWindow on Marker Click instead of having to mouseout in order to be able to re