Support » Plugin: OSM - OpenStreetMap » Vairables in marker_latlon

  • Hi,

    I’m trying to display a map, centred dynamically, with a marker at its centre. I have been able to pass variables to the “map_center=” option, but not to “marker_latlon=”. Is there a way to do this? Alternatively an option to put the marker automatically at the center, would do what I want.

    Here’s the script and shortcode:

    <html lang="en">
        <script type="text/javascript">
         var long = [latest_json index="longitude"];
         var lat = [latest_json index="latitude"];
    [osm_map_v3 map_center="lat,long" zoom="10" width="100%" height="450" marker_latlon="lat,long" marker_name="../../../../wp-content/plugins/osm/icons/mic_orange_sailing_1.png" marker_size="43,26,1" mwz="true" type="OpenSeaMap"]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Vairables in marker_latlon’ is closed to new replies.