November 5, 2018 at 5:50 am #18049
On old sites, where the plugin was not updated, I used mashup with “zoom, center_lng, center_lat” now they do not work (after plugin update) how to fix it? I really need this feature.
Maybe I can do it with php?
[mashup query=”posts_per_page=-1&category_name=catname” zoom=”14″ center_lat=”50.08703″ center_lng=”14.417501″ width=”100%” height=”400″]November 5, 2018 at 5:51 am #18051
I’m not sure if this is the problem, but the syntax changed slightly many versions ago. Center is now specified as “lat,lng”, for example:
[mashup center=”50, 14″]November 6, 2018 at 6:47 am #18053
After 2.50.9 zoom is working perfect! Thanks. And what about center? I still have blank map with [mashup center=”50, 14″]November 6, 2018 at 6:50 am #18055
The centering was a bug that seems to occur only when using google, and a mashup, and specifying the center. It should be fixed in 2.50.10.
– for the center parameter you can use lat,lng or a place or address, e.g. center=”New York”
– if using Google, you can specify a country, e.g. “USA”
– Leaflet can’t geocode countries, so to center on a country using Leaflet, use lat,lng and a zoom insteadNovember 6, 2018 at 7:11 am #18056
Can you give me hot patch fix here, what to replace in php code?center=”New York” works well, but not for my needs.
It is important for me to center a specific part of the city, such as a metro station and attractions around this station.November 6, 2018 at 7:12 am #18057
I’m not sure what you want fixed?
You can use center=”lat,lng”, center=”address” or center=”place”. To center on a metro station, use a street address or lat,lng.November 8, 2018 at 6:19 am #18058November 8, 2018 at 6:20 am #18062
Center and zoom works separately. But do not work together.
[mashup center=”50.08703,14.43088″ zoom=”12″] (center only)
Is it possible to stabilize the operation of these parameters?November 9, 2018 at 5:23 am #18063
Just to be clear: center/zoom for mashups was removed many versions ago, and a lot has changed since then. Adding it back requires new development, not just a patch or a bug fix.
I think I have it working, but I’d like to test it before it’s published. Could you please use the contact form to send me an email with your blog URL and an admin login? That way I can install the latest version for you to test.
- You must be logged in to reply to this topic.