Your "path" element cited is part of an SVG element. https://developer.mozilla.org/en-US/docs/Web/SVG The SVG element may contain a viewBox attribute. Using those attributes will allow the browser to map the coordinates in the path element to the pixels on the screen.
The points in the path element do not represent pixels, until they are scaled by the browser using the viewBox attribute and others (and they are are not "pixelated" anything; that's a completely different concept.) I'm going to guess that they happen to draw a polygon on top of a map (in another div). It is up to you to determine the relationship between the SVG element and the map; google maps has no way to know any of that, and there is no google maps "function" to determine that for you. On Thursday, December 7, 2017 at 2:20:48 AM UTC-8, artur....@gmail.com wrote: > > Good day. > Have an interesting task: to convert coordinates of poligons from map here > to LatLng format in order to use in google maps API. > "Digging" the code of that map I discovered strings like > <path class="leaflet-interactive" stroke="black" stroke-opacity="1" > stroke-width="3" stroke-linecap="round" stroke-linejoin="round" > stroke-dasharray="0" fill="#ffff00" fill-opacity="0.3" fill-rule="evenodd" > d="M462 399L454 405L454 408L451 406L452 409L445 414L445 418L448 417L448 > 419L451 418L453 420L457 418L466 418L467 413L469 411L467 411L465 407L460 > 407L463 402L462 400z"> > > > So I am assuming, that > d="M462 399L454 405L454 408L451 406L452 409L445 414L445 418L448 417L448 > 419L451 418L453 420L457 418L466 418L467 413L469 411L467 411L465 407L460 > 407L463 402L462 400z" > > > is coordinates to convert. > > BUT > I have no idea how to convert it into LatLng format. > Does anyone has any suggestions? > -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-maps-js-api-v3+unsubscr...@googlegroups.com. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. Visit this group at https://groups.google.com/group/google-maps-js-api-v3. For more options, visit https://groups.google.com/d/optout.