WordPress.org

Ready to get started?Download WordPress

Forums

Pronamic Google Maps
[resolved] ZOOM not valid (2 posts)

  1. romybompart
    Member
    Posted 1 year ago #

    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/

  2. romybompart
    Member
    Posted 1 year ago #

    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_)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic