By James on Wednesday, 01 March 2017
Posted in General Issues
Replies 1
Likes 0
Views 144
Votes 0
Can you tell me where I need to edit the EasySocial code to change the default zoom level of the snapshot for locations? Depeneding on the location as of now the user could be zoomed in far too much by default. This would be related to the display on the stream during a checkin as well as the address fields when viewing user, event, group and page addresses.

Thanks,
James
Hey James,

You can modify on following files :

JoomlaFolder/media/com_easysocial/scripts/vendors/gmaps.js

// LINE 1615
if (!options.zoom){
options.zoom = 15;
}


JoomlaFolder/media/com_easysocial/scripts/site/locations/popbox.js (location pop-up)

// LINE 14
url = "//maps.googleapis.com/maps/api/staticmap?key=" + apiKey + "&size=400x200&sensor=true&zoom=15¢er=" + lat + "," + lng + "&markers=" + lat + "," + lng + "&language=" + language;


After you modified, you have to temporary turn on the development mode from your backend > easysocial > setting > general > system , and check whether that zoom value is it show correct as what you modified.

If yes, you have to manually recompile it on your site in order to update on the compiled js file when you switch back to production mode.

http://yoursite.com/index.php?option=com_easysocial&compile=1&minify=1

Note : You need to login as Superadmin on frontpage before you run this compile URL.
·
Wednesday, 01 March 2017 11:08
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post