jeffreykemp / jk64-plugin-reportmap

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

Missing Marker Cluster Icons #142

Closed simongadd closed 3 years ago

simongadd commented 3 years ago

Describe the bug Using Marker Clusters but the cluster icons are not rendering (see screenshot)

Expected behaviour When multiple points are passed to the Map region, clusters should display. At the moment it appears the javascript is unable to reference the required icons.

Screenshots If applicable, add screenshots to help explain your problem. Screenshot 2021-01-18 at 10 21 26

Additional context Running on an Oracle Cloud Hosted APEX instance - not sure if that would affect the behaviour. Have trawled through StackOverflow etc but don't see any pointers to resolving the issue.

jeffreykemp commented 3 years ago

Thanks, can you check the browser console - on the Network tab you should see the failing requests - check what URL it's attempting to download the icons from.

The plugin has some code that tries to parse the URL for friendly or legacy URLs and it's possible there's something different about the URLs on the hosted instances.

simongadd commented 3 years ago

Hi Jeffrey

Yes, the Network tab is highlighting that it can’t find the resource(s) here…

https://.adb.eu-frankfurt-1.oraclecloudapps.com/r/hms_fire/109/files/plugin/205655411308243901/v638/images/m1.png

Can I modify the code to pull them from the Application Static Files?

BR S

On 18 Jan 2021, at 11:47, Jeffrey Kemp notifications@github.com wrote:

Thanks, can you check the browser console - on the Network tab you should see the failing requests - check what URL it's attempting to download the icons from.

The plugin has some code that tries to parse the URL for friendly or legacy URLs and it's possible there's something different about the URLs on the hosted instances.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jeffreykemp/jk64-plugin-reportmap/issues/142#issuecomment-762197767, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGLF3FTLTSDJSBSUZWD5CVDS2QNUVANCNFSM4WHCPAPQ.

jeffreykemp commented 3 years ago

Editing the plugin to use application static files will probably encounter the same issue.

Can you post what the URL is for the page?

Also, run the page in APEX debug mode and check the debug log for these lines (search for "_getWindowPath" and post them here, e.g.:

reportmap._getWindowPath
debug.js?v=20.2.0.00.20:258 Friendly URL detected https://apex.oracle.com/pls/apex/jk64/r/jk64_report_map61081/clustering
debug.js?v=20.2.0.00.20:258 path https://apex.oracle.com/pls/apex
debug.js?v=20.2.0.00.20:258 imagePrefix https://apex.oracle.com/pls/apex/jk64/r/61081/files/plugin/32974076922090713201/v637/images/m
jeffreykemp commented 3 years ago

Another thing that might help me, if you could check the Network tab for the URL of the resource jk64reportmap_r1.js, e.g.

https://apex.oracle.com/pls/apex/jk64/r/61081/files/plugin/32974076922090713201/v637/jk64reportmap_r1.js
simongadd commented 3 years ago

Hi Jeffrey

Thanks very much for taking a look at this. I know were into your evening and you’re doing this out of the goodness of your heart. :-)

The page is here… https://.adb.eu-frankfurt-1.oraclecloudapps.com/ords/r/hms_fire/mælaborðinu/brunavarnaráætlanir?session=115639254077923

Could the ‘friendly’ URL be causing the issue?

Not seeing anything here… SELECT * FROM APEX_DEBUG_MESSAGES where message like '%WindowPath%' order by ID desc

On 18 Jan 2021, at 12:31, Jeffrey Kemp notifications@github.com wrote:

Editing the plugin to use application static files will probably encounter the same issue.

Can you post what the URL is for the page?

Also, run the page in APEX debug mode and check the debug log for these lines (search for "_getWindowPath" and post them here, e.g.:

reportmap._getWindowPath debug.js?v=20.2.0.00.20:258 Friendly URL detected https://apex.oracle.com/pls/apex/jk64/r/jk64_report_map61081/clustering debug.js?v=20.2.0.00.20:258 path https://apex.oracle.com/pls/apex debug.js?v=20.2.0.00.20:258 imagePrefix https://apex.oracle.com/pls/apex/jk64/r/61081/files/plugin/32974076922090713201/v637/images/m — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jeffreykemp/jk64-plugin-reportmap/issues/142#issuecomment-762220827, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGLF3FTMSITOFIXKOIIUS2DS2QSY7ANCNFSM4WHCPAPQ.

simongadd commented 3 years ago

Hi Jeffrey

It’s https://.adb.eu-frankfurt-1.oraclecloudapps.com/ords/r/hms_fire/109/files/plugin/205655411308243901/v638/jk64reportmap_r1.js

On 18 Jan 2021, at 12:42, Jeffrey Kemp notifications@github.com wrote:

Another thing that might help me, if you could check the Network tab for the URL of the resource jk64reportmap_r1.js, e.g.

https://apex.oracle.com/pls/apex/jk64/r/61081/files/plugin/33976076922090712201/v637/jk64reportmap_r1.js — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jeffreykemp/jk64-plugin-reportmap/issues/142#issuecomment-762226917, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGLF3FQJD632PFOKQF7KTELS2QUEZANCNFSM4WHCPAPQ.

jeffreykemp commented 3 years ago

No problem.

The WIndowPath debug logs should be visible in the browser Console Log (not in APEX) but only when APEX debug mode is on.

jeffreykemp commented 3 years ago

Regardless, I think I can see what's going wrong anyway. I'll investigate further and hopefully get a fix together shortly.

jeffreykemp commented 3 years ago

Hi Simon,

I've made a small adjustment to try to take care of this issue. I'm not sure if it's absolutely correct for all cases (I'll have to find out more about how URLs work on the hosted cloud instance) but in your case I think this might work for now:

