google-maps-api-3

Google map's marker doesn't display InfoBubble on iPhone/iPad

天涯浪子 提交于 2021-01-27 17:16:22
问题 Everything about Google map works fine in different desktop browsers even in smaller screen - initialise, markers, infobubbles etc are working perfectly. But on iPhone/iPad, the InfoBubble doesn't appear when the marker is clicked. After research on Stackoverflow and followed the various solutions: Google Map Infowindow not showing properly Google Maps API v3: InfoWindow not sizing correctly Why does Safari on the iPad not display my marker on an embedded Google Maps page? how can i bind

Google Maps display route from json

天大地大妈咪最大 提交于 2021-01-27 14:27:01
问题 I have the next problem to display a route from basic JSON. I do a this call on backend side: curl to https://maps.googleapis.com/maps/api/directions/json I send back the response json to frontend In frontend I try render the route just for visual, why I don't use the google v3 API to get routeResponse object is because I don't want duplicate the same config as backend use and translate to requestObejct in frontent I try to create the routeResponse json based on backend json from googleapi:

GoogleMaps change icon's marker when MapStyle change

*爱你&永不变心* 提交于 2021-01-27 04:16:35
问题 I am doing a web dynamic project with a Google map in a body of my html/jsp page. I made a function which create a marker thanks to (lat,lng,map) and use a special image.png as icon in the parameters of the marker. In my map, I made two different styles (colors of map...) : "Day" and "Night". I want to know how can I change the icon of my marker when user click on Night to change the style. Indeed, the color of the marker is not good for this style of map... I tried to initialize a var image

GoogleMaps change icon's marker when MapStyle change

风流意气都作罢 提交于 2021-01-27 04:16:17
问题 I am doing a web dynamic project with a Google map in a body of my html/jsp page. I made a function which create a marker thanks to (lat,lng,map) and use a special image.png as icon in the parameters of the marker. In my map, I made two different styles (colors of map...) : "Day" and "Night". I want to know how can I change the icon of my marker when user click on Night to change the style. Indeed, the color of the marker is not good for this style of map... I tried to initialize a var image

GoogleMaps change icon's marker when MapStyle change

旧城冷巷雨未停 提交于 2021-01-27 04:15:33
问题 I am doing a web dynamic project with a Google map in a body of my html/jsp page. I made a function which create a marker thanks to (lat,lng,map) and use a special image.png as icon in the parameters of the marker. In my map, I made two different styles (colors of map...) : "Day" and "Night". I want to know how can I change the icon of my marker when user click on Night to change the style. Indeed, the color of the marker is not good for this style of map... I tried to initialize a var image

Is it possible to change Google Map styles after the map has been initialised?

爷,独闯天下 提交于 2021-01-27 03:02:00
问题 I understand how to initialise a map with custom styles like the following: var styles = [ { featureType: "water", stylers: [ { visibility: "on" }, { color: "#ffffff" } ] } ]; var mapOptions = { zoom: 13, maxZoom: 15, minZoom: 12, center: new google.maps.LatLng(50.924229,-1.396841), disableDefaultUI: true, mapTypeId: google.maps.MapTypeId.ROADMAP styles: styles }; map = new google.maps.Map(document.getElementById('map'), mapOptions); But is it possible to change to another style once the map

Is it possible to change Google Map styles after the map has been initialised?

不想你离开。 提交于 2021-01-27 02:58:35
问题 I understand how to initialise a map with custom styles like the following: var styles = [ { featureType: "water", stylers: [ { visibility: "on" }, { color: "#ffffff" } ] } ]; var mapOptions = { zoom: 13, maxZoom: 15, minZoom: 12, center: new google.maps.LatLng(50.924229,-1.396841), disableDefaultUI: true, mapTypeId: google.maps.MapTypeId.ROADMAP styles: styles }; map = new google.maps.Map(document.getElementById('map'), mapOptions); But is it possible to change to another style once the map

Namespace 'google.maps' has no exported member 'MouseEvent'

≡放荡痞女 提交于 2021-01-26 09:45:08
问题 I wanted to integrate Google Maps with my Angular project. In the pilot version, I was just following this link https://angular-maps.com/guides/getting-started/ . Currently, I am stuck in error: node_modules/@agm/core/lib/directives/map.d.ts:232:43 - error TS2694: Namespace 'google.maps' has no exported member 'MouseEvent' 232 mapDblClick: EventEmitter<google.maps.MouseEvent>; I went to the file location and got this mapClick: EventEmitter<google.maps.MouseEvent | google.maps.IconMouseEvent>;

Google Maps API V3: How to jump to a specific marker from outside the map?

偶尔善良 提交于 2021-01-20 16:08:26
问题 I have a map with two markers on it. The initial view of the map only shows one marker, and I want to provide a link next to the map that will move the map to the 2nd marker when clicked. Here's a demo of what I want, using v2 of the API: http://arts.brighton.ac.uk/contact-university-of-brighton-faculty-of-arts (note the links below the map) Here's what I have so far: <script type="text/javascript"> function initialize() { var latlng = new google.maps.LatLng(50.823817, -0.135634); var

Google Maps API V3: How to jump to a specific marker from outside the map?

生来就可爱ヽ(ⅴ<●) 提交于 2021-01-20 16:06:28
问题 I have a map with two markers on it. The initial view of the map only shows one marker, and I want to provide a link next to the map that will move the map to the 2nd marker when clicked. Here's a demo of what I want, using v2 of the API: http://arts.brighton.ac.uk/contact-university-of-brighton-faculty-of-arts (note the links below the map) Here's what I have so far: <script type="text/javascript"> function initialize() { var latlng = new google.maps.LatLng(50.823817, -0.135634); var