Topic: React vactor map
Barghaz priority asked 1 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 1 year ago
There is an example in documentation: https://mdbootstrap.com/docs/react/plugins/vector-maps/#section-bullets
Barghaz priority commented 1 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 1 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.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- 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