Hi all, this page to explain some tricks about how to use RVM at its best with current functionality.
We’ll try to cover general questions we’ve gathered from the support page of WordPress forum and via email.
Thanks for your inputs, feedback and for your support to this project!
Manually copy markers from an old map to a new one
If you had not exported markers using the available feature since ver. 5.5.3, or the importing process is not going well for any reason, just go for the manual mode.
In the next clip we will show how to retrieve data from old map and move to the new map.
It’s basically a matter of copy&paste …as always!
For the example in the video we chose Map of Germany with two markers ( Berlin and Munich ).
Enjoy the video!
Manually copy subdivisions from an old map to a new one
If you had not exported subdivions settings using the available feature since ver. 5.5.3, or the importing process is not going well for any reason, just go for the manual mode.
We will use a video to explain how to do it.
How can I set bigger dimensions for markers’ pinpoints ?
Is not possible set an absolute dimension for markers’ pinpoints. You’ll be able to see different dimensions just filling the “Dimension” field of at least 2 markers: this because markers’ pinpoints dimensions are relative.
So, what can I do to display them bigger ?
You can use a “trick” :
Soon you’ll see your markers of the desired dimensions on your wonderful RVM map !
I was installing a custom map but I’ve got an error
As said in this page, installing custom map ( a dowloaded one from this site or one you created following the RVM map format ) is an easy task in RVM, especially from ver 5.0 where Media Uploader has been integrated directly into the settings page.
Randomly some users reports issues, probably due to interaction with other plugins ( i.e.: WooCommerce ).
Our advice is to:
If you went into issue saying “Damned… Something went wrong ! Please check if name of the map is correct ( place just map name) or if you have uploaded the map previous month and try again uploading map now using wordpress media uploader“, please :
In case above suggestions will not fix it, we need to switch to manual way, like they do for lunar module approach 🙂
First of all, do not panic!
Let’s do a practical example.
Imagine you are trying to install France districts map, and you’ve purchased and downloaded france-districts_mill_en.zip on April 2018.
Now you’ve tried to install the map using the standard method (“Add New Map” —> “Add Custom Map” —> select the france-districts_mill_en.zip via the RVM media uploader —> “Install Map”) but something did not work.
You followed all the steps sent along with the purchase email confirmation but no way to install it.
Unzip purchased map and move unzipped map folder into /wp-content/uploads/2018/04.
If you have not current year and month folder please create them.
In order to count total characters in map name we’ve used
but feel free to use your favourite online tool !
How get rid of subdivisions’ name on mouse hover
Download latest RVM version to get this feature!
Since version 6.0.0 you can use a checkbox inside RVM main settings to enable this functionality.
Translate subdivisions’ names on front end ( visible map on your site )
Please refer to “Translate RVM maps into multiple languages” page to easily change subdivisions’ names.
Translate subdivisions’ names on subdivisions settings tab
In order to modify the default maps coming with RVM, please open corresponding map you need to modify in following location:
responsive-vector-maps > includes > regions
Ie.: to modify Belgium subdivisions’ names, open belgium-regions.php with your favourite editor and change only the last item of the array ( ‘Brussels’ in case of first row ).
If you want to modify a custom map downloaded from this site, please search for map you would like to update inside the wordpress “wp-content” > “uploads” folder
and open the rvm-cm-settings.php .
Open it and update only the last element of the array ( same as we did above for settings ).
Number of markers can be saved
If you are trying to save a big amount of markers, may happen you see they are not saved from a certain number onward.
Inserting manually into DB it works… so what ?
Newer versions of PHP , by default, are set to accept only one thousand of parameters sent by a form.
Considering the fact that main settings, subdivisions and markers fields are sent as a whole, it means that unfortunately you reached this quota !
We tried this plugin : https://wordpress.org/plugins/wp-max-submit-protect/
which basically alerts you when this limit is reached.
Here an explanation on how to solve it via php.ini or via htaccess file.
Newer versions of PHP implement a php.ini directive called max_input_vars usually set to 1000. This means that posting > 1000 form fields for instance would be truncated preventing data from being saved.
This can be changed in php.ini:
max_input_vars = 2000
If you need to do this via htaccess (on a shared host for instance) you may use:
php_value max_input_vars 2000
This is the page where I’ve got the workaround above : http://docs.woothemes.com/document/problems-with-large-amounts-of-data-not-saving-variations-rates-etc/ ).
Please let us know if you are able to solve it.