React vactor map


Topic: React vactor map

Barghaz pro premium priority asked a year 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 a year ago

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


Barghaz pro premium priority commented a year 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 a year 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
  • User: Pro
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: MDB5 6.0.0
  • Device: any
  • Browser: any
  • OS: any
  • Provided sample code: No
  • Provided link: Yes