• Where is the map settings page? We’ve tried network activating and single site activating, but no settings page appears. I’m on WP 5.0.2.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Andrew Taylor

    (@andrewtaylor-1)

    @mrpritchett what setting(s) are you attempting to change? The only global plugin setting is the Google Maps API key, which is required to avoid rate limiting. It is managed in the editor, not in a traditional plugin settings page.

    After activating the plugin the first time you insert a map block you will be prompted for an API key. Once an API key is saved, which can only be done by a site admin, the map blocks can be used.

    All other settings, such as location/address, zoom level, etc., are per block settings and not global settings. Those can be customized in the block settings in the editor for each map block.

    Ah, I see. One request. If the API key is set in a const in wp-config, can the interface to add an API key go away? We’re gonna hide it with CSS for now, but we would like it to be automagic if possible. Thanks!

    Plugin Author Andrew Taylor

    (@andrewtaylor-1)

    @mrpritchett are you referring to the API key field in the block settings sidebar? I think making it read-only with a message that the constant is defined would be an improvement.

    If that would work for you I’ll open an issue on GitHub and work it into the next release.

    Yes. That would work for a majority of people most likely. For us, we’re gonna need to hide it completely. I propose that you implement the solution you mentioned above and also add a class to the div wrapping all of the controls (or some place up the tree) that allows for better targeting of the controls via JS or CSS, if that works for you guys!

    Plugin Author Andrew Taylor

    (@andrewtaylor-1)

    @mrpritchett I just released version 1.5.2, which addresses this by hiding the API key input section in the map block settings when the Google Map API key is defined with the GOOGLE_MAPS_API_KEY constant.

    Additionally, I added the api-key-input-container class to the div surrounding the API key input field in the map block settings for easier styling.

    Please test version 1.5.2 and let me know if it resolves your issue.

    @andrewtaylor-1 Thank you so much! I’ve sent this to our team and we’ll be testing it today or tomorrow. The responsiveness to input is definitely something that you guys should be proud of!

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