geolocation settings
-
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)?
-
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?
PeterUnfortunately not. The behavior of the map remains the same.
I try to understand if I’m wrong something …
ThanksIs your publication available on a public url? Maybe I can help…
Thanks,
Peterhttps://farnese.org/i-siti-farnesiani/
i need to show table makers only.
Thank you veru muchHi 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,
PeterThe 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.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,
PeterThanks 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 youYou 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,
PeterWith 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
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_featuresThanks,
PeterExact.
If I could use these settings I could harness the full power of Google Maps along with the power of the plugin.Oke, let me have a look at this! π I’ll let you know…
–
- The topic ‘geolocation settings’ is closed to new replies.