-
AuthorPosts
-
May 19, 2015 at 3:16 am #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:
-
Luna Garden Moderator
Luna Garden
- Join date:
- July 2011
- Posts:
- 2617
- Downloads:
- 80
- Uploads:
- 96
- Thanks:
- 78
- Thanked:
- 453 times in 425 posts
May 21, 2015 at 4:39 am #571316Hi,
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});
1 user says Thank You to Luna Garden for this useful post
May 25, 2015 at 1:14 am #571606Thanks. 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 ModeratorLuna Garden
- Join date:
- July 2011
- Posts:
- 2617
- Downloads:
- 80
- Uploads:
- 96
- Thanks:
- 78
- Thanked:
- 453 times in 425 posts
May 27, 2015 at 9:52 am #571946Hi,
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.1 user says Thank You to Luna Garden for this useful post
-
AuthorPosts
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, 7 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum
-