petkivim
Forum Replies Created
-
Forum: Plugins
In reply to: [Embed Google Map] I don't Have API KeyHi,
Thanks for contacting me. Embed Google Map API key is required only if you want to use the Embed Google Map API for embedding a map. The plugin works also without an API key when you use Google Maps or Google Maps Classic. Google Maps is the default value and requires no API key.
I checked your site and didn’t see any warning messages. Could you please give me an example?
Best regards,
PetteriForum: Plugins
In reply to: [Embed Google Map] How do I use an API with this plugin?Hi Mark,
Thanks for contacting me. The API key is required only if you want that the plugin uses Google Maps Embed API for showing the map – there’s no need for you to implement an API. You just need to give the address which location you want to show inside {google_map} tags.
Best regards,
PetteriForum: Plugins
In reply to: [Embed Google Map] What do I do wrong?Hi,
I was able to find a solution to your problem. It should be possible to embed your maps by using the URL from the Embed map screen of Google Maps. Please see the link below.
https://support.google.com/maps/answer/3544418?hl=en
You need to copy the URL from iframe src and place it inside {google_map} tags. For example:
{google_map}https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d2442.128392680746!2d20.973833299999995!3d52.2592135!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x471ecb9101798f63%3A0xacd9c771fe47e75!2sLudwika+Rydygiera+15%2C+Warszawa%2C+Puola!5e0!3m2!1sfi!2s!4v1427965987755{/google_map}
Best regards,
PetteriForum: Plugins
In reply to: [Embed Google Map] What do I do wrong?Hi Micha?,
I tried to embed your map on my test site and it didn’t work there either. Right now I don’t know what’s causing the problem, but as a workaround you could use the code below that should give you the desired result.
{google_map}Ludwika Rydygiera 15, Warszawa{/google_map}
Best regards,
PetteriForum: Plugins
In reply to: [Embed Google Map] Coordinates vs NameHi,
Thanks for contacting me. It’s nice to hear that you’re using my Embed Google Map plugin. In the older versions of Google Maps it was possible to define the title of the map using the info label parameter of the plugin. Unfortunately it seems that the info label parameter of the plugin isn’t supported by the current version of Google Maps. Something must have changed recently. I need to check if the current version of Google Maps provides another way of defining the title and update the plugin accordingly.
Best regards,
PetteriForum: Plugins
In reply to: [Embed Google Map] What do I do wrong?Hi Michal,
I noticed that you’ve used https://www.google.pl in the map’s address. Please try to use https://www.google.com instead:
{google_map}https://www.google.com/maps/place/Ludwika+Rydygiera+15,+Warszawa/@52.2592135,20.9738333,17z/data=!3m1!4b1!4m2!3m1!1s0x471ecb9101798f63:0xacd9c771fe47e75{/google_map}
Currently the plugin accepts only https://www.google.com address which is why https://www.google.pl is not working. This will be fixed in the version.
Best regards,
PetteriForum: Plugins
In reply to: [Embed Google Map] How do I use the plugin?Hi Mark,
The code must be placed in the page or article where you want to embed the map. Open the page/article in text editor and add the code with an address which location you want show. Save/update the page and that should do the job.
Best regards,
PetteriForum: Plugins
In reply to: [Embed Google Map] Custom icon/marker?Thank you the positive feedback. New ideas are always welcome.
You’re not the first one to request this feature. Unfortunately it’s not supported by Google Maps Iframe Embed API that my plugin is using. Google Maps JavaScript API supports custom markers and plugins using that API can easily provide this feature. The downside of the JavaScript API is that you need to obtain a Google API key to be able to use it.
Currently my plugin doesn’t support custom markers, but I will consider adding the feature in the future releases.
Best regards,
PetteriForum: Plugins
In reply to: [Embed Google Map] Adjusting Map SizeI’m not an expert of themes, so unfortunately I can’t give you any suggestions about them. I hope you’re able to find a theme that suits your needs.
Take care and best of luck.
Best regards,
PetteriForum: Plugins
In reply to: [Embed Google Map] Adjusting Map SizeHi,
Thank you for contacting me. It’s nice to hear that you’re using my Embed Google Map plugin.
The code that you’re using is correct and it seems to be an issue with the theme that you’re using. I took a quick look at the theme and on the line 1393 in the style.css file there’s a property that sets min-width to 100%. You should look for properties for iframe and try to remove everything that the has something to do with with or height. However, be cautious as it may cause some unwanted changes to the layout of your site.
Best regards,
PetteriForum: Plugins
In reply to: [Embed Google Map] Usage in TemplateHi Nikka and Borellidesigns,
New version 3.2 of Embed Google Map plugin was just released and it supports [google_map] shortcode. You can use it in templates like this:
echo do_shortcode(‘[google_map]’.$address.'[/google_map]’);
Best regards,
PetteriForum: Plugins
In reply to: [Embed Google Map] Usage in TemplateHi Nikka,
Thank you for the feedback. Support for shortcode has been hanging on my todo list for quite some time and I’m planning to implement in December, finally.
Best regards,
PetteriForum: Plugins
In reply to: [Embed Google Map] How can I change the default zoom and remove the markerHi,
Are you sure that you’re using this Embed Google Map plugin, because this plugin doesn’t contain a file called mappost.php? In addition it’s not possible to show a map without the marker. Maybe you’ve posted the question in wrong support forum.
Regards,
PetterForum: Plugins
In reply to: [Embed Google Map] GoogleMap inside a widgetHi,
The reason for the error is that there’s a semicolon missing from the end of the line that you’ve added. All you need to do is to add the missing semicolon and then it should work.
add_filter(‘widget_text’, ‘the_google_map_embedder’);
The semicolon was missing from my previous message, sorry about that.
Regards,
PetteriForum: Plugins
In reply to: [Embed Google Map] GoogleMap inside a widgetHi,
Currently the plugin cannot be used inside sidebars, but there’s an easy fix for it. You just need to add one line to the plugin file by following the steps below.
1. Login to the admin panel of your site
2. Go to Plugins -> Embed Google Map -> Edit
3. In the beginning of the file you should see the following lines (lines 13-14)// Run the function on post content prior to printing on the screen
add_filter(‘the_content’, ‘the_google_map_embedder’);4. Add the following line after the above lines
add_filter(‘widget_text’, ‘the_google_map_embedder’)
5. After step 4 you should have
// Run the function on post content prior to printing on the screen
add_filter(‘the_content’, ‘the_google_map_embedder’);
add_filter(‘widget_text’, ‘the_google_map_embedder’)6. Click Update File button.
7. The problem should be fixed.
Please let me know if this didn’t fix the problem. I’ll add the support for sidebars to the next release.
Regards,
Petteri