Translating floor plan position into coordinates on screen map

Osborne Cox

I have a custom floor plan in an ImageView and I am trying to determine how to translate a position on the floor plan into screen coordinates.

Is there a recommended way to go about implementing this as I'm not sure how to proceed. I am not using the Maps API, just a custom floor plan I created myself.

Gil Moshayof

Try this:

screenCoordX = (imageCoordX / imageWidth) * screenWidth;
screenCoordY = (imageCoordY / imageHeight) * screenHeight;

Make sure all the values are floats / doubles.

This should get you started.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

2D Array Not Translating to D3 Map Coordinates

From Dev

Caret position relative to screen coordinates in javaFX

From Dev

How can I get a component's position on screen (screen coordinates)

From Dev

how to position Views on an Android screen relative to the screen edges using offsets in terms of pixel position on the screen coordinates?

From Dev

Convert map viewport click position to map coordinates (Bing maps)

From Dev

Map physical screen position to an array of GraphicsDevice with Swing

From Dev

Floor-plan in Android and svg

From Dev

Alternative plan of tf.floor

From Dev

Translating mouse coordinates to model coordinates in OpenGL when rotations are involved

From Dev

Transformation the screen coordinates to stage coordinates

From Dev

How can I position InfoWindows based on screen position, instead of map position?

From Dev

How do I make floor plan directions?

From Dev

How to map widget's position to secondary monitor screen?

From Dev

Map marker position with animateCamera to screen location x, y

From Dev

How to map widget's position to secondary monitor screen?

From Dev

How can I position the camera on the bottom of the screen on a tilted Map in Android

From Dev

Translating a View outside the bounds of screen and animating it back

From Dev

Translating points from Jfreechart component to screen values

From Dev

QML Screen Coordinates of Component

From Dev

Screen coordinates in R

From Dev

Display touch coordinates on screen

From Dev

Mapping coordinates to screen in PyGame

From Dev

Compare Position to Coordinates in NSMutableArray

From Dev

Save the coordinates position of a child

From Dev

Translating flash info box into coordinates for html5 canvas shape?

From Dev

HTML canvas: Rotating and translating an image to fix a point in image to coordinates in canvas

From Dev

translating list comprehensions to definitions using map and concat

From Dev

translating list comprehensions to definitions using map and concat

From Dev

Issues translating Left Oriented Off-Screen Navbar to the Right of the Screen

Related Related

  1. 1

    2D Array Not Translating to D3 Map Coordinates

  2. 2

    Caret position relative to screen coordinates in javaFX

  3. 3

    How can I get a component's position on screen (screen coordinates)

  4. 4

    how to position Views on an Android screen relative to the screen edges using offsets in terms of pixel position on the screen coordinates?

  5. 5

    Convert map viewport click position to map coordinates (Bing maps)

  6. 6

    Map physical screen position to an array of GraphicsDevice with Swing

  7. 7

    Floor-plan in Android and svg

  8. 8

    Alternative plan of tf.floor

  9. 9

    Translating mouse coordinates to model coordinates in OpenGL when rotations are involved

  10. 10

    Transformation the screen coordinates to stage coordinates

  11. 11

    How can I position InfoWindows based on screen position, instead of map position?

  12. 12

    How do I make floor plan directions?

  13. 13

    How to map widget's position to secondary monitor screen?

  14. 14

    Map marker position with animateCamera to screen location x, y

  15. 15

    How to map widget's position to secondary monitor screen?

  16. 16

    How can I position the camera on the bottom of the screen on a tilted Map in Android

  17. 17

    Translating a View outside the bounds of screen and animating it back

  18. 18

    Translating points from Jfreechart component to screen values

  19. 19

    QML Screen Coordinates of Component

  20. 20

    Screen coordinates in R

  21. 21

    Display touch coordinates on screen

  22. 22

    Mapping coordinates to screen in PyGame

  23. 23

    Compare Position to Coordinates in NSMutableArray

  24. 24

    Save the coordinates position of a child

  25. 25

    Translating flash info box into coordinates for html5 canvas shape?

  26. 26

    HTML canvas: Rotating and translating an image to fix a point in image to coordinates in canvas

  27. 27

    translating list comprehensions to definitions using map and concat

  28. 28

    translating list comprehensions to definitions using map and concat

  29. 29

    Issues translating Left Oriented Off-Screen Navbar to the Right of the Screen

HotTag

Archive