jobinjjp
Posts: 2
Joined: Thu Feb 24, 2022 7:42 am

Map Point with lat and long is not working

Hi,
I'm working on a requirement where we need to load custom GeoJSON data and add points on the loaded map. unfortunately the points are not showing up.

I have reproduced the issue with the demo code "Map point with lat/long", please could someone guide me on this.

The sample code can be found at https://jsfiddle.net/5te18vzm/1/
magdalena
Posts: 517
Joined: Tue Aug 24, 2021 1:32 pm

Re: Map Point with lat and long is not working

Hi jobinjjp,

Welcome to our forum and thanks for contacting us with your question!

I'm not sure what would you like to achieve. Do you want to show points as like at the following map?
https://jsfiddle.net/gh/get/library/pur ... int-latlon

Let me know if that was what you were looking for,
Regards!
Magdalena Gut
Developer and Highcharts Support Engineer
jobinjjp
Posts: 2
Joined: Thu Feb 24, 2022 7:42 am

Re: Map Point with lat and long is not working

Hi,

My requirement is to display points on a drill down capable map like (https://www.highcharts.com/demo/maps/map-drilldown).

Please could you advice why the points are not displayed on this example? https://jsfiddle.net/5te18vzm/2

Thanks
Jobin
magdalena
Posts: 517
Joined: Tue Aug 24, 2021 1:32 pm

Re: Map Point with lat and long is not working

Hi,

when you uncomment chart.map, the points will show on the map. It could be not exactly what you expect because it causes non-working drilldown.

You can try add series.data manually like in the following example:

Demo:
https://jsfiddle.net/BlackLabel/3xs48mgf/

Feel free to ask any further questions,
Regards!
Magdalena Gut
Developer and Highcharts Support Engineer

Return to “Highcharts Maps”