Venlee
Forum Replies Created
-
Forum: Plugins
In reply to: [Essential Real Estate] Map Zoom in way too muchI found the solution, in case anyone facing the same problem, hope below solution that works for me able to help you too.
It was this google map method “map.fitBounds();” that overrides the zoom option.
Got the clue from this post https://stackoverflow.com/questions/33839714/zoom-option-is-not-working-for-google-mapThe said method has to be removed, just look into the PHP file of where the Google map embed code place:
/ere-template/single-property/google-map-directions.phpSearch for this line of code “map.fitBounds”, removed it or comment it out.
Lastly, you need to replace it with another code method in order for the map to works correctly, else the map will stop working after you remove above code, replace it with below:
map.setCenter(bounds.getCenter());
map.setZoom(16)Just change the zoom level to the level you prefer. That’s it! Hope it helps!
Feel free to reply if you found a better solution.Works like a charm!
Thanks for the support!Haha, no 4 is funny…
I just afraid the wp upgrade will effect others plugin functionality.Thanks for the solution! i will try it out!
And appreciate the development of such great plugin – Transposh !Hi, I am using wordpress 3.4.2
thx…