• Resolved stereoo

    (@stereoo)


    I made a map, but if you use the Russian letters “K”, “P”, “N” in the name of markers or lines, then when you save the marker or line that uses such letters, it disappears. You have to replace words without using such letters.

    Your plugin is probably the best of many. He did what I needed to do. But when loading a page with a map, it is very slow. After loading the page, the map opens for about 15 seconds. I use different browsers and devices, as well as different Internet. Can I optimize my code?

    Я сделал карту, но если в названии маркеров или линий использовать русские буквы “К”, “П”, “Н”, то при сохранении маркер или линия в которой используются такие буквы пропадает. Приходится заменять слова без использования таких букв.

    Ваш плагин наверное самый лучший из многих. Он сделал то, что мне было необходимо. Но при загрузке страницы с картой он очень тормозит. После загрузки страницы карта открывается около 15 секунд. Использую разные браузеры и устройства, а также различный интернет. Можно ли оптимизировать код?

    • This topic was modified 4 years, 5 months ago by stereoo.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Joe

    (@morehawes)

    Hi @stereoo,

    Thanks for reaching out. I am sorry to hear about this issue. I created a map using some Russian characters and did not encounter any issues, you can see this here. Please let me know if I am missing something in order to replicate.

    I took a look at your site and you could try optimise by combining the CSS and JavaScript assets. There are various plugins that offer this and you can compare results using a speed test like this.

    I also noticed a style conflict which was causing an issue with the Map buttons. The following CSS should fix this:

    .waymark-map,
    .waymark-map .leaflet-control,
    .waymark-map .leaflet-control a,
    .waymark-map .leaflet-bottom {
      margin-bottom: 0 !important;
    }
    .waymark-map .leaflet-control-locate {
      margin-bottom: 10px !important;
    }

    I hope this helps.

    Joe

    Plugin Author Joe

    (@morehawes)

    Marking as resolved. Please do let me know if I can assist further.

    Thanks,

    Joe

    Thread Starter stereoo

    (@stereoo)

    Unfortunately, the CSS code did not help and Russian letters do not work. Below I gave an example with screenshots.

    1. Создал метку в настройках. В её названии русская буква “К”
    1 screen
    2. Chose the color and logo
    2 screen
    3. I put a new placemark on the map and clicked ” save”
    3 screen
    4. After saving, the placemark’s color and logo disappear
    4 screen

    If you remove the Russian letters “K”, “P”, “N” from the name, everything works perfectly. I learned how to replace these letters in placemarks with English ones so that the placemark works properly. But the CSS code didn’t help speed up map loading. The page still loads for 13-15 seconds. I’ve tried various plugins, but they don’t help with this issue. I temporarily had to disable the card and replace it with Yandex maps because people complain that it doesn’t work. They can’t wait for the map to load and leave the site. You can try downloading it yourself. I attach a link to my site
    Каменские известия

    Plugin Author Joe

    (@morehawes)

    Below I gave an example with screenshots.

    Thank you for providing these steps, which allowed me to replicate this issue.

    I have included a fix in the development version of the plugin, which you can download here.

    (In order to install this version you will need to either manually install it, or use a plugin that allows you to upload it through the WP Admin).

    Please let me know if this does not resolve the issue for you.

    But the CSS code didn’t help speed up map loading.

    The CSS I provided was to correct some layout issues I noticed with the buttons displayed in the Map, which seems to have worked. However this will not have any affect on load times.

    The test page you linked to loads quickly for me, with very little wait time. I do not believe this to be an issue with Waymark. I took a look at your page and I see that it is loading 60 JavaScript assets and 45 style sheet assets. The browser must wait for these to load before it can complete and could be the reason you are seeing delays. Combining these assets as I suggested previously means fewer assets to download and less time waiting.

    I hope this helps.

    Joe

    Thread Starter stereoo

    (@stereoo)

    Hi Joe Hawes (@morehawes). After the update, the problem with Russian letters disappeared. But when drawing all the lines and placemarks, it starts to slow down terribly. The map loading time is 13 seconds. If you draw a few lines and placemarks, the speed is good. I drew 8 routes.

    Plugin Author Joe

    (@morehawes)

    Hi @stereoo,

    I’m glad that fixed the Russian character issue.

    If you are having issues drawing routes using the editor you could try to create them elsewhere and then import them into the map. Obviously this is not ideal, but it might be worth trying.

    I took another look at your page and Waymark is still loading almost immediately for me. Other than the suggestions I have already made I am not sure what else to recommend.

    All the best,

    Joe

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Не работают русские буквы и тормозит’ is closed to new replies.