infowindow

How to include a button in InfoWindow

自闭症网瘾萝莉.ら 提交于 2019-12-24 15:27:50
问题 I followed this tutorial on how to add custom info window to a google map marker, in the UIView I've added a button and created an IBAction but when I click on it nothing happen my infoWindow view code looks like this .h #import <UIKit/UIKit.h> #import "Details.h" @interface MarkerInfoWindowView : UIView @property (weak, nonatomic) IBOutlet UIImageView *imageView; @property (weak, nonatomic) IBOutlet UILabel *label1; @property (weak, nonatomic) IBOutlet UILabel *label2; @property (weak,

google api v3 infowindow with multiple markers doesn't work

被刻印的时光 ゝ 提交于 2019-12-24 12:34:15
问题 I'm trying to write on the infowindow content, the record number of my loop. The result is that i read the last record number (10) for each infowindow, and not 1,2,3...10 Someone can help me? Thanks in advance The code is this: function generaMappaMulti() { var CoordinataIniziale = new google.maps.LatLng(44.714957, 10.733647); //set initial coordinate var opzioni = { center: CoordinataIniziale, zoom: 10, mapTypeId: google.maps.MapTypeId.ROADMAP }; //set options to the map map = new google

How to size a Google Maps InfoWindow in Javascript (v3 API)

℡╲_俬逩灬. 提交于 2019-12-24 10:14:47
问题 Yes. This is a duplicate of Google Maps API v3: InfoWindow not sizing correctly. However , none of the solutions offered on that question worked for me :( code: //after getting a 'position' object: var mapPos = new google.maps.LatLng(position.coords.latitude, position.coords.longitude); var mapOptions = { zoom:16, center:mapPos,mapTypeId:google.maps.MapTypeId.ROADMAP }; var yourLocationMap = new google.maps.Map(document.getElementById('locationMap'), mapOptions); var infoContent = '<div style

How to add image into InfoWindow of marker in google maps API V2 Android?

╄→гoц情女王★ 提交于 2019-12-24 09:48:38
问题 i have this mapa.addMarker(new MarkerOptions() .position(latlng) .title("HI") .snippet("HI;HI") .icon(BitmapDescriptorFactory.fromResource(R.drawable.same))); but no find information of how add into infowindow a icon someone can help me? 回答1: You will need to create your own InfoWindowAdapter and use getInfoContents() or getInfoWindow() to return the info window contents containing the image you seek. 来源: https://stackoverflow.com/questions/16572971/how-to-add-image-into-infowindow-of-marker

Implementing custom markerInfoWindow in swift not working

时光怂恿深爱的人放手 提交于 2019-12-23 17:49:05
问题 I've been using the method posted below to display a custom info window, but whenever I run it, only the default window (with the title/snippet) shows up? I have created both an xib and swift file for the following method, and I was trying to implement it using standard function notation (i.e. mapView(mapView, markerInfoWindow:mapView.currentMarker), but that wasn't compiling (tried with and without the explicit implementation). Any ideas? Thanks, Jacob func mapView(mapView: GMSMapView!,

Google Maps v3 InfoWindow Too Wide

给你一囗甜甜゛ 提交于 2019-12-23 12:12:51
问题 In Google Maps v3, I can't seem to get my infoWindow to a width smaller than 200px. Here is the code I'm using: var latlng = new google.maps.LatLng(-34.397, 150.644); var myOptions = { zoom: 15, center: latlng, mapTypeId: google.maps.MapTypeId.ROADMAP }; var myMap = new google.maps.Map(document.getElementById("map_canvas"), myOptions); var gmarker = new google.maps.Marker({position: latLng,title:'Example'} ); var infoWindow = new google.maps.InfoWindow(); infoWindow.setOptions({maxWidth: 110}

map page becomes blank after inserting php code

落花浮王杯 提交于 2019-12-23 06:13:09
问题 My gmap page turns blank after inserting php code into the infowindow content. google.maps.event.addListener(noi, 'mouseover', function() { var infowindow = new google.maps.InfoWindow({ content: '<?php if ($count==0){ echo "No Open Tickets"; } else{ echo "<table>"; foreach ($NOIcompliancearray as $SLA_Compliance=>$count) { $Npath = $Nimages[$SLA_Compliance]; echo "<tr>"; echo "<td><a href='city.php?city=Noida&compliance=".$SLA_Compliance."'><img src='IndiaImages/".$Npath."' title='".$SLA

map page becomes blank after inserting php code

 ̄綄美尐妖づ 提交于 2019-12-23 06:12:07
问题 My gmap page turns blank after inserting php code into the infowindow content. google.maps.event.addListener(noi, 'mouseover', function() { var infowindow = new google.maps.InfoWindow({ content: '<?php if ($count==0){ echo "No Open Tickets"; } else{ echo "<table>"; foreach ($NOIcompliancearray as $SLA_Compliance=>$count) { $Npath = $Nimages[$SLA_Compliance]; echo "<tr>"; echo "<td><a href='city.php?city=Noida&compliance=".$SLA_Compliance."'><img src='IndiaImages/".$Npath."' title='".$SLA

Google Maps change content of infowindow

前提是你 提交于 2019-12-23 06:10:05
问题 I have a bunch of markers with infowindows in my google maps. Initially I set the content to something with a <input type="text" ...> and a submit button. On the onclick="return submitForm();" of the submit button I call a function which should change the content of the infowindow which it does. But when I close the infowindow and open it again, the text is being reset. How can I make it stay? infowindow.setContent("This HTML content is being reset after reopening the infowindow"); infowindow

How can I show more details of one marker?

半世苍凉 提交于 2019-12-23 04:43:29
问题 What I have: The markers was created by a form submission, the form contains a postcode input. The below javascript will take this postcode and display as markers on google map. (this is a different page) page1.php (code below)I have a php array, this array contains all infoWindow data and the javascript is to create map, markers and inforwindows. <?php .............. $info= array(); foreach($details as $d) { $info[] = "<div id='infoData'>".$d['name'].$d['quantity']."<button id='details'