Barghaz priority asked 6 months ago


I am using React Vactor map "https://git.mdbootstrap.com/mdb/react/mdb5/plugins/prd/vector-maps" but in this map using x y coordinates for the marker on the map. I need to show the marker with the help of latitude and longitude. Please let me know how I can do that.

Here is the code sample that is using const [activePin, setActivePin] = useState([ { x: 474, y: 294, label: 'London', }, ]); const [pinRegions, setPinRegion] = useState('GB');


Mateusz Lazaru staff answered 6 months ago


There is an example in documentation: https://mdbootstrap.com/docs/react/plugins/vector-maps/#section-bullets


Barghaz priority commented 6 months ago

Yes, I am using this document. But this document shows the marker with the help of x and y coordinates. I want to show the marker coordinates with the help of latitude and longitude. I tried this online converter but did not show the marker's correct position. https://tool-online.com/en/coordinate-converter.php


Mateusz Lazaru staff commented 6 months ago

Sorry for the misunderstanding. Currently, there is no option to convert any geographic coordinates into the vector-map plugin x,y values. These are not exactly associated with real coordinates.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 6.0.0
  • Device: any
  • Browser: any
  • OS: any
  • Provided sample code: No
  • Provided link: Yes