(meters, { lat, lng }, zoom)
| 170 | // Helpers to calc some markers size |
| 171 | |
| 172 | export function meters2ScreenPixels(meters, { lat, lng }, zoom) { |
| 173 | const { w, h } = meters2WorldSize(meters, { lat, lng }); |
| 174 | const scale = Math.pow(2, zoom); |
| 175 | const wScreen = w * scale * GOOGLE_TILE_SIZE; |
| 176 | const hScreen = h * scale * GOOGLE_TILE_SIZE; |
| 177 | return { |
| 178 | w: wScreen, |
| 179 | h: hScreen, |
| 180 | }; |
| 181 | } |
| 182 | |
| 183 | // -------------------------------------------------- |
| 184 | // Helper functions for working with svg tiles, (examples coming soon) |
nothing calls this directly
no test coverage detected