Leon Rowland
Forum Replies Created
-
Forum: Plugins
In reply to: [Pronamic Google Maps] Trigger markers click event externallyHello JamesBates.
Only on single maps and not mashups. On single maps you can get the marker from the data attribute on .pgm element. The data key is google-maps-marker.
To attach listeners to that marker you will have to look at the Google Maps JS documentation. That can be found here:
https://developers.google.com/maps/documentation/javascript/events
Hope that helps you!
Forum: Plugins
In reply to: [Pronamic Google Maps] WordPress VersionHey jodydeanrogan.
Yes it works with the latest version. We haven’t got round to updating that number yet. A new version will be out soon that will fix that.
Forum: Plugins
In reply to: [Pronamic Google Maps] Double load of mapHello vstma.
We have just pushed a new update that fixes the display of the double maps.
You may need to wait a few moments for the WordPress Plugin Repository to notify you of the update.
As for disabling the map controls, you can add to the existing map_options array you have from the copied code of the previous post.
https://developers.google.com/maps/documentation/javascript/reference#MapOptions
This page details all the options you can specify. So for example, in the code from the previous post you could add:
function custom_pronamic_google_maps_the_content( $atts, $content=null ) { $content .= pronamic_google_maps( array( 'echo' => false, 'width' => 955, 'height' => 400, 'map_options' => array( 'styles' => array( (object) array( 'stylers' => array( (object) array( 'saturation' => '-100' ), ) ), ), 'mapTypeControl' => false, 'navigationControl' => false ) ) ); return $content; } //add_filter( 'the_content', 'custom_pronamic_google_maps_the_content', 9 ); add_shortcode( 'custom_googlemaps', 'custom_pronamic_google_maps_the_content' );
The squeezing of the controls is normally attributed to responsive themes. We offer a CSS fix here: https://github.com/pronamic/wp-pronamic-google-maps/blob/develop/css/fix.css
To change the marker icons, there is some example code here: https://github.com/pronamic/wp-pronamic-google-maps/blob/develop/examples/mashup-post-type-a-b-marker-icon.php
Hope that answered all your questions. If you have some more feel free to respond.
Forum: Plugins
In reply to: [Orbis] How to use orbis plugin after installationHey. Sorry sokson, I missed your messages.
It is possible that the rights didn’t properly activate for you. The theme and plugin should have set some rights for the administrator.
https://github.com/pronamic/wp-orbis/blob/develop/classes/orbis-core-plugin.php#L278
You can always install the Members plugin https://www.ads-software.com/plugins/members/ and check that administrator has the required roles. If you don’t see any roles relating to orbis then I can respond with the entire list needed.
Apologies for the bug.
Forum: Plugins
In reply to: [Orbis] additional plugin supportHello kylerollins.
Posts2Posts is a required plugin. To make some of the connections between Companies, Projects and people.
I was surprised to find you were correct about Posts2Posts. I don’t feel like it would be a problem though. The plugin has a large enough following in its community that any major problems that would arise out of Major Revisions in WordPress would be fixed.
https://github.com/scribu/wp-posts-to-posts
He has stated in his blog post that while he won’t be working on it anymore, it is for the reason that
since the plugin already works well enough on the single site where I use it.
We have used posts2posts extensively on the many websites we have made and feel there would be no major problems.
In the same blog post, while he did say he wouldn’t be developing on it anymore, he will accept pull requests from the community
Of course, I’d be happy to review and merge pull requests that people open and still hope that I’ll eventually be able to hand it off to someone else.
Perhaps someone would pick it up, perhaps not, but I don’t feel there would be too much concern about the plugin dying.
You can find his full, short blog post here: https://scribu.net/wordpress/posts-to-posts/version-1-6.html
Forum: Plugins
In reply to: [Pronamic Google Maps] Validating errorHello maxj
You can try a urlencode line. Something like
$value = urlencode( $address )
Forum: Plugins
In reply to: [Orbis] How to use orbis plugin after installationHello sokson.
You may want to start off with the free theme we offer. Called wt-orbis.
You can download from here:
Forum: Plugins
In reply to: [Pronamic Google Maps] Meta Box only in one pageHello cedric.
Not sure if this is still something you may need help with, it has been a while since your post. For that I apologise.
1. Are you doing any kind of retina detection? You could always implement a solution similar to what is detailed in this stackoverflow question. https://stackoverflow.com/questions/15234519/detect-retina-display-in-php
2. Unfortunately that is not currently possible. I can see the benefit of having an option to do that more easily.
You could attempt to use the remove_meta_box function https://codex.www.ads-software.com/Function_Reference/remove_meta_box if the post_id doesn’t match.
I haven’t had a chance to test that yet, but it seems that that should work.
Good luck if you haven’t solved already.
Forum: Plugins
In reply to: [Pronamic Google Maps] AutocompleteHello gribbler.
Thanks for the suggestion! That would be a nice addition. I have written it down and we will look to it!
Forum: Plugins
In reply to: [Pronamic Google Maps] Geocoding on Mobile deviceThanks for the report gribbler. We will look into this.
Forum: Plugins
In reply to: [Pronamic Google Maps] shortcode with array (map options)Hello akinorukul.
Unfortunately the plugin doesn’t currently support setting the ‘styles’ with the shortcode. Instead what you could do is write your own shortcode and put the function you pasted over into that shortcode.
Would that be an option?
Forum: Plugins
In reply to: [Pronamic Google Maps] Thumbnail in Mashup MarkerHello Denis.
Try instead, to use get_the_post_thumbnail().
https://codex.www.ads-software.com/Function_Reference/get_the_post_thumbnail
As the_post_thumbnail sends it out to the browser.
Forum: Plugins
In reply to: [Pronamic Google Maps] No MapThanks gregwiley.
I’ll take a look to this and report anything I find.
Forum: Plugins
In reply to: [Pronamic Google Maps] No MapNo. The geocoding is purely client side.
Forum: Plugins
In reply to: [Pronamic Google Maps] No MapI can’t seem to reproduce the error.
Made a new WordPress 3.7.1 environment.
Installed Pronamic Google Maps
Activated it on Posts and Pages
Went to the default page, filled in an address
Geocoded.
Ticked the ‘Show Google Maps’ box
Updated content with [googlemaps] shortcodeMap shows correctly, with the marker in the right position.
This was on 2013 theme.