Karthik CS
Karthik CS

Reputation: 41

Highmaps in React using lat/lon not working

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

Answers (1)

Karthik CS
Karthik CS

Reputation: 41

  1. 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

Related Questions