ZOOM not valid
-
Hi,
I got a problem with pronamic_google_maps_mashup, My browser showed up the error, which is described like this:
Uncaught Error: Invalid Value to this property <zoom>: main.js:26
(anonymous function) main.js:26
J.setValues main.js:24
yh main.js:34
methods.buildMashup site.js:93
(anonymous function) site.js:176
v.extend.each jquery.js:2
v.fn.v.each jquery.js:2
$.fn.pronamicGoogleMapsMashup site.js:175
initializeI will leave you guys my code, I hope your prompt help
if(function_exists(‘pronamic_google_maps_mashup’)) {
$map_type_ = get_post_meta($post->ID, ‘_pronamic_google_maps_map_type’, true);
$zoom_ = get_post_meta($post->ID, ‘_pronamic_google_maps_zoom’, true);
$latitude_ = get_post_meta($post->ID, ‘_pronamic_google_maps_latitude’, true);
$longitude_ = get_post_meta($post->ID, ‘_pronamic_google_maps_longitude’, true);
pronamic_google_maps_mashup(
array(
‘post_type’ => $post_type
) ,
array(
‘width’ => 620 ,
‘height’ => 500 ,
‘map_type_id’ => $map_type_ ,
‘latitude’ => $latitude_ ,
‘longitude’ => $longitude_ ,
‘zoom’ => $zoom_ ,
‘marker_options’ => array(
‘icon’ => ‘https://google-maps-icons.googlecode.com/files/home.png’
) ,
‘fit_bounds’ => false,)
);
}
The topic ‘ZOOM not valid’ is closed to new replies.