Skip to content

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

Closed

Description

@babelom

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

Activity

  1. added
    Resolution: For Stack Overflow
    on Aug 31, 2018
  2. added
    Ran Commands
    on Aug 31, 2018
  3. react-native-bot commented on Aug 31, 2018

    @react-native-bot
    Collaborator

    Please use Stack Overflow for this type of question.

  4. locked as resolved and limited conversation to collaborators on Aug 31, 2019
  5. added
    Resolution: Locked
    on Aug 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Ran CommandsResolution: For Stack OverflowResolution: Locked

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions