Map Zoom not working
-
I noticed that the map wasn’t working properly after a couple of years of working just fine. I generated/added an API key and now the map is working again, except it’s zoomed all the way out (to the global view) – the zoom is set in the code to 11.
<?php if (rwmb_meta('my_map')) { // Display the map $map_args = array( 'type' => 'map', 'width' => '100%', 'height' => '300px', 'zoom' => 11, 'marker' => true, 'marker_title' => '', ); echo rwmb_meta( 'my_map', $map_args );
The marker on the map is in the correct place, but you have to zoom in manually.
What am I doing wrong?
(Meta Box 4.15.1 on WP 4.9.7)
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Map Zoom not working’ is closed to new replies.