Reputation: 41
I used HighMaps in react.js in that want to plot points using latitude and longitude. i import proj4 also...But the error shows like Using latitude/longitude functionality in Highmaps requires the Proj4js library to be loaded..please help me to resolve this
Upvotes: 0
Views: 253
Reputation: 41
First Install npm proj4 then add this code into seperate component and connect
import proj4 from 'proj4';
if(typeof window !== 'undefined') {
window.proj4 = window.proj4 || proj4;
}
export default proj4;
Upvotes: 1