Title: Zoom problems when adding via API
Last modified: August 22, 2016

---

# Zoom problems when adding via API

 *  Resolved [stevenkellow](https://wordpress.org/support/users/stevenkellow/)
 * (@stevenkellow)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/zoom-problems-when-adding-via-api/)
 * Hi there,
 * When I add a marker via an API request although the marker is created as expected,
   when the map is displayed it appears at first as a blank at zoom level 11. Trying
   to zoom in actually zooms out, and the map appears at zoom level 8 – although
   that is not very detailed at all – and now zooming in does nothing.
 * Any ideas?
 * Thanks in advance.
 * [https://wordpress.org/plugins/leaflet-maps-marker/](https://wordpress.org/plugins/leaflet-maps-marker/)

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

 *  Plugin Author [Robert Seyfriedsberger](https://wordpress.org/support/users/harmr/)
 * (@harmr)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/zoom-problems-when-adding-via-api/#post-5474644)
 * Not sure if this issue has to do with API creation. is the marker showing correctly
   on backend? Please also follow the steps from mapsmarker.com/readme-first to 
   exclude other possible and likely reasons for this issue, like plugin conflicts…
 *  Thread Starter [stevenkellow](https://wordpress.org/support/users/stevenkellow/)
 * (@stevenkellow)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/zoom-problems-when-adding-via-api/#post-5474674)
 * The problem is occuring on both the back-end and front-end I’m afraid.
 * Markers appear fine if I create them as new from within the menus, but when calling
   them via the API the zoom issue appears.
 * I’ve tried deactivating plugins, and am running on the TwentyFourteen theme so
   not quite sure that anything will be affecting it I’m afraid.
 *  Plugin Author [Robert Seyfriedsberger](https://wordpress.org/support/users/harmr/)
 * (@harmr)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/zoom-problems-when-adding-via-api/#post-5474690)
 * What do you mean by calling via API?
 *  Thread Starter [stevenkellow](https://wordpress.org/support/users/stevenkellow/)
 * (@stevenkellow)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/zoom-problems-when-adding-via-api/#post-5474763)
 * Using this sort of URL:
 * [http://](https://wordpress.org/support/topic/zoom-problems-when-adding-via-api/?output_format=md){
   mysite}/wp-content/plugins/leaflet-maps-marker/leaflet-api.php?key={key}&signature
   ={signature}&expires={expiry}&action=add&type=marker&markername=Aberdeen&geocode
   =Aberdeen
 *  Plugin Author [Robert Seyfriedsberger](https://wordpress.org/support/users/harmr/)
 * (@harmr)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/zoom-problems-when-adding-via-api/#post-5474780)
 * sorry, still do not fully understand your issue – can you please post a link 
   to your map?
 *  Thread Starter [stevenkellow](https://wordpress.org/support/users/stevenkellow/)
 * (@stevenkellow)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/zoom-problems-when-adding-via-api/#post-5474813)
 * Yeah no problem, here it is: [http://blairgowrie.stevenkellow.com/sample-page/](http://blairgowrie.stevenkellow.com/sample-page/)
 *  Plugin Author [Robert Seyfriedsberger](https://wordpress.org/support/users/harmr/)
 * (@harmr)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/zoom-problems-when-adding-via-api/#post-5474872)
 * you also embedded mapbox javascript + css in your theme – try disabling them 
   to see if this is the issue, which is rather likely…
 *  Thread Starter [stevenkellow](https://wordpress.org/support/users/stevenkellow/)
 * (@stevenkellow)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/zoom-problems-when-adding-via-api/#post-5474874)
 * Sorry, forgot to remove them. The problem still exists I’m afriad, although the
   + and – icons for zooming do appear now but are not functional.
 *  Plugin Author [Robert Seyfriedsberger](https://wordpress.org/support/users/harmr/)
 * (@harmr)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/zoom-problems-when-adding-via-api/#post-5474876)
 * strange – perhaps some theme conflict; try switching to twentytwelve and if it
   works, try to find out which css from your theme is causing this
 *  Thread Starter [stevenkellow](https://wordpress.org/support/users/stevenkellow/)
 * (@stevenkellow)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/zoom-problems-when-adding-via-api/#post-5474877)
 * I’m afraid I’m getting the same results for the TwentyTwelve and TwentyThirteen
   themes. The issue also appears in the Admin area in WordPress when editing the
   marker’s attributes.
 *  Plugin Author [Robert Seyfriedsberger](https://wordpress.org/support/users/harmr/)
 * (@harmr)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/zoom-problems-when-adding-via-api/#post-5474881)
 * puh, I am running out of ideas. Perhaps some files got corrupted on upload, try
   manually overwritting the plugin files on your server with the current package.
   Another idea would be to try the pro version 😉
 *  Thread Starter [stevenkellow](https://wordpress.org/support/users/stevenkellow/)
 * (@stevenkellow)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/zoom-problems-when-adding-via-api/#post-5474884)
 * Tried overwriting things and still not working. Might consider the pro version
   to see if it works!
 *  Thread Starter [stevenkellow](https://wordpress.org/support/users/stevenkellow/)
 * (@stevenkellow)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/zoom-problems-when-adding-via-api/#post-5474942)
 * Managed to fix the problem!
 * I was using the Mapbox style of maps, and the maximum zoom level was defaulted
   to 8. Changed this up now to 15. I also hadn’t entered a username and map, which
   is needed to make things work. Did this and things are now appearing as expected.
 * Thanks for your help, as I said above it’s a great plugin!
 *  Plugin Author [Robert Seyfriedsberger](https://wordpress.org/support/users/harmr/)
 * (@harmr)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/zoom-problems-when-adding-via-api/#post-5474943)
 * You’re welcome!
    PS: I’d appreciate your review at [https://wordpress.org/support/view/plugin-reviews/leaflet-maps-marker](https://wordpress.org/support/view/plugin-reviews/leaflet-maps-marker)
   😉

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

The topic ‘Zoom problems when adding via API’ is closed to new replies.

 * ![](https://ps.w.org/leaflet-maps-marker/assets/icon.svg?rev=970936)
 * [Leaflet Maps Marker (Google Maps, OpenStreetMap, Bing Maps)](https://wordpress.org/plugins/leaflet-maps-marker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/leaflet-maps-marker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/leaflet-maps-marker/)
 * [Active Topics](https://wordpress.org/support/plugin/leaflet-maps-marker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/leaflet-maps-marker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/leaflet-maps-marker/reviews/)

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)
 * [map](https://wordpress.org/support/topic-tag/map/)
 * [zoom](https://wordpress.org/support/topic-tag/zoom/)

 * 14 replies
 * 2 participants
 * Last reply from: [Robert Seyfriedsberger](https://wordpress.org/support/users/harmr/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/zoom-problems-when-adding-via-api/#post-5474943)
 * Status: resolved