Hi,
how/where can we add/modify “styles” parameter of Cornerstone Google Map?
Looking forward to hearing from you.
Best regards.
Hi,
how/where can we add/modify “styles” parameter of Cornerstone Google Map?
Looking forward to hearing from you.
Best regards.
Hello There,
Thanks for writing in!
Would you mind elaborating the question as in what kind of style changes you are looking to make in Maps element?
Thanks.
We would like to style the map as per Google Map specification: https://developers.google.com/maps/documentation/javascript/style-reference
We are not picky about the solution!
or
2) Programmatically as e.g.:
2.1) WP hook
2.2) Reference to the JS object of the Google Map for direct access to the GM functions/parameters
or
3) WP plugin as e.g.
3.1) Snazzy Maps WP plugin - currently it does not work, it’s author gave us feedback: “… it seems like they [Cornerstone] are overwriting our map styles with their own style”
3.2) …
We are fully open for ANY kind of the solution that would enable us to set JSON style declaration to the Cornerstone’s Google Map Element.
Looking forward to hearing from you.
Best regards.
Hello There,
Thank you for the clarification. Regretfully the style feature isn’t a offered by Cornerstone’s Google Map as of this time. This is something we can add to our list of feature requests. This way it can be taken into consideration for future development. It could be possible with custom development, but this would be outside the scope of support we can offer. You may wish to consult a developer to assist you with this. X is quite extensible with child themes, so there are plenty of possibilities.
Thanks for understanding. Take care!
We are developers.
Yes, WP child theme is great for that and that is exactly what we would like to do (not to modify your core plugin files). We know how to develop with child themes as this is what we are doing daily.
The problem we have is that after we checked your code there is no obvious “classical” way to adjust your code in the way that we would not need to touch your core code AND/OR not to duplicate/overrun the whole files of your source code in our child theme (that would be bad in the next plugin update).
#1
We didn’t find any WP Action/Filter hook(s) to hook on.
#2
Also as far as we checked you don’t instantiate “global” JS variable with Map object when you are creating map. So we can not “externally” hook to the Map and modify settings.
If that is not the case please provide us with variable location/name of the Map object.
Can you please direct us little bit?
We are not looking for the whole solution. We’ll do it on our own.
We are asking you just to provide ether:
A) WP Action/Filter name
OR
B) location/name of the global JS variable that is holding Google Map object
OR
C) ???.
That should be fairly easy for you as you are the developers of this great plugin.
Looking forward to hearing from you.
Best regards.
Hi there,
Thank you for writing in. That is correct, as the development strategy of Google Maps was not taking account the extendibility at the first we do not have any kind of Hook/Action to enable the reference of Google Maps code.
As my colleague suggested this can be added as a feature request which needs to change the code base completely to support what you need.
At the moment I suggest that you use alternative plugins to do so. Search for plugins that have shortcode. This way you can easily use the Raw Element in Cornerstone to add the 3rd party plugin shortcode wherever you like on the page.
Thank you for your understanding.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.