Commit d0d2e216 authored by Raph El's avatar Raph El
Browse files

Modif

parent cfb42d63
......@@ -2243,9 +2243,9 @@ function communecterUser(){
}
function updateLocalityEntities(addressesIndex, addressesLocality){
mylog.warn("updateLocalityEntities");
mylog.log("updateLocalityEntities", addressesIndex, addressesLocality);
$("#ajax-modal").modal("hide");
mylog.log("typeof formInMap.initUpdateLocality", typeof formInMap.initUpdateLocality);
if(typeof formInMap.initUpdateLocality != "undefined"){
var address = contextData.address ;
var geo = contextData.geo ;
......
......@@ -108,8 +108,6 @@ var formInMap = {
initUpdateLocality : function(address, geo, type, index){
mylog.log("initUpdateLocality", address, geo, type, index);
showMap(true);
if(address != null && geo != null ){
formInMap.NE_insee = address.codeInsee;
......@@ -681,7 +679,8 @@ var formInMap = {
}
},
initDropdown : function(){
initDropdown : function(){
mylog.log("initDropdown");
$("#dropdown-newElement_cp-found").html("<li><a href='javascript:' class='disabled'>"+trad['Currently researching']+"</a></li>");
$("#dropdown-newElement_city-found").html("<li><a href='javascript:' class='disabled'>"+trad['Search a city, a town or a postal code'] +"</a></li>");
},
......@@ -784,6 +783,7 @@ var formInMap = {
},
getLevel : function(){
mylog.log("getLevel");
if(notEmpty(formInMap.NE_localityId) &&
( typeof formInMap.NE_level1 == "undefined" || formInMap.NE_level1 == "" ||
typeof formInMap.NE_level2 == "undefined" || formInMap.NE_level2 == ""||
......
......@@ -148,9 +148,11 @@
if(typeof thisData.profilMarkerImageUrl !== "undefined" && thisData.profilMarkerImageUrl != ""){
iconUrl = baseUrl + thisData.profilMarkerImageUrl;
}
if (thisData.typeSig.substr(0,11) == "poi.interop") {
if (thisData.typeSig && thisData.typeSig.substr(0,11) == "poi.interop") {
var iconUrl = getimgProfilPathForInteropDataOnMap(thisData.typeSig);
}
}
return L.icon({
iconUrl: iconUrl,
iconSize: [53, 60], //38, 95],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment