Title: Testing&#8230; sometimes it does not work
Last modified: August 21, 2016

---

# Testing… sometimes it does not work

 *  Resolved [valteraguiar](https://wordpress.org/support/users/valteraguiar/)
 * (@valteraguiar)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/testing-sometimes-it-does-not-work/)
 * Hi, everyone…
 * I am testing the WP Flexible Map plugin to use it on my site. I need maps centered
   on given places, with defined zoom, and one or two KML files to extract markers.
 * Sometimes it is working correctly. Sometimes, a black window appears and Google
   Maps say there are no images for that place. Here is an example:
 * [flexiblemap src=”[http://www.parquesepracasdecuritiba.com.br/ppcuritiba.txt&#8221](http://www.parquesepracasdecuritiba.com.br/ppcuritiba.txt&#8221);
   center=”-25.409361,-49.269587” zoom=”16” maptype=”hybrid” width=”100%” height
   =”342″]
 * I am a non-technical person, so my typical question is: What am I doing wrong?
 * Also: I have not tried it yet, but it is possible to add two KML files in the
   same map? Would it work properly, and the markers from both KMLs will be shown
   on the map?
 * Thanks for your support.
 * Valter Aguiar
    [http://www.parquesepracasdecuritiba.com.br](http://www.parquesepracasdecuritiba.com.br)
 * [http://wordpress.org/plugins/wp-flexible-map/](http://wordpress.org/plugins/wp-flexible-map/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [webaware](https://wordpress.org/support/users/webaware/)
 * (@webaware)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/testing-sometimes-it-does-not-work/#post-4344797)
 * 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://wordpress.org/support/topic/using-kml-and-center-tag-together](http://wordpress.org/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
 *  Thread Starter [valteraguiar](https://wordpress.org/support/users/valteraguiar/)
 * (@valteraguiar)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/testing-sometimes-it-does-not-work/#post-4345023)
 * 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](http://stackoverflow.com/questions/8187837/google-maps-zoom-gets-overriden-when-using-a-kml-file)
 * Many thanks!
    Valter.
 *  Plugin Author [webaware](https://wordpress.org/support/users/webaware/)
 * (@webaware)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/testing-sometimes-it-does-not-work/#post-4345024)
 * 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
 *  Thread Starter [valteraguiar](https://wordpress.org/support/users/valteraguiar/)
 * (@valteraguiar)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/testing-sometimes-it-does-not-work/#post-4345025)
 * Will be anxiously awaiting, Ross.
 * If you visit a page on my site, e. g. [http://www.parquesepracasdecuritiba.com.br/parques/bosque-alemao.html](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.
 *  Plugin Author [webaware](https://wordpress.org/support/users/webaware/)
 * (@webaware)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/testing-sometimes-it-does-not-work/#post-4345027)
 * 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](https://gist.github.com/webaware/8157590)
   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](http://www.youtube.com/watch?v=msUjikwkEAw)`
   flxmap-centre` to `-25.470282,-49.280971` and the map will be zoomed and centred.
 * cheers and Happy New Year
    Ross
 *  Thread Starter [valteraguiar](https://wordpress.org/support/users/valteraguiar/)
 * (@valteraguiar)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/testing-sometimes-it-does-not-work/#post-4345028)
 * 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.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Testing… sometimes it does not work’ is closed to new replies.

 * ![](https://ps.w.org/wp-flexible-map/assets/icon-256x256.png?rev=2590627)
 * [Flexible Map](https://wordpress.org/plugins/wp-flexible-map/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-flexible-map/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-flexible-map/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-flexible-map/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-flexible-map/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-flexible-map/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [valteraguiar](https://wordpress.org/support/users/valteraguiar/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/testing-sometimes-it-does-not-work/#post-4345028)
 * Status: resolved