You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I looked into this a little bit, due to #60. It seems like the way to do this is to create a new google.maps.Data object, and add GeoJSON data to that. Unfortunately, that returns a google.maps.data.Polygon object, which isn't the same as a google.maps.Polygon object (which is super annoying, Google, seriously). Google's functionality to detect if a point is within a polygon works with a google.maps.Polygon, not a google.maps.data.Polygon, and while some people have been able to write code to translate, this seems super sketchy and brittle. Meh. :/ Maybe there's another way?
@carpeliam is file maps.google.polygon.containsLatLng.js extension in folder /vendor meant to be used to possibly fix this issue? If so, should I start implementing this extension on all the modules that use GeoJson to finally remove our dependency on it?
As noted on that repo, Google Maps API now supports GeoJSON.
The text was updated successfully, but these errors were encountered: