• Hello,
    is there any way to import the markers from my map generated at:

    http://www.comapp-online.de/osm3/?lang=en

    to the plugin? I have nearly 400 markers in my map and want to migrate it, but I do have no idea how. The map there is generated and loaded to the server of wordpress, that is the code of the HTML map:

    <html>
    <head>
    	<meta charset="utf-8" />
    	<title>comapp openstreetmap-Generator</title>
    	<link rel="stylesheet" type="text/css" href="http://www.comapp-online.de/osm3/shared/css/generator_3.0/map.css" />
    </head>
    <body id="fe">
    	<div id="map"></div>
    	<script type="text/javascript" src="http://openlayers.org/api/OpenLayers.js"></script>
    	<script type="text/javascript" src="http://www.openstreetmap.org/openlayers/OpenStreetMap.js"></script>
    	<script type="text/javascript" src="http://www.comapp-online.de/osm3/shared/js/jquery_1.8.3/jquery.min.js"></script>
    	<script type="text/javascript" src="http://www.comapp-online.de/osm3/shared/js/plugins/jquery.flash.js"></script>
    	<script type="text/javascript" src="http://www.comapp-online.de/osm3/shared/js/plugins/modernizr_2.6.2.js"></script>
    	<script type="text/javascript" src="http://www.comapp-online.de/osm3/shared/js/generator_3.0/mapGenerator.min.js"></script>
    	<script type="text/javascript">
    		(function($){
    			// ********** - comapp - mapGenerator jsonData - start - ************ //
    			var json = {"version":3,"locale":"de","units":"m","flashPath":"http://www.comapp-online.de/osm3/shared/swf/audioPlayer.swf","iconPath":"http://www.comapp-online.de/osm3/shared/img/marker/","geoPath":"http://www.comapp-online.de/osm3/shared/ajax/geopos.php","title":"xxx","descriptionStartStatus":1,"descriptionText":"Mein Beschreibungstext","descriptionButtonShowText":"Informationen und Hilfe zur Karte anzeigen","descriptionButtonHideText":"Informationen und Hilfe zur Karte verstecken","audioPlayImage":"http://www.comapp-online.de/osm3/shared/img/play.png","audioStopImage":"http://www.comapp-online.de/osm3/shared/img/stop.png","audioDownloadImage":"http://www.comapp-online.de/osm3/shared/img/download.png","geoDownloadImage":"http://www.comapp-online.de/osm3/shared/img/geo.png","lon":11.7,"lat":49.6,"zoom":5,"panzoombar":1,"permalinkchk":1,"scaleline":1,"showPopupOnHover":true,"markers":[{"markerName":"Mein neuer Marker","markerLon":9.954638984799544,"markerLat":49.14215949537771,"markerIconImage":0,"markerContent":"Meine neue Beschreibung des Markers","markerContentLinkTitle_1":"xxx"},{"markerName":"xxx","markerLon":11.7,"markerLat":49.571509849951,"markerIconImage":1,"markerContent":"Meine neue Beschreibung des Markers","markerNameLink":""}],"requiredField":"Dieses Feld muss ausgefüllt werden."};
    			// ********** - comapp - mapGenerator jsonData - end - ************ //
    			$.fn.getJsonData = function() {
    				return json;
    			};
    			$('body').mapGeneratorModel('initVal');
    			$('body').mapGeneratorMap('buildMap');
    			$('body').mapGeneratorMap('setBaseMode');
    		})(window.jQuery);
    
    		if (!window.console) console = {
    			log: function() {},
    			info: function() {},
    			warn: function() {},
    			error: function() {},
    			debug: function() {}
    		};
    		function setFlashStatus() {
    			$('body').mapGeneratorModel('setFlashStatus',true);
    		}
    	</script>
    	<script type="text/javascript" src="http://mediensyndikat.de/geo/generator2.js"></script>
    </body>
    </html>

    https://wordpress.org/plugins/leaflet-maps-marker/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,
    direct import from comapp-online.de is not supported – you either have to create a import file for the xls importer (https://www.mapsmarker.com/import-export) or use the APIs for building a custom importer (https://www.mapsmarker.com/mapsmarker-apis)
    best,
    Robert

    Thread Starter andreasleas

    (@andreasleas)

    Hello Robert,
    Thank you for the reply. I am paying someone to write a script which exctracts the data of the map. I testet the lats and longs as well as the description and the links, but regarding the layers I am uncertain. Can I leave that field with “0”?
    I tried a test import, all the markers were imported, but without layers. So what do I have to do, to display the markers in the new map?
    And what about the Icons? The Icons of the old map are not provided in the plugin, but I can upload them. But how do I refer to the icons within the excel file? Where do I have to name the icons, in whicch field?
    Thank you

    Thread Starter andreasleas

    (@andreasleas)

    OK, I added a layer and the markers were allocated to the layer. But the import did not work fine. All markers have the same standard lats and longs. The error that is indicated is:

    01:27:59 Warnung: ungültiger Wert für lat in Zeile 2 (48219013) – verwende stattdessen den Standardwert 48.216038
    01:27:59 Warnung: ungültiger Wert für lon in Zeile 2 (16392189) – verwende stattdessen den Standardwert 16.378984

    saying that the data is invalid and there will be used standard koordinates. What am I doing wrong? The field in the excel file seems filled out propperly.

    Also my second question: The icon field in the excel file. Do I fill in the name of the Icon I want to use? For instance airport.png ? Thanks

    Hi Andreas,

    you need to use lat+lon values with comma as decimal separator in your import file – so for example 48,219013 instead of 48219013

    regarding layer: you can leave this value to 0 – result is that all markers will be unassigned (and can be assigned to layers later too).

    layers have to be imported with a separate file – or created first if you want to use them.

    regarding icons: they have to be uploaded to the icon directory first (usually /wp-content/uploads/leaflet-maps-marker-icons/) – afterwards use the icon filename in the import file (e.g. car.png)
    best,

    Robert

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Import from comap-online.de’ is closed to new replies.