Select to view content in your preferred language

Change font in Popup

2299
8
10-21-2020 06:22 PM
Vakhtang_Zubiashvili
Frequent Contributor

Hi all,

Hope find you all well,

In database i have Unicode characters in Georgian, now in some fields of popup i want to have English characters, i change fonts using CSS, but it is for global use, for every layers Popup.

E.g in second field of popup for Canals i have name like : "არხი" (in Georgian) and for Holes i have dimensions like L5/H10( length and Hight), but when i change font using CSS for name it works, but for dimensions it shows like L and H in Georgian letters.

Any idea and easy way how to it?

Thanks,

Stay all well

0 Kudos
8 Replies
Arne_Gelfert
Frequent Contributor

Vakhtang - Are you working with Web AppBuilder or are you creating a standalone web application using the Javascript API?

0 Kudos
Vakhtang_Zubiashvili
Frequent Contributor

Arne,

i am working with javascript API

0 Kudos
Arne_Gelfert
Frequent Contributor

Take a look at this article on how to style popups using CSS. Making Your Pop-up Pop! 

It shows example like this.

.esriPopup.modernGrey {

 font-size: 12px;

}
0 Kudos
Arne_Gelfert
Frequent Contributor

The article is pretty old but there is more general info on this page as well:

Popup | ArcGIS API for JavaScript 3.34 if you're suing 3.x.

0 Kudos
Vakhtang_Zubiashvili
Frequent Contributor

Dear Arne,

I have used these, but it cahanges popup info for all the popups on map, i

need to change only one popup not all.

See pic. i want to change font for first fieldNam: "Number_Ent", but only

for this layer's popup not forr other layers.

0 Kudos
Vakhtang_Zubiashvili
Frequent Contributor

Robert Scheitlin, GISP‌ any sugesstion? 

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Not on this subject.

0 Kudos
Arne_Gelfert
Frequent Contributor

Never tried any of this but here is more on customization...

Customize popup | Guide | ArcGIS API for JavaScript 3.34 

0 Kudos