jeffreykemp / jk64-plugin-reportmap

Report Google Map APEX Plugin
https://jeffreykemp.github.io/jk64-plugin-reportmap/
MIT License
42 stars 16 forks source link

Geojson - marker improvements #164

Closed josefn10 closed 1 year ago

josefn10 commented 1 year ago

Is possible create marker with info window from Geojson and register click or drag event for selecting marker with javascript $("#map_mymap").reportmap("click","#ID#")?

patty1997 commented 1 year ago

Whenever I try this it gives a JS error.

Uncaught Error: cannot call methods on reportmap prior to initialization; attempted to call method 'click' at Function.error (desktop_all.min.js?v=23.1.0:2:2616) at HTMLDivElement. (desktop_all.min.js?v=23.1.0:31:3977) at Function.each (desktop_all.min.js?v=23.1.0:2:3003) at S.fn.init.each (desktop_all.min.js?v=23.1.0:2:1481) at q.fn. [as reportmap] (desktop_all.min.js?v=23.1.0:31:3716) at :1:13

I have tried this on apex.oracle.com as well as on my instance.

Could you help where am I going wrong?

I followed the exact configuration given in your app.

jeffreykemp commented 1 year ago

You can't call map methods until after the map is loaded. You can do this from a dynamic action on one of the following trigger events:

patty1997 commented 1 year ago

But then how can I sync my report with the map in this case? Let's say I created a report and it's column ciickable. What should the link be?

Or Let's say I create a dynamic action that triggers when the map is loaded. How can I sync my report then?

Before that thank you for your help till now. Highly appreciated.

patty1997 commented 1 year ago

But then how can I sync my report with the map in this case? Let's say I created a report and it's column ciickable. What should the link be?

Or Let's say I create a dynamic action that triggers when the map is loaded. How can I sync my report then?

Before that thank you for your help till now. Highly appreciated.

Hey, It worked. Sorry. The link to the column was supposed to have 'map_' as a prefix. I didn't observe it carefully,

Great PLugin my friend! Thanks!