WordPress.org

Support

Support » Plugins and Hacks » Pronamic Google Maps » [Resolved] ZOOM not valid

[Resolved] 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
    initialize

    I 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,

    )
    );
    }

    http://wordpress.org/extend/plugins/pronamic-google-maps/

Viewing 1 replies (of 1 total)
  • Hey guys I saw the stupid mistake…

    I forgot to convert the string to interger.. I mean I just forgot write this :

    ‘zoom’ => intval($zoom_)

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] ZOOM not valid’ is closed to new replies.
Skip to toolbar