infowindow

Google Fusion Map Info Window Not Formatted

*爱你&永不变心* 提交于 2019-12-02 04:39:58
I have created a Google Fusion Map with 2 layers. All appears to be working correctly with 1 exception. I have formatted the Info Window of both layers using the Google Fusion Table tool. However, the Info Window on layer 1 is not appearing as specified with the code below. It works fine in the Google Fusion Table tool itself. Can anyone spot what I've done wrong? Thanks. <meta charset="UTF-8"> <title>Smithfield Foods UK</title> <link rel="stylesheet" type="text/css" media="all" href="FusionMapTemplate.css" /> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"

GoogleMap Markers are Not Clickable on the Mobile Devices

丶灬走出姿态 提交于 2019-12-02 01:42:13
GoogleMap Markers are Not Clickable on the Mobile Devices (Touch Screens). But, ok on any PC, so I can't figure out what is the point. Here is my code: var map = new google.maps.Map(document.getElementById('map'), { zoom: 10, center: new google.maps.LatLng(60.037760, -44.100494), mapTypeId: google.maps.MapTypeId.ROADMAP }); var locations = [ ['4lvin', 60.074433, -44.011917], ['5irius', 60.037760, -44.100494] ]; for (var i = 0; i < locations.length; i++) { var marker = new google.maps.Marker({ position: new google.maps.LatLng(locations[i][1], locations[i][2]), map: map }); var infowindow = new

Google Maps - Attaching InfoWindows to polygons in array

孤街醉人 提交于 2019-12-01 22:35:00
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, fillColor: fcolor, fillOpacity: 0.5 }); addPolygonClick(tmppoly,mdata); plot_polygons.push(tmppoly); ...

Google Maps API InfoWindow not Displaying content

好久不见. 提交于 2019-12-01 16:53:35
My Code looks like this: var map = /*some google map - defined earlier in the code*/; var geocoder = new google.maps.Geocoder(); var address = 'Some Address, Some Street, Some Place'; geocoder.geocode({'address':address},function(results,status){ if (status == google.maps.GeocoderStatus.OK) { map.setCenter(results[0].geometry.location); var infobox = new google.maps.InfoWindow({ content: 'Hello world' }); for(i in results){ var marker = new google.maps.Marker({ map: map, position: results[i].geometry.location }); google.maps.event.addListener(marker, 'click', function() { infobox.setContent(

Google Maps API InfoWindow not Displaying content

こ雲淡風輕ζ 提交于 2019-12-01 14:45:19
问题 My Code looks like this: var map = /*some google map - defined earlier in the code*/; var geocoder = new google.maps.Geocoder(); var address = 'Some Address, Some Street, Some Place'; geocoder.geocode({'address':address},function(results,status){ if (status == google.maps.GeocoderStatus.OK) { map.setCenter(results[0].geometry.location); var infobox = new google.maps.InfoWindow({ content: 'Hello world' }); for(i in results){ var marker = new google.maps.Marker({ map: map, position: results[i]

Google Maps How to add Image into InfoWindow

孤街醉人 提交于 2019-12-01 10:18:46
问题 Hi I am trying to add an image into a google maps infoWindow, my code is like this a script var ContactUs = function () { return { //main function to initiate the module init: function () { var map; $(document).ready(function(){ map = new GMaps({ div: '#map', lat: -13.004333, lng: -38.494333, }); var marker = map.addMarker({ lat: -13.004333, lng: -38.494333, title: 'Loop, Inc.', infoWindow: { content: "<b>Loop, Inc.</b> 795 Park Ave, Suite 120<br>San Francisco, CA 94107" } }); marker

Google Maps infoWindow without marker?

有些话、适合烂在心里 提交于 2019-12-01 07:43:58
According to the documention a marker is optional with an infoWindow, so how is this achieved please? I have tried infowindow.open(map) and infowindow.open(map,null) but both produce nothing. infowindow.open(map) makes no sense since you need to specify the position where the infowindow should open, also it has a tapered stem which specifies the location where it should point. According to the documentation of Infowindows- InfoWindows may be attached to either Marker objects (in which case their position is based on the marker's location) or on the map itself at a specified LatLng. So if you

Changing background color in Google Map InfoWindow

ε祈祈猫儿з 提交于 2019-12-01 05:39:34
I want my InfoWindows in my Google Map implementation to have a black background color. "backgroundColor" is not an available option for InfoWindows. See here . I put a div tag in the content option with a black background and white text. However, that still renders with a white border. Does anyone know a way to get a completely black background? Thanks for any help in advance. Tony Miller If you want complete control over the background but want the niceties of InfoWindow, then you can can use the InfoBox from the Google Maps Utility library. 来源: https://stackoverflow.com/questions/3610884

Google Maps infoWindow without marker?

筅森魡賤 提交于 2019-12-01 03:53:59
问题 According to the documention a marker is optional with an infoWindow, so how is this achieved please? I have tried infowindow.open(map) and infowindow.open(map,null) but both produce nothing. 回答1: infowindow.open(map) makes no sense since you need to specify the position where the infowindow should open, also it has a tapered stem which specifies the location where it should point. According to the documentation of Infowindows- InfoWindows may be attached to either Marker objects (in which

Google Map multiple infowindow does not work

坚强是说给别人听的谎言 提交于 2019-12-01 02:10:20
I tried to add multiple markers and infowindow to a google map using javascript. Below is the code: <!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <title>Google Maps Multiple Markers</title> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script> <script src="http://maps.google.com/maps/api/js?sensor=false" type="text/javascript"></script> </head> <body> <div id="map" style="width: 500px; height: 400px;"></div> <script type="text/javascript"> var locations = [ '1961 East Mall Vancouver BC', '2366 Main Mall