Zoom To text in infowindow

1132
5
03-03-2017 06:48 AM
joelde_freitas
New Contributor III

hi guys,

it's posible to change the zoom To text to other word. if yes, how can i do that

thanks

Tags (3)
0 Kudos
5 Replies
RobertScheitlin__GISP
MVP Emeritus

Joel,

   Sure you just need to set the default string for your locale:

var map;
require(["esri/map", "dojo/i18n!esri/nls/jsapi", "dojo/domReady!"],
  function(Map, bundle) {
    bundle.widgets.popup.NLS_zoomTo = "blah blah";
  }
);
joelde_freitas
New Contributor III

how can i archive it in legacy style?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Joel,

  I never use Legacy coding style so I am not 100% but I think it is:

dojo.require("esri.bundle");

FWI: you really need to more your code to AMD as Legacy is no longer supported in JS 4.x API

0 Kudos
joelde_freitas
New Contributor III

Yes i know.  i am planning to use the AMD style later. but now i need to make the app work.

0 Kudos
joelde_freitas
New Contributor III

thanks.

0 Kudos