I need to draw a polyline that is exactly 200 meters thick, regardless of the zoom level, so I need to compute current scale when map zoom changes or current viewport center changes significantly. But that's a different story. That "trick" @Marcelo mentioned, about computing distance between two points should work, but I don't like this solution.
If anyone runs into a problem like this, I've attached my function. It should work as supposed. -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/aF9nGwJBRooJ. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
google.maps.js
Description: JavaScript source