I recently updated to WordPress 5.7.1 which is higher than the advertised version the plugin is tested to. Might this be why markers contained in my markers file are no longer displaying on the OS map? I appreciate the plugin isn’t advertising support for the current version of WP and I was a bit hasty.
]]>I tried out OS OpenSpace Maps 1.3.2 to research a potential migration path for some custom code that uses a pre-existing OS API key on a site I own.
On my Local development server (Nginx, PHP 7.3.5 and WordPress 5.4.2) the OS OpenSpace Maps plugin gives this error on line 153 when I set up my OS API key :-
Use of undefined constant timeout - assumed 'timeout' (this will throw an Error in a future version of PHP)
In the plugin editor I see that this line is where the OS API Key is being checked by the plugin. I can see that the plugin hasn’t been tested with WordPress releases for a while, so I might be pushing my luck when really I need to wait for a future release (of the plugin), or there is something else I am missing?
]]>OS Openspace maps is a fantastic and simple to use plugin. As far as I can tell there is no way to have more than the one “standard” red place marker Pins which would really enhance the value for my application.
I am using it to show bell ringing towers in the County of Norfolk, however, it would be useful to vary the Pin colour depending on which branch the tower is in.
Is such an enhancement planned by the developers?
]]>Hi,
Since installing PHP 7.3, I am receiving this is displayed at the start of each post using the plugin. The map and gpx tracks are still displayed as usual.
Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/3/d371891592/htdocs/walks/walks/wp-content/plugins/os-openspace-maps/osmap_generator.php on line 18
Mike
]]>Hi
I’m getting a ‘HTTP Referrer not valid’ error when using the shortcode on a page. The map doesn’t show. I’m using DiVi them. Any thoughts or ideas on a fix would be gratefully received. Thanks
Hi,
The plugin is saying that the API key is invalid.
However if I try accessing the openspace.js file directly using my API key it DOES work e.g.
https://openspace.ordnancesurvey.co.uk/osmapapi/openspace.js?key=MY-API-KEY&v=4.0.0&debug=true&url=https%3A%2F%2Fwww.my-domain.com%2
I edited the plugin file manually and managed to get it to work without giving the warning… you need to add the URL.
/plugins/os-openspace-maps/os-openspace-maps.php
Line #154 – change to:
$result = wp_remote_get( osmap_get_script_url() . '?key=' . esc_attr($key) . '&url=https%3A%2F%2Fwww.my-domain.com%2F', $args );
I guess the plugin should have an extra setting field to specify the registered URL for the API key.
Also, there are quite a few PHP notice errors when trying to save the plugin settings form:
Notice: Undefined index: mousewheel in /plugins/os-openspace-maps/osmap_admin_options.php on line 235
Notice: Undefined index: res_2500 in /plugins/os-openspace-maps/osmap_admin_options.php on line 240
Notice: Undefined index: res_1000 in /plugins/os-openspace-maps/osmap_admin_options.php on line 240
Notice: Undefined index: res_500 in /plugins/os-openspace-maps/osmap_admin_options.php on line 240
Notice: Undefined index: res_200 in /plugins/os-openspace-maps/osmap_admin_options.php on line 240
Notice: Undefined index: res_100 in /plugins/os-openspace-maps/osmap_admin_options.php on line 240
Notice: Undefined index: res_50 in /plugins/os-openspace-maps/osmap_admin_options.php on line 240
Notice: Undefined index: res_25 in /plugins/os-openspace-maps/osmap_admin_options.php on line 240
Notice: Undefined index: res_10 in /plugins/os-openspace-maps/osmap_admin_options.php on line 240
Notice: Undefined index: res_4 in /plugins/os-openspace-maps/osmap_admin_options.php on line 240
Notice: Undefined index: res_3 in /plugins/os-openspace-maps/osmap_admin_options.php on line 240
Notice: Undefined index: res_2 in /plugins/os-openspace-maps/osmap_admin_options.php on line 240
Notice: Undefined index: res_1 in /plugins/os-openspace-maps/osmap_admin_options.php on line 240
Notice: Use of undefined constant timeout – assumed ‘timeout’ /plugins/os-openspace-maps/os-openspace-maps.php on line 153
Thanks,
]]>Hi! This plugin deserves to be used more! And I would, if only it had a fullscreen button.
Is this possible?
I’m using a WordPress page editor called Elementor, with a sticky page header – the idea being that as you scroll down the page, the header stays at the top of the page.
However, the OS map on the page flows over the header as you scroll down, rather than beneath it.
I’m guessing there’s a CSS fix for this, but have no idea where to begin – anyone have any ideas?
]]>Thank you for this plugin; as a map lover I hope to enjoy using it. However, I’m very new to WordPress (using 4.9.5) and still trying to find my way. I have managed to get my API key working. I have uploaded my .gpx files and entered the correct link in the OSMAP shortcode. The map appears on the page at the correct scale and centred on the correct area for the gpx file but no gpx track shows. In the plugin settings the colour is set to red (hex code) and the track width to ‘3’. Any suggestions as to what I may be doing wrong?
]]>Hi,
I have a key, sent by email from OS OpenSpace Registration. I entered this in the space on the settings page in WordPress OS OpenSpace Maps settings, and even after waiting 24 hours the message “OpenSpace Maps Error: Invalid API Key” still comes up. I even get a message on the OpenSpace Maps Error page as soon as I enter the key. Any ideas?
Thanks,
Howard Freeman
I have some patches to add to this plugin and am interested in doing further development work on it. The patches I have are to add a config option to disable mousewheel zoom of the map, and to allow it to work automatically with both https:// and https:// sites. How do I go about getting added to the list of committers?
]]>Open the os-openspace-maps.php file within the plugin folder, and look for the section:
osMap' . $mapid .'.addLayer(new OpenLayers.Layer.Vector("GPX Vectors", {
style: {
strokeColor: "' . $color . '",
strokeWidth: 6,
strokeOpacity: 0.8,
pointRadius: 6,
fillColor: "' . $color . '"
},
Change the strokewidth. It’s set to 3 by default and as you can see, I changed mine to 6 for a thicker line as I found the default difficult to see clearly
]]>Initially couldn’t get this to display maps, and found that I needed to edit the os-openspace-maps.php file within the plugin folder and rename all occurrences of https://openspace.ordnancesurvey.co.uk to https://openspace.ordnancesurvey.co.uk
The maps displayed fine after this edit.
]]>the initial setting of the zoom does not, neither in the shortcode (eg [osmap zoom = “4”]), nor in the general settings of the plugin. The slider control appears systematically at minimum zoom, without displaying the map. Then, the map display appears when the zoom control is moved.
]]>Notice: Trying to get property of non-object in D:\wamp\www\welshwalk\wp-content\plugins\os-openspace-maps\os-openspace-maps.php on line 296
PHP Error when activating plugin.
Thanks!
Emlyn
]]>The shortcode: [osmap markers=”53.115,-02.546;RACUNDRA at Venetian Marina”] creates a Marker in the correct place but the map is centred at Berwick-upon-Tweed. This seems like a fault or am I missing something. The page is at:
]]>Hi
Thanks for designing this plugin.
I keep getting the error message parameter key may not have value followed by the product key.
Here’s a ‘test’ page from my site that displays this message:
https://velotastic.co.uk/?page_id=41361&preview=true
any ideas ?
many thanks
Paul
]]>I’ve installed the plugin and pasted in this code from one of your examples.
[osmap markers="NY2000008000;Wasdale"]
Nothing displays except an empty box.
What might the problem be and how do I go about debugging it?
thanks
Adrian
Am I missing something here?
How do you tell the [osmap] shortcode where the map is centred and what the zoom is?
There are options for width, height, color, gpx file etc but nothing I can find for the most fundamental – centre and zoom.
If the answer is “in the gpx file” then where do I get a gpx file? Web-Map builder is a handy tool for setting centre, zoom and adding markers and routes – but there’s no option to output a gpx file.
Putting Web-Map builder output between raw tags in a post works fine – but I’m hoping the plugin can make it a bit more end user friendly.
]]>Hello,
I have some 19000 points I would like to display on a map with some data and links to site photo.
I produced a kml but the file is big (22 meg) and does not seem to load. Even a smaller file only display points but no markers.
I tried to create markers from a file but the plugin does not allow for markers to be retrieved from files.
Can you suggest a way forward?
Many thanks
Marc
Hi. I’m trying to add a link to a marker. Ideally I’d like clicking on the marker to open up a popup with a link in the popup, but I can’t seem to achieve this.
Any ideas?
]]>Awesome plugin – thanks a lot!! Ive managed (in a very backward way) to make your plugin auto-generate a map from a custom field containing a grid reference.
However, when displaying any map, it is putting a back background and shadow behind the markers, nav buttons, and “powered by” bit. I assume this is my theme, but any idea of the css classes I need to override to get rid of this?
Thanks.
]]>