I am trying to create a Dot Map using geoplotlib and getting the following error:
Traceback (most recent call last):
File "/Users/abc/opt/anaconda3/lib/python3.9/site-packages/geoplotlib/__init__.py", line 32, in _runapp
app.start()
File "/Users/abc/opt/anaconda3/lib/python3.9/site-packages/geoplotlib/core.py", line 367, in start
l.invalidate(self.proj)
File "/Users/abc/opt/anaconda3/lib/python3.9/site-packages/geoplotlib/layers.py", line 148, in invalidate
self.painter.points(x, y, 2*self.point_size, False)
File "/Users/abc/opt/anaconda3/lib/python3.9/site-packages/geoplotlib/core.py", line 517, in points
glDisable(GL_POINT_SMOOTH)
NameError: name 'GL_POINT_SMOOTH' is not defined
This is the code that I am using:
import geoplotlib
from geoplotlib.utils import read_csv
data = read_csv("merged.csv")
geoplotlib.dot(data)
geoplotlib.show()
The file merged.csv looks like this:
lat,lon,val
24.0,54.0,1.67
33.0,65.0,3.9
17.05,-61.8,2.0
41.0,20.0,1.7
40.0,45.0,1.58
12.25,-68.75,1.82
-12.5,18.5,5.34
-34.0,-64.0,2.22
As per my understanding, this code should work after installing Geoplotlib. How could I resolve this error?