To try it, please download the plugin from here: https://github.com/jeffreykemp/jk64-plugin-reportmap/blob/Patch-1-4-2/region_type_plugin_com_jk64_report_google_map_r1.sql install it in your instance and see if it takes care of the issue.

If the issue persists, please check the debug logs again (as before) and post the results.

Thanks again

simongadd commented 3 years ago

Got it

[Log] reportmap._getWindowPath (desktop_all.min.js, line 5) [Log] Friendly URL detected – "https://.adb.eu-frankfurt-1.oraclecloudapps.com/ords/r/hms_fire/m%C3%A6labor%C3%B0inu/brunavarnar%C3%A1%C3%A6tlanir" (desktop_all.min.js, line 5) [Log] path – "https://.adb.eu-frankfurt-1.oraclecloudapps.com" (desktop_all.min.js, line 5) [Log] imagePrefix – "https://.adb.eu-frankfurt-1.oraclecloudapps.com/r/hms_fire/109/files/plugin/205655411308243901/v638/images/m" (desktop_all.min.js, line 5)

On 18 Jan 2021, at 12:55, Jeffrey Kemp notifications@github.com wrote:

No problem.

The WIndowPath debug logs should be visible in the browser Console Log (not in APEX) but only when APEX debug mode is on.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jeffreykemp/jk64-plugin-reportmap/issues/142#issuecomment-762233305, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGLF3FV32O7UVUUIL2LYFBDS2QVUNANCNFSM4WHCPAPQ.

jeffreykemp commented 3 years ago

Sorry, I was expecting to see "Friendly URL detected (hosted cloud)" - not sure if it's a problem on your side or mine. Are you sure you imported the plugin? e.g. go into Shared Components / Plugins and check that the version is 1.4.2.

simongadd commented 3 years ago

Hi Jeffrey - Version is 1.4

I am yet to use the v1.4.2 patch

Will keep you posted - most likely tomorrow (your time)

BR

Simon

On 18 Jan 2021, at 14:13, Jeffrey Kemp notifications@github.com wrote:

Sorry, I was expecting to see "Friendly URL detected (hosted cloud)" - not sure if it's a problem on your side or mine. Are you sure you imported the plugin? e.g. go into Shared Components / Plugins and check that the version is 1.4.2.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jeffreykemp/jk64-plugin-reportmap/issues/142#issuecomment-762275811, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGLF3FVR5SB3NTBQNPLAHZ3S2Q6XZANCNFSM4WHCPAPQ.

simongadd commented 3 years ago

Bingo Jeffrey

V1.4.2 is working perfectly!

Many thanks

S

On 18 Jan 2021, at 13:20, Jeffrey Kemp notifications@github.com wrote:

Hi Simon,

I've made a small adjustment to try to take care of this issue. I'm not sure if it's absolutely correct for all cases (I'll have to find out more about how URLs work on the hosted cloud instance) but in your case I think this might work for now:

To try it, please download the plugin from here: https://github.com/jeffreykemp/jk64-plugin-reportmap/blob/Patch-1-4-2/region_type_plugin_com_jk64_report_google_map_r1.sql https://github.com/jeffreykemp/jk64-plugin-reportmap/blob/Patch-1-4-2/region_type_plugin_com_jk64_report_google_map_r1.sql install it in your instance and see if it takes care of the issue.

If the issue persists, please check the debug logs again (as before) and post the results.

Thanks again

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jeffreykemp/jk64-plugin-reportmap/issues/142#issuecomment-762246351, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGLF3FQ7KUH7LSI4FOODG5TS2QYQZANCNFSM4WHCPAPQ.

jeffreykemp commented 3 years ago

Thanks!

jeffreykemp commented 3 years ago

In release 1.5, a new optional application-level attribute has been added that will make this configurable (in case in future there is a new service with a URL structure my auto-detect code cannot handle).