google-maps-api-3

Point in KML Polygon - C / C++ code

久未见 提交于 2019-12-25 04:53:32
问题 I am looking for C or C++ code to identify whether the point (a co-ordinate) lies inside a KML polygon or not. I have searched but all I got is javascript (google maps apis) which can achieve the same. I cannot even port it directly because I have a slight modified requirement: Identify whether given co-ordinate lies within polygon of KML (the code should exclude holes in the polygon too!). Informing the caller the distance to the nearest polygon edge if the point is outside the range. As far

Avoid some coordinates in routes using Google Directions API Android

淺唱寂寞╮ 提交于 2019-12-25 04:42:50
问题 I want to avoid some coordinates while using directions APIs.I have read the below blog https://code.google.com/p/gmaps-api-issues/issues/detail?id=214 Which ensures that Directions API doesn't allow if I want to avoid specific coordinate. Then I have tried with waypoint parameter (Which allow us to get routes that include specific coordinate) with considering same source and destination: 1) First get the routes without adding waypoint https://maps.googleapis.com/maps/api/directions/json

local storage for google map markers

北战南征 提交于 2019-12-25 04:35:39
问题 How do I incorporate localStorage in my code? I have a show and hide button on my google map that will Hide and Show a marker array. I need to store the values in localStorage when the button is clicked. What I have so far: var testbtn = document.getElementById('test1'); var testbtn2 = document.getElementById('test2'); google.maps.event.addDomListener(testbtn, 'click', hide); google.maps.event.addDomListener(testbtn2, 'click', show); function hide() { set_speed_camera(null); localStorage

connecting list view in knockout.js with map markers

徘徊边缘 提交于 2019-12-25 04:35:18
问题 I've been trying to connect the list view i have within a foreach data bind through knockout with my google map markers, i have tried. //Click on item in list view self.listViewClick = function(list) { if (this.name) { map.setZoom(15); map.panTo(this.latlng); list.setAnimation(google.maps.Animation.BOUNCE); } }; I tried changing out the "list" argument with self, this, and marker. I can only get the last map marker to bounce when i click on it in the list view when its set to marker. I know i

Maximum call stack size exceeded / Too much recursion on Google maps API custom map type with allowed bounds

痴心易碎 提交于 2019-12-25 04:26:21
问题 I'm trying to create a page using an custom map type image map as a background. I needed to restrict the panning on the image, so that it's not possible to pan past the image, but when panning the map left / right (along the x / longitude axis), the map disappears and I'm getting a "maximum stack size exceeded" (Chrome) or "too much recursion" (Firefox) error. It turns out I'm not the only one having this issue, but in most of the cases, people had trouble with the decimal signs in the

Android Google Map V2 Draw a crosshair in center of map screen

时间秒杀一切 提交于 2019-12-25 04:26:08
问题 I am developing an android application using google maps. I want to show a crosshair in center of screen and then would like to plot marker at center when user clicks button. So my question is how to draw a cross hair on maps. I searched for this but all soultions points to old google map api where using Overlay class (com.google.android.maps) crosshair is obtained , but now there is no support for this class. Please help I want to acheive this thing:- Thanks 回答1: I've been using relative

Google maps for iOS crashing

爷,独闯天下 提交于 2019-12-25 04:12:05
问题 Hi l am having a problem implementing google maps for iOS I have put all the relevant frameworks and added the -ObjC under Project NOt target and I am getting this error: CoreData: warning: Unable to load class named 'GMSCacheProperty' for entity 'GMSCacheProperty'. Class not found, using default NSManagedObject instead. 2015-02-09 22:48:01.326 AlertPoint[8038:957015] CoreData: warning: Unable to load class named 'GMSCachedObject' for entity 'GMSCachedObject'. Class not found, using default

Error with google maps api3

冷暖自知 提交于 2019-12-25 04:05:44
问题 I am trying to embed a google map with markers in my webpage. But I am getting an undefined alert message if I use the following code var infowindow = null; var geocoder; $(document).ready(function () { initialize(); }); function codeAddress(address) { geocoder = new google.maps.Geocoder(); geocoder.geocode( { 'address': address}, function(results, status) { if (status == google.maps.GeocoderStatus.OK) { //alert(results[0].geometry.location); return (results[0].geometry.location); } }); }

Google Map API Get Duration without traffic

試著忘記壹切 提交于 2019-12-25 04:01:38
问题 I know that the durationIntraffic is depracated now. I just cant find a way to get the duration without traffic using google api. already tried the matrix using DrivingOptions and trafficModel but the duration and duration_in_traffic did not match the duration without traffic in Maps.Google.com Any help on how to get the duration without traffic data using API? Image 回答1: Duration gives average time and duration in Traffic gives time in traffic .sometimes you run googleApi at midnignt you

Snap a marker to a specific road

◇◆丶佛笑我妖孽 提交于 2019-12-25 03:58:15
问题 I'm working on a project where I'm tracking user feedback for a section of construction, but it spans over a pretty long distance. What I'd like to be able to happen is a user clicks the map, and the marker snaps to the road, somewhere between point A and point B. I've snapped markers to roads specifically, but never a specific road. I feel like there are two potential approaches, either Google doesn't have this feature and I haven't found it yet. Or, I create a polyline by generating