Skip to content

React Native put marker on image with lat and lng coords #20894

Closed
@babelom

Description

Environment

Environment:
OS: macOS High Sierra 10.13.6
Node: 10.0.0
Yarn: 1.6.0
npm: 5.6.0
Watchman: 4.9.0
Xcode: Xcode 9.3.1 Build version 9E501
Android Studio: Not Found

Packages: (wanted => installed)
react: 16.3.0-alpha.1 => 16.3.0-alpha.1
react-native: https://github.com/expo/react-native/archive/sdk-26.0.0.tar.gz => 0.54.2

Description

I'm gonna try to explain my problem to you the most clearly possible.

I've got an image of the oceania (width: 311 height: 305). And I looking for a solution to put some red point (a View resize at 1x1 with the BackgroundColor red) on my image from coordinates (-33.029886, 151.575489 for Sydney for example).

Reproducible Demo

I've tried some test like:

Find 2 point on my image (at x: 37, y: 84)
Search the corresponding coords (lat and lng) on googlemap
Made a relation to find a other point with an algorithm to verify if my method work
But I'm lost, I'm so sad, I dont understand how to find the good position from the coordinates (lat and lng) ...

I will very glad and gratefull if somebody can help me to resolve this problem

Metadata

Assignees

No one assigned

    Labels

    Ran CommandsOne of our bots successfully processed a command.Resolution: For Stack OverflowA question for Stack Overflow. Applying this label will cause issue to be closed.Resolution: LockedThis issue was locked by the bot.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions