Support » Plugin: WP Data Access » geolocation settings

  • Resolved alessandro100318

    (@alessandro100318)


    is it possible to use the “table options” in the “Data publisher” to set the google map styles (for example to hide the default icons)?

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author Peter Schulz

    (@peterschulznl)

    Hi Alessandro,

    You can style map element with CSS. Please add the following CSS to your page to hide the icons added to the publication table:

    .wpda_geo_map_marker {
    	background: none !important;
    }
    .wpda_geo_map_marker_link {
    	display: none !important;
    }

    Does this answer your question?
    Peter

    Thread Starter alessandro100318

    (@alessandro100318)

    Unfortunately not. The behavior of the map remains the same.
    I try to understand if I’m wrong something …
    Thanks

    Plugin Author Peter Schulz

    (@peterschulznl)

    Is your publication available on a public url? Maybe I can help…

    Thanks,
    Peter

    Thread Starter alessandro100318

    (@alessandro100318)

    https://farnese.org/i-siti-farnesiani/
    i need to show table makers only.
    Thank you veru much

    Plugin Author Peter Schulz

    (@peterschulznl)

    Hi Alessandro,

    Sorry, I don’t understand your question. I can see your map and markers are displayed correctly but the markers in your table are hidden. What is your goal? What should your table and map look like when it is ready?

    Thanks,
    Peter

    Thread Starter alessandro100318

    (@alessandro100318)

    The css you sent me modifies the behavior of the table by hiding the marker; now I have eliminated it.
    Actually I would like to modify the map () not the tabele) by hiding all the default google markers (like poi.business) that are not present in the table.

    Plugin Author Peter Schulz

    (@peterschulznl)

    Hi Alessandro,

    The markers shown in the table match with the markers on the map. You can check that by clicking each marker. Some markers are very close to each other and some markers seem to appear multiple times in the table. Can you change your query to hide double markers? That would be a more convenient way to solve this issue I think. The plugin just adds a marker for each location in the table.

    Best regards,
    Peter

    Thread Starter alessandro100318

    (@alessandro100318)

    Thanks for the advice.
    By changing the query I can certainly solve the problem, but this depends on the customer and how he wants to view the data; as soon as they have decided I will intervene in this sense.
    There remains the problem of customizing the Google map: wouldn’t it be useful to insert Google JSON style declaration in the table options that already have similar settings?
    thank you

    Plugin Author Peter Schulz

    (@peterschulznl)

    You can customize your map in Data Explorer > Geolocation Settings. The map data is dynamically generated from the publication table and cannot be changed.

    Am I missing something? What exactly do you want to change?

    Thanks,
    Peter

    Thread Starter alessandro100318

    (@alessandro100318)

    With Data Explorer> Geolocation Settings you can set the map and view the places in the table on the Google map.
    The result is that in addition to the markers in the table, Google markers such as (restaurants, hairdressers, etc.) are also displayed.
    My need is to hide the Google default markers and I thought you could use JSON style declaration, inserted in the table options or something like that, to customize the final map with Google functions in addition to those of the plugin.
    The alternative is to write a specific function which, however, complicates things for the management of plugin updates.
    Thanks for your attention
    Plugin Author Peter Schulz

    (@peterschulznl)

    Thanks for your explanation! Just to make sure, is this what you are looking for:
    https://developers.google.com/maps/documentation/javascript/styling#specifying_styles_to_features

    Thanks,
    Peter

    Thread Starter alessandro100318

    (@alessandro100318)

    Exact.
    If I could use these settings I could harness the full power of Google Maps along with the power of the plugin.

    Plugin Author Peter Schulz

    (@peterschulznl)

    Oke, let me have a look at this! 👍 I’ll let you know…

    Thread Starter alessandro100318

    (@alessandro100318)

Viewing 14 replies - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.