Hi Jake,
…if there was a way for the SL Google Map to have it’s own show/hide preference (on a per map basis) rather than using EE’s default (which would stay on Show), it seems like it might be possible for it to load the map, and after that to trigger the hide toggle on the publish page. So it would not have to be hidden when the map loads, which would prevent the GM bug.
Theoretically that’s possible, but it sounds like a bit of a nightmare, frankly. I’ll see if there’s a way of addressing this on a more general level, by performing a forced resize when the map visibility is changed.
Stephen
Stephen,
I figured that it might be a nightmare, so no worries. Would something as simple as jquery’s resize event work for that detection?
I also found these ways of detecting an element’s visibility:
if $('.my-class').is(':visible') { // code to reload map}
$('.my-class:visible').refresh_map_fn();
Though I haven’t had a chance to test any of these myself, and you’re probably much better versed in this kind of thing than I am.
Thanks for all your help.
I just noticed that the current version number is 1.1.1 but the extension itself still reports itself as 1.1.0. Just a heads up.
Thanks Todd, duly corrected.
Cheers, Stephen
This is a very good extension / FF type, I’ve been playing with it since it was first announced back in April as it seems to be the solution to an issue I knew I was going to presented with.
I have a couple of questions.
Is it possible to specify that the ‘pin’ not display in the output?
How easy / difficult would it be to turn this into a FF Matrix ‘type’ to allow more than one map per entry?
I would like to use this as a method to place anywhere upto 6 maps in a single post.
Is it possible to specify that the ‘pin’ not display in the output?
Not at this time, no.
How easy / difficult would it be to turn this into a FF Matrix ‘type’ to allow more than one map per entry?
I’m not sure how much work is involved in making this play nicely with FF Matrix. From conversations with Brandon, I think it’s a fairly trivial change for the CP side of things, but I suspect the output may be a bit (lot) trickier.
I would like to use this as a method to place anywhere upto 6 maps in a single post.
You could always just create 6 separate fields; considerably less elegant, I grant you, but it’s an option.
Cheers, Stephen
Hello all,
I just wanted to post a general update about this extension, particularly in light of my muted response above.
Aside from bug fixes, I’m not planning on doing any more work on this version of SL Google Map. Version 2 already has a lengthy wish list (to say the least), and at some point I need to draw a line under this version, and start concentrating on that. This is that point.
I’ll still be monitoring this thread of course, so if you encounter any problems – and particularly if you encounter any bugs – please do let me know. The same goes for any future feature requests.
Cheers, Stephen
Hi Stephen,
Same issue as @Marcin @jakepaul with the Display:none causing the map not to display correctly, could we have a work around on this issue as you mentioned below about off-screen positioning?
If display:none is causing a problem, have you tried positioning the map off-screen, and repositioning it
Any help would be great !!!! :grrr:
Hi David,
As this is a bug with Google Maps itself, rather than the extension, I can’t really offer a definitive solution.
In terms of template output (for example, displaying the map in a tab which is hidden, and then shown on click), something like the following very pared-down example might work (Note: written off the top of my head, and not tested in any way. World may end if used verbatim):
/* HTML */
{exp:weblog:entries}
<ul id="tabs">
<li id="intro" class="active"><div class="content">Introductory content goes here.</div></li>
<li id="map">{your-map-field class="content"}{map}Fallback content.{/map}{/your-map-field}</li>
</ul>
{/exp:weblog:entries}
/* CSS */
#tabs li .content {left : -9999px; position : absolute;}
#tabs .active .content {left : 0;}
/* jQuery */
$('#tabs li').click(function() {
$(this).addClass('active').siblings('li').removeClass('active');
});
In terms of the show / hide functionality in the CP, I don’t have a solution to that right now. I’ll certainly look into it in the future, and hopefully the big brains at Google will sort out the root cause of the problem sometime soon.
Hope that helps, Stephen
@Phil Norton
So a quick question: can it be used in a SAEF for Member Signup (ie mixing it with Solspace’s User module)?
It can definitely be used in a SAEF, but I doubt very much that it’ll work with the User module (I’ve never tried it). The SAEF enables you to create / edit a weblog entry, whereas the User module registration form enables you to create a new member, replete with custom member fields; two completely different things.
@sillbeer
Has anyone managed to specify a custom pin/icon image in conjunction with this extension?
This isn’t something that can currently be done without hacking the extension’s JS file. The goal for version 2 is to expose the Google Map API / events to make stuff like this easy, but that’s quite a way off at the moment.
Cheers, Stephen
Yeah, I was eyeing that component off yesterday and decided to leave it as is for the time being. I have another map that needs to pin all the items under a single weblog so I’ll be at least generating an XML file that I can feed the map using some of the SL GM tags.
Thanks for letting me know, as least I had my nose on the right track.
Cheers Brendan
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.