Bokeh CustomJS coordinate transformation

Having data in Web Mercator is less than ideal, but doing calculations would be easier if you can import a javascript library like Proj4js: (javascript - Convert X,Y pixel to Longitude and Latitude - Stack Overflow)

Is there a way to import that javascript library in a callback so calculations could at least be done in EPSG 4326, or a cartesian coordinate system?

Bokeh vendors proj4 you can find an example of using it in a CustomJS here:

1 Like

Thanks Bryan, thats great.

1 Like