Okay
  Public Ticket #2266432
Adding a Map in the Master Detail Page
Closed

Comments

  • Alex started the conversation

    I would like to be able to include a map in my Master-Detail Table from the GPS Coordinates that are in my Data table.  I am able to use the %geolocation% to insert the coordinates into a google Map Link but I can not get them to go into a google map to be displayed on the form.  This would be a useful feature for a number of different users.

  •  2,498
    Aleksandar replied

    Hello ahinerfeld

    Unfortunately, at the moment Google Maps plugin's shortcodes don't work very well with wpDataTables. The shortcode itself looks simple, but when pasted into a cell, it comes out like this:

    <div id="wpgmza_map" data-settings='{"id":"1","map_title":"DALEX Shipping Co, SA Offices","map_width":"100","map_height":"200","map_start_lat":"37.939287","map_start_lng":"23.661594","map_start_location":"37.939287,23.661594000000036","map_start_zoom":"2","default_marker":"0","type":"1","alignment":"1","directions_enabled":"1","styling_enabled":"0","styling_json":"","active":"0","kml":"","bicycle":"2","traffic":"2","dbox":"1","dbox_width":"100","listmarkers":"0","listmarkers_advanced":"0","filterbycat":"0","ugm_enabled":"0","ugm_category_enabled":"0","fusion":"","map_width_type":"\%","map_height_type":"px","mass_marker_support":"1","ugm_access":"0","order_markers_by":"1","order_markers_choice":"2","show_user_location":"0","default_to":"","other_settings":{"store_locator_enabled":2,"store_locator_distance":2,"store_locator_default_radius":10,"store_locator_not_found_message":"No results found in this location. Please try again.","store_locator_bounce":1,"store_locator_query_string":"ZIP / Address:","store_locator_default_address":"","wpgmza_store_locator_restrict":"","wpgmza_store_locator_radius_style":"modern","map_max_zoom":"1","transport_layer":2,"wpgmza_theme_data":"[{"featureType": "administrative","elementType": "labels.text.fill","stylers": [{"color": "#444444"}]},{"featureType": "landscape","elementType": "all","stylers": [{"color": "#f2f2f2"}]},{"featureType": "poi","elementType": "all","stylers": [{"visibility": "off"}]},{"featureType": "road","elementType": "all","stylers": [{"saturation": -100},{"lightness": 45}]},{"featureType": "road.highway","elementType": "all","stylers": [{"visibility": "simplified"}]},{"featureType": "road.arterial","elementType": "labels.icon","stylers": [{"visibility": "off"}]},{"featureType": "transit","elementType": "all","stylers": [{"visibility": "off"}]},{"featureType": "water","elementType": "all","stylers": [{"color": "#46bcec"},{"visibility": "on"}]}]","wpgmza_show_points_of_interest":0,"wpgmza_auto_night":0}}' data-shortcode-attributes='{"id":"1"}' style="display:block; overflow:auto; width:100%; height:200px; float:left;"></div>


    That's something wpDataTables probably won't be able to recognize. I played around with width and height, and it does respond to that, but pulling all this info as an HTML element is next to impossible. Since it's saving this in the database, simple "String" type column, with one line edit is not going to work, because it's saved as VARCHAR with character limit set to 255 in the database, so I created a new table, where I defined column's type as Multi-Line, which saves it as TEXT in the database, but that still didn't help.

    I already checked with our developers, but unfortunately we couldn't find a way to make it work.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  • Alex replied

    Thank you for looking in to this request for me.  I was hoing that we could somhow incorporate the %xxxx% function of the Page/post to sucki n the raw data and display it on the page.  I was able to do that for the google maps link and it works great.  I may see if I can work with a local developer to do this for me through a custom.

  •  2,498
    Aleksandar replied

    Hi again ahinerfeld

    It may be possible with some custom work, I agree.

    Unfortunately, our developers are very busy at the moment, working on some priority tasks and fixing bugs and issues with our plugins, so they won't be having the time for custom work in near future.

    Please let me know if you find a way to integrate it.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  • Alex replied

    Just curious if you have looked into this feature.

  •  2,498
    Aleksandar replied

    Hello Alex

    Unfortunately, our developers haven't had the time to look into this yet.

    Please feel free to cast your vote on our suggest a feature page.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables