infowindow

Preventing Google Maps Move After Displaying Infowindow

我只是一个虾纸丫 提交于 2019-11-26 20:06:15
问题 I'm trying to display a infowindow on a Google Maps. It displays perfect, when you hover over a marker it loads up a infowindow but the map jumps to fit in the window. I don't want the map to move but rather infowindow set its position according to map. Booking.com has something like this. EDIT: Added my code Here is the stripped down version of my code. I'm getting all the info from an AJAX service and this service returns response (which holds some more info too). $.ajax({ url: 'URL',

How to show a Info window in iOS Google maps without tapping on Marker?

允我心安 提交于 2019-11-26 20:00:14
问题 I am new to iOS development. This is regarding Marker info window in Google Maps iOS SDK. I understand, we can create a marker with info window using GMSMarkerOption. GMSMarkerOption *myLocationOption = [GMSMarkerOption alloc]; myLocationOption .title = @"My Location"; myLocationOption .snippet = @"Lat:...., Lang:...."; [mapView addMarkerOption:myLocationOption]; As per the above code, Marker displayed in the Map View as expected. And tapping on marker shows the "My Location" info window in

Google Maps API V3 infoWindow - All infoWindows displaying same content

依然范特西╮ 提交于 2019-11-26 18:36:34
问题 In my page, latitude, longitude and info window content are present in an array of objects named obj. So if I need the latitude of property of the 1st object, I can call obj[0].latitude. The infoWindow content for each object is stored in obj[i].text. I'm using the below loop to loop through the lat & long values and display the markers and infoWindows. for (x=1; x<=obj.length; x++) { var latlng1 = new google.maps.LatLng(obj[x].latitude, obj[x].longitude); var marker2 = new google.maps.Marker

custom info window adapter with custom data in map v2

ぃ、小莉子 提交于 2019-11-26 16:02:54
I want to make custom info window adapter in map v2 in android as like below. I have seen below link but doesn't get more. 1 , 2, 3 , below is my content layout file. <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <ImageView android:id="@+id/infocontent_iv_image" android:layout_width="150dp" android:layout_height="150dp" android:layout_alignParentTop="true" /> <RelativeLayout android:id="@+id/infocontent_rl_middle" android

AngularJS ng-include inside of Google Maps InfoWindow?

一曲冷凌霜 提交于 2019-11-26 15:58:26
问题 I'm trying to include a template file views/infowindow.html as the content of my InfoWindow from service I wrote to initiate the google maps api: for ( var count = locations.length, i = 0; i < count; i++ ) { var latLng = locations[i], marker = new google.maps.Marker({ … }), infowindow = new google.maps.InfoWindow(); google.maps.event.addListener( marker, 'click', (function( marker , latLng ){ return function(){ var content = '<div ng-include src="\'infowindow.html\'"></div>'; infowindow

How do I remove default markers?

余生长醉 提交于 2019-11-26 15:37:12
问题 I'm using Google Map API V3 and I noticed there are a lot of markers which are here even though I don't need them. For examples, some schools or other places with InfoWindows appearing when clicking on them. Is there any way I can remove them or is it just not possible? 回答1: The only markers that should show up on the map are those you add yourself. Care to share your code or a page where we can see this happening? Update: ok, these aren't really 'markers' in the normal sense of the word,

Google Map Infowindow not showing properly

≯℡__Kan透↙ 提交于 2019-11-26 13:46:27
The infowindow is not showing properly on my map when clicking on a marker. The website is here. You'll also notice the map control isn't properly displayed either. var map; var locations = <?php print json_encode(di_get_locations()); ?>; var markers = [] jQuery(function($){ var options = { center: new google.maps.LatLng(51.840639771473, 5.8587418730469), zoom: 8, mapTypeId: google.maps.MapTypeId.ROADMAP }; map = new google.maps.Map(document.getElementById("map_canvas"), options); for (var i=0; i < locations.length;i++) { makeMarker(locations[i]); } centerMap(); }); function makeMarker

Add an Image from url into custom InfoWindow google maps v2

自闭症网瘾萝莉.ら 提交于 2019-11-26 12:41:01
问题 I\'m am working in an android app. The user make a search at google maps for restaurants. In google map display markers for all of his neighbor\'s restaurant. If he tap at a marker it show up a custom InfoWindow. My problem is that I can\'t load the image that return form Google places. Im getting right the url of image but I can\'t show it at Window. InfoWindow <?xml version=\"1.0\" encoding=\"utf-8\"?> <LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\" android:layout

Google Maps API Multiple Markers with Infowindows

旧时模样 提交于 2019-11-26 11:48:48
问题 I am trying to add multiple markers each with its own infowindow that comes up when clicked on. I am having trouble with getting the infowindows coming up, when I try it either shows up only one marker without an infowindow. Thanks, let me know if you need some more information <meta name=\"viewport\" content=\"initial-scale=1.0, user-scalable=no\"/> <style type=\"text/css\"> html { height: 100% } body { height: 100%; margin: 0; padding: 0 } #map_canvas { height: 100% } </style> <script type=

Android Maps Utils Clustering show InfoWindow

余生长醉 提交于 2019-11-26 11:07:59
问题 I am planning to use the google maps marker clustering available in the utils library, but the google example app only shows marker clusters without any infoWindow. I am wondering now, am I not able to show a InfoWindow? I want the InfoWindow to be displayed on the marker like with a normal google maps marker, not on the cluster. The code I have: (From the google example) public class BigClusteringDemoActivity extends FragmentActivity { private ClusterManager<MyItem> mClusterManager; private