Support » Plugin: Connections Business Directory » Maps did not show

  • Resolved mustermann

    (@mustermann)


    Hi,
    I have bought the Connection template “cMap” an I have customized it. You can see the result after I had customized:
    http://oldtimer-veranstaltung.de/service/gastronomie-verzeichnis-touren-reisen/

    If I click on “Straßenkarte schließen” a window is opended without a Google Map. I have customized the template –> Map –> enabled.
    What shall I do to get a map for each entry for the adress.

    I think the connection between zip-code, street and village did not work. How can I fix it?

    I need a solution for the pulldown-box above the first entry. It is to short when I open it. For example the name “Nordrhein-Westfalen” is broken and shown in two lines.

    Thank you for help.
    mustermann

    https://wordpress.org/plugins/connections/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter mustermann

    (@mustermann)

    Hi,

    I found the right map with the adress in each entry. The cMap-Template works in the admin and not in the frontend.

    Thanks for help
    mustermann

    Thread Starter mustermann

    (@mustermann)

    Hi,

    a have the Wp plugin “MapPress Easy Google Maps” on the same site. Here is an example:
    http://oldtimer-veranstaltung.de/service/ausgewaehlte-oldtimer-haendler-in-england/

    The Maps there are working. I have deactive “MapPress Easy Google Maps” and your cMap-template did not work after deactivate.

    Thanks for help
    mustermann

    Plugin Author Steven

    (@shazahm1hotmailcom)

    @ mustermann

    First, I have to mention providing support on the wp.org supoprt forums for commercial product is not permitted. You should open support tickets here:

    http://connections-pro.com/support/

    The map is not working because the Google Maps API option is disabled on the Connections : Settings admin page under the Advanced tab. Please try reenabling it.

    If that does not work…

    The exclude the javascript files for the template from Autoptimize. All the right scripts are on the page, just in the wrong order because of how Autoptimize works.

    The category drop down is narrow because of the theme. Normally I could give you a some CSS that would fix it but because the CSS files are being “autoptimized” I am unable to determine what the fix would be. Sorry. If you deactivate it, I’ll take another look.

    Hope that helps!

    shazam1; you can disable AO on a per-request basis by adding ?ao_noptimize=1 to the URL. that way you can check out the CSS-issue immediately 🙂

    kind regards,
    frank (ao dev)

    Thread Starter mustermann

    (@mustermann)

    Hi Frank,
    Hi shazahm1,
    first thank you for help. I will give you some answers about the solution which you suggested:

    1) Google Maps API option was enabled in the settings admin page under the advanced tab.

    2) After I have disabled the WP plugin autooptimize the maps were seen. Here is an example: http://oldtimer-veranstaltung.de/service/gastronomie-verzeichnis-touren-reisen/

    3) Than I have put “AO” in the field to exclude scripts for automoptimize and it did not work.

    My question is now:
    Which entry is necessary in the wp plugin autoptimize to exclude the script “…”.

    … or shazahm1 changed the URL “?ao_noptimize=1” and send me a test version from cMap?

    Thank you both for help.
    mustermann

    Plugin Author Steven

    (@shazahm1hotmailcom)

    @ mustermann

    First, I was able to identify the CSS issue with the category drop down. Please download cMap again from your purchase history. Deactivate the current version and then install the newly downloaded version. You might have to force refresh your browser and server cache in order for the updated CSS file to be used.

    Back to the map…

    Adding “?ao_noptimize=1” to the map link will not fix the issue because that is way too late to have any effect on Autoptimize. So that is not a solution.

    I have never used Autoptimize so I can not tell you how to set it up to exclude scripts Maybe Frank can help with that.

    Now, I can tell you what the issue is. Scripts often need to be loaded in a specific order, this is called dependencies. This is something that WordPress manages. The dependency order is something I think Autoptimize respects when minifying scripts, but I am not certain, Frank would have to confirm. What is happening or seems to be happening when Autoptimize is enabled is that the scripts for cMap is not loaded in the correct order, I think. I say this because there error being reported by the browser is that the script in cMap that renders the map is failing because the Google Maps API is not being loaded before the cMap script. This is the order the scripts need to be loaded for cMap:

    http://maps.googleapis.com/maps/api/js?libraries=geometry&sensor=false
    http://oldtimer-veranstaltung.de/service/wp-content/plugins/connections/vendor/chosen/chosen.jquery.min.js
    http://oldtimer-veranstaltung.de/service/wp-content/plugins/connections/vendor/jquery-gomap/jquery.gomap-1.3.2.min.js
    http://oldtimer-veranstaltung.de/service/wp-content/plugins/connections-cmap/cmap.min.js

    If Autoptimize an option to all a specific an order, i suggest trying that.

    If all else fails… if Autoptimize has a settings to deactivate per page, set it up so it is not run on this page.

    I did test Connections and cMap with Autoptimize and it works fine for me So there must be something unique to your setup that is breaking it. As Frank can tell you, all to often when scripts are minimized and concatenated can lead to issues because not all plugins scripts are, for a lack of a better term, compatible. The script for both cMap and Connections should always just working in this type of setup.

    Hope that helps.

    Thread Starter mustermann

    (@mustermann)

    Hi shazahm1,

    thank you for your long explantions.

    I have deactivate “Connections cMap – Template” and I went to my “purchase history”, download cMap.zip and installed it over the WP plugin installer.

    The new “Connections cMap – Template” has the same version # as the old one version 5.0. Did I have realy a new version?

    After delete browser cache I have the same result:

    http://oldtimer-veranstaltung.de/service/gastronomie-verzeichnis-touren-reisen/

    Cann ´t delete server cache at my provider. “Autoptimize” is deactivated! The cache from plugin “cachify” is deleted.

    Thanks for help
    mustermann

    Thread Starter mustermann

    (@mustermann)

    Hi shazahm1,

    I had make a mistake at upload the files with cMap.

    Now it works without “Autoptimize”. Please have a look:
    http://oldtimer-veranstaltung.de/service/gastronomie-verzeichnis-touren-reisen/

    Thank you for help.

    Plugin Author Steven

    (@shazahm1hotmailcom)

    @ mustermann

    The version of cMap is not changed as I wanted to get this done quickly for you. In a week or two I’ll probably push out an official update.

    The new version did fix the issue, I verified by force refreshing my browser cache and checking your page. The category drop down is wider now and the category names are not line wrapping. If you are not seeing it, it is because the browser is still loading the old version of the cMap CSS file. You can also verify it by visiting the page in private mode.

    Thread Starter mustermann

    (@mustermann)

    Hi shazahm1,

    the category drop down is wider now and the category names are not line wrapping.

    Thank you for help.

    I have opended a post for Frank to get a solution for autopimized:

    https://wordpress.org/support/topic/the-know-problem-with-connections-cmap-template?replies=1#post-7387344

    mustermann

    Thread Starter mustermann

    (@mustermann)

    Hi shazam1,
    Frank from the plugin autoptimize had the solution:

    https://wordpress.org/support/topic/the-know-problem-with-connections-cmap-template?replies=1#post-7387344

    I try all stated scripts and the result is “maps.googleapis.com”.

    After excluded it the maps are working now. Here you can see the results:
    http://oldtimer-veranstaltung.de/service/gastronomie-verzeichnis-touren-reisen/

    It works in Firefox, Safari and Chrome.

    Thank you for help
    mustermann

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Maps did not show’ is closed to new replies.