Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • OAM Friend
    #206448

    I`m trying to change the map`s center position in order to my market became visible on screen. Now it get`s under the location information box.

    I tried to include the following code center='{lat: -23.635665, lng: -46.8723410}’ , but it changed nothing.

    {jamap mode='normal' locations='{"location":{"0":"Obreiros do Amor e Miseric?rdia"},"latitude":{"0":"-23.6360086"},"longitude":{"0":"-46.8809015"},"info":{"0":"Venha visitar a Obreiros do Amor e Miseric?rdia!!!"}}' maptype='normal' center='{lat: -23.635665, lng: -46.8723410}' zoom='15' maptype_control_display='1' maptype_control_style='drop_down' maptype_control_position='TR' toolbar_control_display='1' toolbar_control_style='default' toolbar_control_position='TL' disable_scrollwheelzoom='1' display_scale='0' display_overview='0' sensor='0' }{/jamap}

    How it`s:

    How I want:


    1. Captura-de-Tela-2015-05-19-s-00.11.40
    2. Captura-de-Tela-2015-05-19-s-00.12.49
    Luna Garden Moderator
    #571316

    Hi,

    In order to change the map’s center position to center='{lat: -23.635665, lng: -46.8723410}’, you can try this way:
    go to file: pluginssystemjagooglemapassetsscript.js
    find for

    objMap.setCenter(point);
    in line 285
    change to:

    objMap.setCenter({lat: -23.635665, lng: -46.8723410});

    OAM Friend
    #571606

    Thanks. It worked fine.

    Dou you plan to have it as an user configurable item? I tried to edit scrip.js to read an jmap configuration string, that i called map_center='{latitude, longitude’, but my java scrip programming skills prevented me.:-[

    Luna Garden Moderator
    #571946

    Hi,

    You can try this:

    var latvalue = lat_value;
    var lngvalue = lngvalue;
    objMap.setCenter({lat: latvalue, lng:lngvalue });

    Put each value of position.
    <blockquote>Dou you plan to have it as an user configurable item?</blockquote>
    Nope, we don’t. By default, the target will be in the center of the Map, so we think it’s unnecessary to add this feature.

Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 4 replies, has 2 voices, and was last updated by  Luna Garden 9 years, 6 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum