G’day valteraguiar,
Looking at your shortcode above, I can see that the quotes around the values for center and zoom are “fancy quotes”, not the regular double quotes – " – which is why you’re getting a failed map. Replace those fancy quotes.
Secondly, when you specify a centre for the map, it doesn’t load the KML file. Currently, the plugin is either/or — centre or KML. I had another request for both, [here’s how we solved it](http://ww.wp.xz.cn/support/topic/using-kml-and-center-tag-together). For your case, you’d either want to have a different KML map for each, or add a marker when you set center.
cheers,
Ross
Dear Ross, good afternoon…
Many thanks for your reply.
Might the link below provide a solution to allow “centre and KML” for the plugin?
http://stackoverflow.com/questions/8187837/google-maps-zoom-gets-overriden-when-using-a-kml-file
Many thanks!
Valter.
G’day Valter,
The plugin already does something similar for setting the zoom on a KML map. What I need to do is change the logic that looks at the shortcode attributes, and allow both centre and KML; currently it’s either one or the other. Maybe next version 🙂
cheers,
Ross
Will be anxiously awaiting, Ross.
If you visit a page on my site, e. g. http://www.parquesepracasdecuritiba.com.br/parques/bosque-alemao.html, you will have a better idea of what I need. I have a large Google Map with all the markers on it, and on which page of the site I include a zoomed map, centered to the park or place to which the page refers, and all the markers from the KML file (sometimes, two KML files).
I have used the Inline Google Maps plugin, which worked very well until somewhere mid-November. Perhaps Google has changed something, the maps no longer fit and it also interferes with the other plugin I use to include Street View images.
Having no Java/PHP/code etc. knowledge, I still look for a solution for over a month now, accepting any suggestions…
Many thanks!
Valter.
G’day Valter,
Some time in 2014, I’ll modify the plugin to allow centring a KML map; it’ll need a change in the current logic of the plugin, which I’ll want to test well — not right now, too much other work on.
In the meantime, download the plugin from this gist and save into your plugins folder, then activate. You can then add a shortcode to a post/page specifying the ID for the map as kml_centred, and add a custom field to the post/page called flxmap-centre with the centre coordinates. e.g.
[flexiblemap id="kml_centred" src="http://goo.gl/pDG8hl" width="100%" zoom="10" maptype="satellite"]
Add that to a post/page and set a custom field flxmap-centre to -25.470282,-49.280971 and the map will be zoomed and centred.
cheers and Happy New Year
Ross
Good morning, Ross.
I may have found a solution shortly before reading your last reply with the plugin Iframe.
That plugin creates an iframe out of a shortcode included in each page. I have installed it and copied the URL supplied by Google Maps (used to embed the map on a Web page).
It worked! Now I am going to make further tests (e. g. check its compatibility with the Street View plugin I also use etc.), but it seems it should work well, at least until you are able to modify the Flexible Map plugin.
I will keep your plugin installed to check further in the future, and thank you very much once again for your kind support.
Happy 2014!
Valter.