so tell me the map-init/-start lat/lng where the center should be4_seven wrote:But, if you mean any static location on map-init/-start, then you need the lat/lng of this. If you have this, i tell you how to make it.
openKaiser Orn wrote:for example 43.53262 12.019043
Code: Select all
// The init map
Code: Select all
// First position goes to admin
var init_loc_0 = 43.53262;
var init_loc_1 = 12.019043;
Code: Select all
center: new google.maps.LatLng(locations[0][0], locations[0][1]),
Code: Select all
center: new google.maps.LatLng(init_loc_0, init_loc_1),
Code: Select all
// First position goes to admin
var init_loc_0 = locations[0][0];
var init_loc_1 = locations[0][1];
Code: Select all
// First position goes to admin
// var init_loc_0 = locations[0][0];
// var init_loc_1 = locations[0][1];
Code: Select all
map.setCenter(new google.maps.LatLng(init_loc_0, init_loc_1));
Code: Select all
// Map Initial Zoom / Default: 4
$map_initial_zoom = 4;
$map_initial_zoom
value for finetuning of the viewable segment on start Code: Select all
center: new google.maps.LatLng(locations[0][0], locations[0][1]),
its from above arrayKaiser Orn wrote:I find an error in user_map.html
In fact I find this instruction before declare of variable var init_loc_0 and var init_loc_1Code: Select all
center: new google.maps.LatLng(locations[0][0], locations[0][1]),
var locations[[ array ]]
, so normally not needed. my error is the instruction for your needs and the link "user maps".SQL Error
and in further checks an OVER_QUERY_LIMIT
. But, not as before thought, as a limit of the maps service. This Error always happens on setting the location. After much test i realize, that each time you submit a profile field, if related to "change a location" or not, a request was fired to the Geocodeservice, which allows much less requests as the map itself. Now this error is totally fixed and tested on some live boards.SQL Error
related to OVER_QUERY_LIMIT
in several ways:Code: Select all
// GOOGLE API
// Google Basic Api
$google_api = true;
// OPEN API
// Mapquestapi Nominatim Api
$nomina_api = false;
// OPEN API
// Mapquestapi Geocoding Api
$geocod_api = false;