mapfish-print icon indicating copy to clipboard operation
mapfish-print copied to clipboard

Feature's label is not displayed in result print

Open Quanar opened this issue 6 years ago • 6 comments

I am using Geoserver 2.10.0 for printing map. Geoserver uses mapfish-print for printing. I wanted to print a vector layer with a label in Russian. And in the result of print this label is not displayed, but when I set label in English label is displayed. What should I do to solve this problem?

Code example:

"type": 'Vector',
     "styles": highlighFeaturesStyle,
           "geoJson": {
                "type": "FeatureCollection",
                "features":  [ {
                     "type": "Feature",
                     "geometry": JSON.parse(_geojson),
                     "properties": {
                          "_style": {
                              "strokeColor": "#336791",
                              "strokeOpacity": 0.8,
                              "strokeWidth": 3,
                              "fillColor": "#336791",
                              "fillOpacity": 0.8,
                              "label": "Текст пример",
                              "labelYOffset": "14.0",
                              "fontColor": "#000000",
                              "fontFamily": "sans-serif",
                              "fontSize": "10px",
                              "fontStyle": "normal",
                              "fontWeight": "bold"
                             }
                        }
                   } ]
              }  

Quanar avatar Mar 02 '18 04:03 Quanar

Looks like someone haven't been using Unicode sometime. Its interesting if they still support version 2 i.e. fixing bugs.

Feofilakt avatar Jul 01 '19 10:07 Feofilakt

No, we don't work on version 2 anymore. But, usually PRs are welcome and we can do releases for those.

pvalsecc avatar Jul 03 '19 05:07 pvalsecc

Well, here you are :) https://github.com/mapfish/mapfish-print/pull/986 Though I don't sure if branch 2.1.x is stable, there are some checks and tests errors.

Feofilakt avatar Jul 04 '19 05:07 Feofilakt

Yeah, cicrcleci doesn't work with this branch. But I don't understand why travis didn't trigger... I leave for vacation in a few hours and won't have time to deal with that before then. I'll see in a couple of weeks.

pvalsecc avatar Jul 04 '19 11:07 pvalsecc

Or @sbrunner, can you have a look?

pvalsecc avatar Jul 04 '19 11:07 pvalsecc

@pvalsecc We don't seem to have any CI configured on this branch ...

sbrunner avatar Jul 04 '19 14:07 sbrunner