infowindow

Multiple polylines and infowindows with Google Maps V3

主宰稳场 提交于 2019-12-04 08:42:40
问题 I have a map with multiple polylines and would like to open a line-specific-infowindow when clicking the line. So far my code only shows the content of the last iteration. I found two very nice examples of what I want but after hours of trying I am still no further. Example 1: http://srsz750.appspot.com/api3/polylines-multiple.html Example 2: http://www.geocodezip.com/v3_GenericMapBrowser.asp?filename=flights090414.xml So your are my last shot :-S Here is my code that shows only the content

google maps v3 change size of infowindow

左心房为你撑大大i 提交于 2019-12-04 08:36:48
问题 I would like to set the size of an infowindow to fit the content inside. The standard infowindow is too wide I tried to use maxWidth but it doesn't seem to work. What is the best way to resize an infowindow? see code: window.setContent( inspStates[i].name+ "<br/>"+"total: "+inspStates[i].totalInsp+ "<br/>"+ info); the information that will be displayed in the bubble looks like this( \n means next line) NY \ntotal 60 \n2009: 10 \n2010: 20 \n2011: 30 回答1: What you want to do is replace the

Adding Tabs in infowindows (googlemaps api, google fusion tables - kml import)

大憨熊 提交于 2019-12-04 06:14:38
问题 I feel like I'm getting close but missing something here. My source (polygon) data is in fusion tables, and I would like to create a 2 tab info window and call data from the table into it. Seen a bunch of examples (see: https://fusion-tables-users-group.googlegroups.com/attach/ec0975e69edcfb96/infowindow_tabs_5.html?pli=1&view=1&part=4 for one), so I have hope this is doable... My code (from the initialize function) is below. Right now, I am trying specifically to query the values (using e

angularjs google maps - markers with window - infowindow not showing

自闭症网瘾萝莉.ら 提交于 2019-12-04 05:26:43
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: { latitude: 37.79, longitude: -122.42 }, data: 'house' }, { id: 2, coords: { latitude: 37.77, longitude: -122.41

Issue with infowindows remaining active when another KML layer is selected - Google Maps API V3

我的梦境 提交于 2019-12-04 04:57:03
问题 I've got multiple kml layers that are loaded into my Google Map API V3 using tick boxes. When two or more layers are selected the infowindows on one layer don't automatically collapse when markers are clicked on other layers. I'd like the infowindows to close automatically even though they are on different KML layers - Any pointers in the right direction will be helpful. Thanks Darren Wilson 回答1: You need to disable the default info window creation and handle the infowindow yourself in code.

Difference between getInfoWindow() and getInfoContents() in Googlemaps v2 for Android

风流意气都作罢 提交于 2019-12-03 16:20:57
问题 Two questions: Whats the difference between public abstract View getInfoWindow (Marker marker) and public abstract View getInfoContents (Marker marker) . What is the use of getInfoContents() . Google map blog says: (getInfoWindow()) allows you to provide a view that will be used for the entire info window. (getInfoContents()) allows you to just customize the contents of the window but still keep the default info window frame and background. . can any one please expalin(try to compare with an

Google Maps InfoWindow width is overwritten even when set correctly

北城余情 提交于 2019-12-03 13:38:38
问题 I'm using Google Maps API and I have some troubles about InfoWindow. Here is a summary : I'm loading the InfoWindow's content when user clicks on a marker The content is a partial view, loaded thanks to an Ajax call In the .done callback, I call an asynchronous method which will insert data into the InfoWindow content. I need to do this because I want the InfoWindow main content to be displayed immediately, whereas this "bonus" information could be displayed after some tenths of seconds. This

Android Google Map v2 - Starting activity when clicking on marker infoWindow

て烟熏妆下的殇ゞ 提交于 2019-12-03 10:02:31
I have seen that people are finding a lot of difficulties with this specific task and I am in need of help as well. I have successfully created Markers on a Map using the default code that Google has provided. But now I want to be able to click on "InfoWindow" to open a new activity so I can add more information. From this basic marker with Title and Snippet: http://mobisys.in/blog/wp-content/uploads/2013/04/Screenshot_2013-04-04-17-19-581.png Then to click on it and open a blank activity: http://tuts-authors.s3.amazonaws.com/mobile.tutsplus.com/Shane%20Conder%20and%20Lauren%20Darcey/2012/09

Difference between getInfoWindow() and getInfoContents() in Googlemaps v2 for Android

好久不见. 提交于 2019-12-03 05:41:14
Two questions: Whats the difference between public abstract View getInfoWindow (Marker marker) and public abstract View getInfoContents (Marker marker) . What is the use of getInfoContents() . Google map blog says: (getInfoWindow()) allows you to provide a view that will be used for the entire info window. (getInfoContents()) allows you to just customize the contents of the window but still keep the default info window frame and background. . can any one please expalin(try to compare with an existing item, may be like listView row item or so ) Thanks In the above screenshot, I have used an

Android Google Map API V2 : Open Custom Info Window on Right Side of Marker

半城伤御伤魂 提交于 2019-12-03 03:38:25
问题 I have Integrated Google MAP API V2 for Android. I want to have a Custom Info Window at Onclick of My Marker. Up to that it is fine. i have integrate it. What I want : I want to Show my Custom Info Window on Right Side of Marker Instead of Top of the Marker. Below is the Code I am Using : public class MainActivity extends FragmentActivity { private MainMapFragement mapFragment; private HashMap<Marker, EventInfo> eventMarkerMap; Marker ThirdMarker; @Override protected void onCreate(Bundle