• Resolved theophilix

    (@theophilix)


    I tried to add markers, but I only achieved to add 9 markers.
    How can I solve this?

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

    (@photoweblog)

    Hello @theophilix
    for more than one marker you should use KML files, we posted this articles for more details:
    https://wp-osm-plugin.hyumika.com/multiple-markers-with-openstreetmap-in-wordpress/
    Br, Michael

    Thread Starter theophilix

    (@theophilix)

    Thanks a lot!

    Plugin Author MiKa

    (@photoweblog)

    You are wellcom. Let me know if you face challenges to integrate kml files …

    Thread Starter theophilix

    (@theophilix)

    Hello, here is my shortcode:

    [osm_map_v3 map_center="48.683969,8.994023" zoom="12" width="100%" height="450" file_list="https://mywebsite.de/wp-content/uploads/2021/11/OSM_Marker_gruppen.kml" file_color_list="none" control="scaleline" map_border="thin solid green" file_title="OSM_Marker_gruppen.kml"]
    

    This works, but I don’t see any markers. WordPress did not accept an upload of my kml file, so I copied them via ftp.
    Here is my file:

    <?xml version="1.0" encoding="UTF-8"?>
    <kml xmlns="https://www.opengis.net/kml/2.2" xmlns:gx="https://www.google.com/kml/ext/2.2" xmlns:kml="https://www.opengis.net/kml/2.2" xmlns:atom="https://www.w3.org/2005/Atom">
    <Document>
      <name>OSM_Marker_gruppen</name>
        <Style id="black_pin">
          <IconStyle>
            <scale>1</scale>
            <Icon>
              <href>https://mywebsite.de/wordpress/wp-content/plugins/osm/icons/mic_black_godhouse_10.png</href>
            </Icon>
            <hotSpot x="20" y="2" xunits="pixels" yunits="pixels"/>
          </IconStyle>
        </Style>
    <Placemark>
        <name>Boeblingen</name>
        <description>Boeblingen</description>
        <styleUrl>#black_pin</styleUrl>
        <Point><coordinates>48.685669,9.015250,0</coordinates></Point>
      </Placemark>    
      </Document>
    </kml>
    
    • This reply was modified 3 years ago by theophilix.
    • This reply was modified 3 years ago by theophilix.
    Plugin Author MiKa

    (@photoweblog)

    Hello @theophilix

    start with the sample from:

    https://wp-osm-plugin.hyumika.com/multiple-markers-with-openstreetmap-in-wordpress/

    You find the sample file in your installation at the WP OSM Plugin shortcode generator. At the post editor where you generate the shortcode.

    Go to tab [troubleshooting] and copy the location of the kml file and paste it in your shortcode.

    Then post the link to the test site here. If you do not want to publish your site here you can send it also via the the contact page:

    https://wp-osm-plugin.hyumika.com/contact/

    Br, Michael

    Thread Starter theophilix

    (@theophilix)

    [osm_map_v3 map_center=”autolat,autolon” zoom=”autozoom” width=”100%” height=”450″ file_list=”https://mywebsite.de/wp-content/plugins/osm/examples/MarkerSample.kml&#8221; file_color_list=”green” file_title=”MarkerSample.kml”]

    This link works.
    But why is my kml-file not working… I will send you the file.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Maximum number of markers’ is closed to new replies.