!RAWBLOCK0!
-
I have added code for a map on this page https://79.170.40.242/kintyreway.com/section-1-2/
which shows fine
but when I add the same code on this page https://79.170.40.242/kintyreway.com/section-2/
i get this error !RAWBLOCK0!
-
That usually means there’s a plugin or theme conflict. Are you using any shortcodes in/around/near the
[raw]
tags? Do any of your plugins automatically add something to all posts/pages?the theme is wordpress Avada this is the code that works ok on here
https://79.170.40.242/kintyreway.com/section-1-2/bit not here
https://79.170.40.242/kintyreway.com/section-2/[raw]
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”https://www.w3.org/1999/xhtml” xml:lang=”en” lang=”en”>
<head>
<title>Open Space Web-Map builder Code</title>
<!– Download OpenSpace API using your key –>
<script type=”text/javascript” src=”https://openspace.ordnancesurvey.co.uk/osmapapi/openspace.js?key=108852A39BF142EEE0530C6CA40A259E”></script>
<script type= “text/javascript” src=”https://openspace.ordnancesurvey.co.uk/osmapapi/script/mapbuilder/basicmap.js”></script>
<script type= “text/javascript” src=”https://openspace.ordnancesurvey.co.uk/osmapapi/script/mapbuilder/searchbox.js”></script>
<script type=”text/javascript”>
//declare marker variables
var pos, size, offset, infoWindowAnchor, icon, content, popUpSize;//variables for routes
var linesLayer, points, lineFeature, lineString, routeMarkersLayer, routepos, routesize, routeoffset, routeicon;
var style_blue = {strokeColor: “#0000CD”, strokeOpacity: 0.5, strokeWidth: 4.5};function initmapbuilder()
{
//initiate the map
var options = {resolutions: [2500, 1000, 500, 200, 100, 50, 25, 10, 5, 4, 2.5, 2, 1]};
osMap = new OpenSpace.Map(‘map’, options);//configure map options (basicmap.js)
setglobaloptions();
//add a postcode/gazetteer search box (see searchbox.js)
addSearchBox(1);
//set the center of the map and the zoom level
osMap.setCenter(new OpenSpace.MapPoint(186728.14571351,663509.58542185),5);
// add a marker
pos = new OpenSpace.MapPoint(186549,668582);
size = new OpenLayers.Size(30,39);
offset = new OpenLayers.Pixel(-15,-36);
infoWindowAnchor = new OpenLayers.Pixel(16,16);
icon = new OpenSpace.Icon(‘https://openspace.ordnancesurvey.co.uk/osmapapi/img_versions/img_1.0.1/OS/images/markers/marker-cross-med-red.png’, size, offset, null, infoWindowAnchor);
osMap.createMarker(pos, icon, null, null);
linesLayer = osMap.getVectorLayer();
// Set up layer for route markers
routeMarkersLayer = new OpenLayers.Layer.Markers(“Route Markers”);
//make a route
points = new Array();
points.push(new OpenLayers.Geometry.Point(186554,668607));
points.push(new OpenLayers.Geometry.Point(186869,668542));
points.push(new OpenLayers.Geometry.Point(187204,668607));
points.push(new OpenLayers.Geometry.Point(187389,668357));
points.push(new OpenLayers.Geometry.Point(187444,668062));
points.push(new OpenLayers.Geometry.Point(187419,667797));
points.push(new OpenLayers.Geometry.Point(187344,667687));
points.push(new OpenLayers.Geometry.Point(187329,667427));
points.push(new OpenLayers.Geometry.Point(187554,667387));
points.push(new OpenLayers.Geometry.Point(187754,667297));
points.push(new OpenLayers.Geometry.Point(188039,667102));
points.push(new OpenLayers.Geometry.Point(188064,666907));
points.push(new OpenLayers.Geometry.Point(188049,666852));
points.push(new OpenLayers.Geometry.Point(188124,666707));
points.push(new OpenLayers.Geometry.Point(188199,666542));
points.push(new OpenLayers.Geometry.Point(188199,666372));
points.push(new OpenLayers.Geometry.Point(188214,666222));
points.push(new OpenLayers.Geometry.Point(188379,666142));
points.push(new OpenLayers.Geometry.Point(188184,666057));
points.push(new OpenLayers.Geometry.Point(188094,665862));
points.push(new OpenLayers.Geometry.Point(188014,665612));
points.push(new OpenLayers.Geometry.Point(188014,665507));
points.push(new OpenLayers.Geometry.Point(188019,665252));
points.push(new OpenLayers.Geometry.Point(187944,665102));
points.push(new OpenLayers.Geometry.Point(187839,664862));
points.push(new OpenLayers.Geometry.Point(187829,664627));
points.push(new OpenLayers.Geometry.Point(187844,664407));
points.push(new OpenLayers.Geometry.Point(187844,664202));
points.push(new OpenLayers.Geometry.Point(187609,663507));
points.push(new OpenLayers.Geometry.Point(187634,663397));
points.push(new OpenLayers.Geometry.Point(187849,663167));
points.push(new OpenLayers.Geometry.Point(187989,663187));
points.push(new OpenLayers.Geometry.Point(188044,663217));
points.push(new OpenLayers.Geometry.Point(188279,663112));
points.push(new OpenLayers.Geometry.Point(188384,662917));
points.push(new OpenLayers.Geometry.Point(188534,662932));
points.push(new OpenLayers.Geometry.Point(188599,663022));
points.push(new OpenLayers.Geometry.Point(188734,662962));
points.push(new OpenLayers.Geometry.Point(188799,662857));
points.push(new OpenLayers.Geometry.Point(188769,662482));
points.push(new OpenLayers.Geometry.Point(188774,662357));
points.push(new OpenLayers.Geometry.Point(188994,662262));
points.push(new OpenLayers.Geometry.Point(189044,662107));
points.push(new OpenLayers.Geometry.Point(189024,661882));
points.push(new OpenLayers.Geometry.Point(189159,661527));
points.push(new OpenLayers.Geometry.Point(189174,660982));
points.push(new OpenLayers.Geometry.Point(189069,660617));
points.push(new OpenLayers.Geometry.Point(188959,660212));
points.push(new OpenLayers.Geometry.Point(188959,659977));
points.push(new OpenLayers.Geometry.Point(189044,659892));
points.push(new OpenLayers.Geometry.Point(189144,659737));
points.push(new OpenLayers.Geometry.Point(189169,659532));
points.push(new OpenLayers.Geometry.Point(189179,659342));
points.push(new OpenLayers.Geometry.Point(189274,659187));
points.push(new OpenLayers.Geometry.Point(189379,658912));
points.push(new OpenLayers.Geometry.Point(189444,658877));
points.push(new OpenLayers.Geometry.Point(189489,658812));
points.push(new OpenLayers.Geometry.Point(189514,658672));
points.push(new OpenLayers.Geometry.Point(189489,658492));
points.push(new OpenLayers.Geometry.Point(189454,658292));
points.push(new OpenLayers.Geometry.Point(189554,658162));
points.push(new OpenLayers.Geometry.Point(189764,658112));
points.push(new OpenLayers.Geometry.Point(190149,657682));
points.push(new OpenLayers.Geometry.Point(189879,657642));
points.push(new OpenLayers.Geometry.Point(189849,657637));
points.push(new OpenLayers.Geometry.Point(189784,657482));
points.push(new OpenLayers.Geometry.Point(189714,657257));
points.push(new OpenLayers.Geometry.Point(188784,656637));
points.push(new OpenLayers.Geometry.Point(188274,656502));
points.push(new OpenLayers.Geometry.Point(188036.5,656387));
points.push(new OpenLayers.Geometry.Point(187507.75,656074.5));
points.push(new OpenLayers.Geometry.Point(187089,656612));
// create a polyline feature from the array of points
lineString = new OpenLayers.Geometry.LineString(points);
lineFeature = new OpenLayers.Feature.Vector(lineString, null, style_blue);
linesLayer.addFeatures([lineFeature]);
//crate a route start/end marker
routepos = new OpenSpace.MapPoint(186554,668607);
routesize = new OpenLayers.Size(33,45);
routeoffset = new OpenLayers.Pixel(-5,-37);
routeicon = new OpenSpace.Icon(‘https://openspace.ordnancesurvey.co.uk/osmapapi/img_versions/img_1.1/mapbuilder/routemarker-start.png’, routesize, routeoffset, null, null);
routeMarkersLayer.addMarker(new OpenLayers.Marker(routepos, routeicon));
//crate a route start/end marker
routepos = new OpenSpace.MapPoint(187089,656612);
routesize = new OpenLayers.Size(33,45);
routeoffset = new OpenLayers.Pixel(-5,-37);
routeicon = new OpenSpace.Icon(‘https://openspace.ordnancesurvey.co.uk/osmapapi/img_versions/img_1.1/mapbuilder/routemarker-end.png’, routesize, routeoffset, null, null);
routeMarkersLayer.addMarker(new OpenLayers.Marker(routepos, routeicon));
osMap.addLayer(routeMarkersLayer);}
</script>
</head>
<body onload=”initmapbuilder()”>
<div id=”map” style=”border: 1px solid black; width:540px; height:440px;”></div>
</body>
</html>
[/raw]avada uses fusion builder plugin that could be the conflict
avada uses fusion builder plugin that could be the conflict
That could be it. That’s a custom page editor of some kind, right? Usually this plugin only works with the default post editor.
This plugin is part of the theme so I have to have it on
There must be a way round it iframe maybe ?Maybe. Sorry, I can’t really suggest anything specific since I haven’t used that theme much.
You don’t need this plugin if you use Avada.
Avada’s FusionBuilder has a Builder Element called Code Block. That will pass through any code you enter there.
- The topic ‘!RAWBLOCK0!’ is closed to new replies.