Title: I keep getting the same map
Last modified: June 7, 2018

---

# I keep getting the same map

 *  Resolved [tommcgee](https://wordpress.org/support/users/tommcgee/)
 * (@tommcgee)
 * [8 years ago](https://wordpress.org/support/topic/i-keep-getting-the-same-map/)
 * No matter what I put into a shortcode, I get a map centered on Halifax, Nova 
   Scotia.
 * [leaflet-map zoom=5 address=”Oslo, Norway” scrollwheel=1]
    [leaflet-map zoom=
   5 address=”carrer del duc, barcelona, spain” scrollwheel=1] [leaflet-map zoom
   =5 lat=43.65 lng=-79.385] [leaflet-map zoom=5 address=”whippany, New Jersey” 
   scrollwheel=1]
 * The one with latitude and longitude works, but even the Oslo one (which is given
   as an example in the docs) doesn’t display correctly.

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

 *  Plugin Author [bozdoz](https://wordpress.org/support/users/bozdoz/)
 * (@bozdoz)
 * [8 years ago](https://wordpress.org/support/topic/i-keep-getting-the-same-map/#post-10376290)
 * What do you get in the admin shortcode helper page? Various maps or all Halifax?
 *  Thread Starter [tommcgee](https://wordpress.org/support/users/tommcgee/)
 * (@tommcgee)
 * [8 years ago](https://wordpress.org/support/topic/i-keep-getting-the-same-map/#post-10376304)
 * Various. Calgary, Toronto, Sydney, Paris…
 * I tried embedding the Halifax one first, because it’s the example that uses an
   address.
 *  Plugin Author [bozdoz](https://wordpress.org/support/users/bozdoz/)
 * (@bozdoz)
 * [8 years ago](https://wordpress.org/support/topic/i-keep-getting-the-same-map/#post-10378770)
 * I’m really not sure what could be happening then. If you see various maps in 
   the shortcode helper page, then the shortcodes should be working properly.
 *  Thread Starter [tommcgee](https://wordpress.org/support/users/tommcgee/)
 * (@tommcgee)
 * [8 years ago](https://wordpress.org/support/topic/i-keep-getting-the-same-map/#post-10379121)
 * Now that I’m looking a little more closely, the “Ontario” example on the helper
   page actually is showing Halifax, Nova Scotia! [Here’s a screen cap…](http://tom-mcgee.com/wp-content/uploads/2018/06/Shortcode-Helper-%E2%80%B9-Tom-McGee-%E2%80%94-WordPress.jpg)
 * Ontario is the only example on the helper page that tries to use an address instead
   of latitude/longitude.
    -  This reply was modified 8 years ago by [tommcgee](https://wordpress.org/support/users/tommcgee/).
 *  Plugin Author [bozdoz](https://wordpress.org/support/users/bozdoz/)
 * (@bozdoz)
 * [8 years ago](https://wordpress.org/support/topic/i-keep-getting-the-same-map/#post-10379228)
 * Interesting. I would suggest changing your geocoder to Nominatum instead of Google.
   I will have to issue a new version to fix the use of Google’s geocoder before
   June 11th anyway. Perhaps your issue is related. Btw, you mentioned in your first
   post that lat/lng didn’t work for you (the third example). Does lat/lng work 
   for you? is it just an “address” issue (related to Google geocoder)?
 *  Thread Starter [tommcgee](https://wordpress.org/support/users/tommcgee/)
 * (@tommcgee)
 * [8 years ago](https://wordpress.org/support/topic/i-keep-getting-the-same-map/#post-10379317)
 * Actually lat/long does work. Using an address does not.
 * I’m already using Nominatum — I’m trying to move off of Google Maps altogether
   if I can.
 *  Plugin Author [bozdoz](https://wordpress.org/support/users/bozdoz/)
 * (@bozdoz)
 * [8 years ago](https://wordpress.org/support/topic/i-keep-getting-the-same-map/#post-10379810)
 * Perhaps the Nominatum geocoding service has changed. I’ll look into it! Thanks
   for the heads up!
 *  Plugin Author [bozdoz](https://wordpress.org/support/users/bozdoz/)
 * (@bozdoz)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/i-keep-getting-the-same-map/#post-10707912)
 * Should be fixed in 2.11.3!
 *  Thread Starter [tommcgee](https://wordpress.org/support/users/tommcgee/)
 * (@tommcgee)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/i-keep-getting-the-same-map/#post-10739763)
 * Much better, though the maps’ centers are still approximations. Depending on 
   the level of zoom, the city of Barcelona, for example, might be centered in the
   Mediterranean Sea. Zoom level 15 is fairly good, but anything lower drifts away
   from the actual location pretty quickly.
 * Also, adding an address (“Las Ramblas, Barcelona, Spain” or “Brook Park, Ohio,
   USA”) might give you a map in another continent.
 * But maybe this is a problem with Nominatum.
 *  Plugin Author [bozdoz](https://wordpress.org/support/users/bozdoz/)
 * (@bozdoz)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/i-keep-getting-the-same-map/#post-10739787)
 * I’ll have to look into that. I have not noticed any issues with nominatum so 
   far. What shortcodes are you using?
 * [leaflet-map address=”Barcelona”]
    [leaflet-map address=”Las Ramblas, Barcelona,
   Spain”] [leaflet-map address=”Brook Park, Ohio, USA”]
 *  Thread Starter [tommcgee](https://wordpress.org/support/users/tommcgee/)
 * (@tommcgee)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/i-keep-getting-the-same-map/#post-10739855)
 * I’m using those, but with the zoomlevel set (anywhere from 5 to 20) and the scrollwheel
   enabled (which is how I first noticed that they were off-center).
 * [leaflet-map zoom=20 address=”Brook Park, Ohio, USA” scrollwheel=1]
 * Puts me near Brook Lane in the town of Brook, Isle of Wight.
 * [leaflet-map zoom=15 address=”Barcelona, Spain” scrollwheel=1]
 * Works well enough, but
 * [leaflet-map zoom=5 address=”Oslo, Norway” scrollwheel=1]
 * Is centered well to the south/southeast of Oslo.
 *  Plugin Author [bozdoz](https://wordpress.org/support/users/bozdoz/)
 * (@bozdoz)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/i-keep-getting-the-same-map/#post-10740549)
 * could you check your CSS? Maybe your map images are being skewed with margin/
   padding settings. I just spun up a fresh site using your shortcodes, and they
   do not appear to be inaccurate. Also, in the map settings page, try clearing 
   your geocode cache (just to be sure).

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

The topic ‘I keep getting the same map’ is closed to new replies.

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

## Tags

 * [address](https://wordpress.org/support/topic-tag/address/)
 * [center](https://wordpress.org/support/topic-tag/center/)

 * 12 replies
 * 2 participants
 * Last reply from: [bozdoz](https://wordpress.org/support/users/bozdoz/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/i-keep-getting-the-same-map/#post-10740549)
 * Status: resolved