Can location maps default to satellite view?
-
Subscribed Products:
7 responses Add a reply
-
-
Is this something I can do myself? I'm OK with hacking core code. In fact the site is quite significantly hacked, not just for Easyblog, but also JomSocial, and everything is documented so that I can manage upgrades, so if it's possible to just tell me what code to change and where, that would be my preference (though I certainly appreciate the offer).
Subscribed Products: -
Hello Mark,
The problem is actually because those javascripts are actually compressed so it wouldn't be as easy as providing you the line numbers to modify
What you can try, is to search for "google.maps.MapTypeId.ROADMAP" and replace it with "google.maps.MapTypeId.SATELLITE" without the quotes
Oh, and the file is in /components/com_easyblog/assets/js/eblog.js
-
Subscribed Products: -
-
I've just returned to this subject and it seems that in v3.5.12286 of easyblog the locations where the map type parameter is now set is media/com_easyblog/scripts/location.js.
There is also a media/com_easyblog/scripts_/location.js (note the underscore at the end of the scripts folder), which also appears to set the map type, but changing ROADMAP to SATELLITE here does not seem to have any effect.
My problem now is that I want to set the map type by individual map type. Large area maps are better displayed as roadmaps, but inside a town satellite maps are way better.
There appears to be javascript code that allows map type to be picked up from a parameter, but there is no parameter option in the module set up (using v3.5.4), or have I got that wrong?
Anyways - is this at all possible?
Subscribed Products: -
Hi,
1. scripts/ are production scripts while scripts_/ are debugging scripts. You will have to either copy the file that you've edited over from the folder scripts_/ to scripts/ to take it effect.
2. The map type is picked up from a parameter but the parameter is hardcoded in the html files currently. Hence no parameter in the module option as of now.
Your Response
Please login to reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.