Skip to content

Commit

Permalink
Fixed setLocation on map for points
Browse files Browse the repository at this point in the history
  • Loading branch information
computate committed Jan 16, 2025
1 parent fff1ffd commit 3922135
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/computate/frFR/java/EcrirePageClasse.java
Original file line number Diff line number Diff line change
Expand Up @@ -3919,12 +3919,12 @@ else if(entiteAttribuer) {

auteurPageJs.tl(4, "var contextmenuItems = [];");
if(classeVarEmplacement != null) {
auteurPageJs.tl(4, "if(event.layerType == 'polygon') {");
auteurPageJs.tl(4, "if(event.layerType == 'marker') {");
auteurPageJs.tl(5, "contextmenuItems.push({");
auteurPageJs.tl(6, "text: '", i18nPage.getString(I18n.str_Definir), " ", classeVarEmplacement, " ", i18nPage.getString(I18n.str_de), " ' + ", varResultat, ".", classeVarTitre);
auteurPageJs.tl(6, ", callback: function(event2) {");
auteurPageJs.tl(7, "patch", i18nPage.getString(I18n.var_Emplacement), "(event.layer, "
, "{ coordinates: event.layer.getLatLng(), type: \"Point\" }"
, "{ coordinates: [event.layer.getLatLng()['lng'], event.layer.getLatLng()['lat']], type: \"Point\" }"
, ");");
auteurPageJs.tl(6, "}");
auteurPageJs.tl(5, "});");
Expand Down

0 comments on commit 3922135

Please sign in to comment.