infowindow

I can't inflate a view in a custom infowindow in Mapbox. (Setting getinfowindow with images)

自闭症网瘾萝莉.ら 提交于 2019-12-08 09:50:34
问题 I am doing a map guide for Android using Mapbox and Android Studio IDE, but I am having a hard time dealing with the custom infowindow. I want to inflate the infowindow (the one after I click on a marker) but as of yet I want to use an XML for that for an easy customization (I am open for suggestions, I still need to add a different image for each of the markers.). I am using a customization in the code itself just for testing, but I want to inflate an XML for that purporse. The following

Add infoWindow to a map marker using jQuery mobile, google maps API v3

北城以北 提交于 2019-12-08 05:44:20
问题 I have a simple script that adds a marker on a map when you click a button using jQuery mobile and the Google Maps API v3. I want to add a basic infoWindow to that marker, so that when you click on it, it says "Hello World". This seems like it should be very easy, but I can't seem to get the syntax correct. I'm adding markers like this $('#map_canvas').gmap('addMarker', { 'position': chicago } ); and I can't seem to find any good examples where you also setup an infowindow when you also set

picasso image not loading in custom infoWindow why?

北慕城南 提交于 2019-12-08 00:23:08
问题 I'm trying to layout a custom infoWindow programmatically. I want to load a streetView preview image using Picasso but the image isn't showing up, any idea why? private View prepareInfoView(Marker marker){ //prepare InfoView programmatically LinearLayout infoView = new LinearLayout(EarthquakeActivity.this); LinearLayout.LayoutParams infoViewParams = new LinearLayout.LayoutParams( LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT); infoView.setOrientation

set InfoWindowAdapter show information only for first marker clicked

一曲冷凌霜 提交于 2019-12-07 19:07:36
问题 So, I have set infowindowadapter for my Google map, but the problem is that when I click on the first marker, it shows the information correctly, but when I hit the second marker it shows information from the first one, so infowindowadapter doesn't refresh. Can someone tell me why that it and how to fix it? I was following this post to set infowindowadapter : custom info window adapter with custom data in map v2 EDIT: new getMarkers().execute(); mMap.setOnMarkerClickListener(new

Add infoWindow to a map marker using jQuery mobile, google maps API v3

大城市里の小女人 提交于 2019-12-07 09:55:29
I have a simple script that adds a marker on a map when you click a button using jQuery mobile and the Google Maps API v3. I want to add a basic infoWindow to that marker, so that when you click on it, it says "Hello World". This seems like it should be very easy, but I can't seem to get the syntax correct. I'm adding markers like this $('#map_canvas').gmap('addMarker', { 'position': chicago } ); and I can't seem to find any good examples where you also setup an infowindow when you also set up the marker. Here is my code. If you save in the jquery-ui-map-3.0-rc\demos\ directory, then all the

Google Maps Spiderfying Markers & Adding Listeners

末鹿安然 提交于 2019-12-06 21:31:32
I'm trying to Spiderfy my markers and adding listeners to them. The Spidefying works fine that means I get the overlapping markers spiderfied but the problem is that I can't seem to figure how to add listeners to these markers. In other words I have tried the following: Putting the oms.addListener() in a loop. This way, upon clicking on a marker would open all infoWindow s on the same marker which isn't delightful. Putting the oms.addListener() outside the loop like the example on the OMS Git repo. https://github.com/jawj/OverlappingMarkerSpiderfier/blob/gh-pages/demo.html . This way all the

Function calls within InfoWindows

爱⌒轻易说出口 提交于 2019-12-06 11:28:04
Often I have maps with a whole lot of markers (let's say representing shops). I have infowindows that display basic info on the shop represented by the marker, then, on the infoWindow HTML I like to put a button that, for example, says "Details". The html of the infowindow is simple.. the html of the info window would include an input type="button" value="Show More" onclick="showMore(' + shopId + '); The relevant shopId would be obviously different for every marker... The problem is that the showMore function has to be declared as a global function to the javascript otherwise the infowindow

set InfoWindowAdapter show information only for first marker clicked

匆匆过客 提交于 2019-12-06 11:23:29
So, I have set infowindowadapter for my Google map, but the problem is that when I click on the first marker, it shows the information correctly, but when I hit the second marker it shows information from the first one, so infowindowadapter doesn't refresh. Can someone tell me why that it and how to fix it? I was following this post to set infowindowadapter : custom info window adapter with custom data in map v2 EDIT: new getMarkers().execute(); mMap.setOnMarkerClickListener(new OnMarkerClickListener() { @Override public boolean onMarkerClick(Marker marker) { marker.showInfoWindow(); return

Infowindow help on google maps api 3

微笑、不失礼 提交于 2019-12-06 10:26:07
问题 Having similar problem as others have had on this website where it shows only the last marker's info window info in all markers. Can't seem to solve this with any of the solutions given. Also, the last one of my markers doesn't show an info window at all. <script src="http://www.google.com/jsapi"></script> <script type="text/javascript" src="data2.json"></script> <script type="text/javascript" src="js/markerclusterer.js"></script> <script type="text/javascript"> google.load('maps', '3', {

Resize the infoWindow box Google Maps API v3

荒凉一梦 提交于 2019-12-06 10:13:40
The default infoWindow size is way too big for me. I want it to be much smaller can I can't figure out how to do it. I've tried setting a maxWidth parameter on my infoWindow constructor like this var infowindow = new google.maps.InfoWindow({'maxWidth':'10px'}); and setting the CSS width like this <style type="text/css"> #infoWindow { width: 10px; } </style> but that only seems to change the size of the text wrapping, not the actual box. How do I change the size of the infoWindow box? Here is my code. <!doctype html> <html lang="en"> <head> <title>jQuery mobile with Google maps - Google maps