google-maps-api-3

Google Street View Maps - Parsing url to use as street image

泪湿孤枕 提交于 2021-02-08 04:11:07
问题 Situation: I'm working on a map feature for a client and I need the ability to get screenshots of a street view, and then display them as a carousel (similar to how Google does it natively). They can choose whatever locations they want in their CMS. The only way I can think of to do this (taking into account non-tech end users) is to allow them to copy and paste the URL from a street view, and then parse it out. For example: https://www.google.com/maps/@60.959789,-149.112111,3a,75y,104.14h,94

Google Street View Maps - Parsing url to use as street image

狂风中的少年 提交于 2021-02-08 04:10:10
问题 Situation: I'm working on a map feature for a client and I need the ability to get screenshots of a street view, and then display them as a carousel (similar to how Google does it natively). They can choose whatever locations they want in their CMS. The only way I can think of to do this (taking into account non-tech end users) is to allow them to copy and paste the URL from a street view, and then parse it out. For example: https://www.google.com/maps/@60.959789,-149.112111,3a,75y,104.14h,94

Google Street View Maps - Parsing url to use as street image

杀马特。学长 韩版系。学妹 提交于 2021-02-08 04:10:08
问题 Situation: I'm working on a map feature for a client and I need the ability to get screenshots of a street view, and then display them as a carousel (similar to how Google does it natively). They can choose whatever locations they want in their CMS. The only way I can think of to do this (taking into account non-tech end users) is to allow them to copy and paste the URL from a street view, and then parse it out. For example: https://www.google.com/maps/@60.959789,-149.112111,3a,75y,104.14h,94

clickable sidebar markerclusterer google map api v.3

五迷三道 提交于 2021-02-08 02:01:23
问题 Google map API v.3 is used. Attached with markerclusterer.js I would like to make a map that show the cluster of markers. (Done!) When I click on the marker, an infowindow would be shown. (Done!) A sidebar is made next to the map. When click on it, an infowindow would be shown for relevant marker. (Failed, why?) Please help me take a look at the code of javascript and html. var hk_markers = [ { 'id':1, 'name':'Sanrio Puroland(サンリオピューロランド)', 'location':'Tokyo, Japan', 'lat':35.62464, 'lng':139

clickable sidebar markerclusterer google map api v.3

北战南征 提交于 2021-02-08 02:00:32
问题 Google map API v.3 is used. Attached with markerclusterer.js I would like to make a map that show the cluster of markers. (Done!) When I click on the marker, an infowindow would be shown. (Done!) A sidebar is made next to the map. When click on it, an infowindow would be shown for relevant marker. (Failed, why?) Please help me take a look at the code of javascript and html. var hk_markers = [ { 'id':1, 'name':'Sanrio Puroland(サンリオピューロランド)', 'location':'Tokyo, Japan', 'lat':35.62464, 'lng':139

Add two google maps with different callbacks [duplicate]

混江龙づ霸主 提交于 2021-02-07 20:25:28
问题 This question already has answers here : Using initMap and initAutocomplete on same html page google maps (2 answers) Closed 4 years ago . I have two google maps containers on my page. the first - id="map" is just a normal "display map" the second - id="map2" is a search map where the user types in the input and the map refreshes to where the user typed. these maps use the same api key but their callbacks differ. if I add both of the following get and error in console saying duplicate api

adding markers in google maps API V3 from xml file

白昼怎懂夜的黑 提交于 2021-02-07 08:36:59
问题 i have problem on showing markers on google maps using xml file !!! here is my xml file "exemple.xml" <?xml version="1.0" encoding="UTF-8"?> <markers> <marker name="Pan Africa Market" address="1521 1st Ave, Seattle, WA" lat="47.608940" lng="-122.340141" type="restaurant"/> <marker name="Buddha Thai & Bar" address="2222 2nd Ave, Seattle, WA" lat="47.613590" lng="-122.344391" type="bar"/> <marker name="The Melting Pot" address="14 Mercer St, Seattle, WA" lat="47.624561" lng="-122.356445" type=

adding markers in google maps API V3 from xml file

淺唱寂寞╮ 提交于 2021-02-07 08:36:30
问题 i have problem on showing markers on google maps using xml file !!! here is my xml file "exemple.xml" <?xml version="1.0" encoding="UTF-8"?> <markers> <marker name="Pan Africa Market" address="1521 1st Ave, Seattle, WA" lat="47.608940" lng="-122.340141" type="restaurant"/> <marker name="Buddha Thai & Bar" address="2222 2nd Ave, Seattle, WA" lat="47.613590" lng="-122.344391" type="bar"/> <marker name="The Melting Pot" address="14 Mercer St, Seattle, WA" lat="47.624561" lng="-122.356445" type=

Google maps api v3: geocoding multiple addresses and infowindow

☆樱花仙子☆ 提交于 2021-02-07 04:40:45
问题 I am trying to get infowindow for multiple addresses. Its creating markers but when I click on markers, infowindow is not popping up. Please help and see what could be wrong in this code. Rest all info is fine only issue is with infowindow not coming up. <!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <title>Google Maps Multiple Markers</title> <script src="http://maps.google.com/maps/api/js?sensor=false" type="text/javascript"></script> <

Find which tiles are currently visible in the viewport of a Google Maps v3 map

…衆ロ難τιáo~ 提交于 2021-02-06 06:35:14
问题 I am trying to build support for tiled vector data into some of our Google Maps v3 web maps, and I'm having a hard time figuring out how to find out which 256 x 256 tiles are visible in the current map viewport. I know that the information needed to figure this out is available if you create a google.maps.ImageMapType like here: Replacing GTileLayer in Google Maps v3, with ImageMapType, Tile bounding box?, but I'm obviously not doing this to bring in traditional pre-rendered map tiles. So, a