• Dear support

    The map is unfortunately not rendering. When I insert the code, only an empty map comes:
    https://www.sss2022.ethz.ch/weg-zum-technopark-2

    Enable the console shows:
    Uncaught SyntaxError: Unexpected token '<'

    When I click on the source, this is what I see:

    <p>				<script src="https://www.sss2022.ethz.ch/wp-content/plugins/osm/js/OL/6.9.0/ol.js?ver=6.9.0" type="text/javascript"></script><br />
    				<script src="https://www.sss2022.ethz.ch/wp-content/plugins/osm/js/osm-v3-plugin-lib.js?ver=1.0.0" type="text/javascript"></script><br />
    				<script src="https://www.sss2022.ethz.ch/wp-content/plugins/osm/js/osm-metabox-events.js?ver=1.0.0" type="text/javascript"></script><br />
    				<script src="https://www.sss2022.ethz.ch/wp-content/plugins/osm/js/osm-startup-lib.js" type="text/javascript"></script><br />
    				<script type="text/javascript">
    					translations['openlayer'] = "open layer";
    					translations['openlayerAtStartup'] = "open layer at startup";
    					translations['generateLink'] = "link to this map with opened layers";
    					translations['shortDescription'] = "short description";
    					translations['generatedShortCode'] = "to get a text control link paste this code in your wordpress editor";
    					translations['closeLayer'] = "close layer";
    					translations['cantGenerateLink'] = "put this string in the existing map short code to control this map";
    			  </script></p>
    <p>			  <script type="text/javascript">
    			  vectorM['map_ol3js_1'] = [];</p>
    <p>        var raster = getTileLayer("osm","NoKey");			</p>
    <p>			  var map_ol3js_1 = new ol.Map({
    				interactions: ol.interaction.defaults({mouseWheelZoom:false}),

    So, the plugin is mixing html and Javascript. Why is this?

    Best regards
    Josef

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

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Uncaught SyntaxError in JavaScript’ is closed to new replies.