• Ian,
    I want to start off by saying awesome job. I’m really liking this plugin. Having said that, I wanted to revisit a post you made here: https://www.ads-software.com/support/topic/plugin-basic-google-maps-placemarks-filter-placemarks?replies=3.

    I thought the markers were an overlay and could easily be hidden using jQuery. However, upon testing, it seems that the markers are a little more complicated than that. Is there a way to target a marker after it’s been created? When you create a new google.maps.Marker there’s no class or anything defined to differentiate the markers. Is that functionality that could be easily added? I was thinking it would be pretty easy to link them to their category since that’s how they are being shown/notshown already.

    If that is not the case then my next question is as follows: You mentioned using PHP to hide the classes. PHP itself is server side and wouldn’t be able to do this on the fly like javascript would. Could you think of a way that we could use AJAX to reload the map with new category options for the setBGMPMapShortcodeArguments filter?

    https://www.ads-software.com/extend/plugins/basic-google-maps-placemarks/

Viewing 15 replies - 46 through 60 (of 79 total)
  • b a

    (@mpa4hu)

    excellent job, exactly what I wanted, almost love you.
    gonna test it, and try not to disturb you unless some comet hits my comp.

    b a

    (@mpa4hu)

    Hello Jesse,

    First I’ve read everything you did.
    copy-pasted core.php, main functions.js and created custom js file for the second part.

    now my maps doesnot display anything. I created myPage.php but don’t know how to include this.
    The problem is that I cant find what you did in your functions.php (which I guess is located in themes folder right?).
    Is functions.php what I need to edit to display my maps page via myPage.php?

    and Is this all I needed to do?

    b a

    (@mpa4hu)

    Edit: I found that I can display it via Map Page Main.
    but it still doesnot shows me map, just search and direction boxes.

    b a

    (@mpa4hu)

    okay I found

    function addjQueryUI() {
    	wp_deregister_script('jquery');
    	wp_deregister_script('jquery-ui-core');
    	wp_register_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js',false,'1.8.3',false);
    	wp_register_script('jquery-ui-core','https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js',array('jquery'),'1.9.2',false);
    	wp_enqueue_script('jquery');
        wp_enqueue_script('jquery-ui-core');
        //wp_enqueue_script('jquery-ui-draggable');
    }
    add_action('wp_enqueue_scripts', 'addjQueryUI');

    for the function.php in my themes and added at the bottom but nothing changes. my guess is that core.php is buggy for this plugin (ver.1.8).

    because, when I include core.php, it doesnot shows my footer. I mean php interpretation stops at some place.
    “<div id=”map”> is last what it does in my html source.

    Thread Starter jesse.t

    (@jesset-1)

    This was originally written on 1.9RC2 (I believe) so running it with 1.8 might cause some strange bugs. I’d backup the 1.8 since it’s stable and grab the RC2 and test it with that. I’d be interested in seeing if you run into the same issues that msmithwise ran into.

    Thread Starter jesse.t

    (@jesset-1)

    jesse.t
    I assumed you meant in test.js
    I did that and have still not managed to get it to work.
    Interested in some small contract work? I just want to get this up and running

    Sorry man I missed this. Maybe I can free up some time this afternoon and release the latest updates. I think with what I have up currently its kind of piecemailed together from different versions of me working on it. As of now, we have it running rather well. Admittedly, there are probably some funny bugs in the versions you guys are using.

    b a

    (@mpa4hu)

    My bad. I found version 1.9.3RC which works perfect. I mean it displays the map, but where are the categories? how to hide/show them?

    Thread Starter jesse.t

    (@jesset-1)

    Hmm, I was on 1.9.2. I know that ian made some changes with 1.9.3 so I cannot promise that it’ll work flawlessly. Did you implement my changes or just install 1.9.3? The reason I ask is my work isn’t implemented into Ians core, so you will still need to add them manually.

    Assuming you did that, I would suggest the following:

    Make sure your markers are assigned to categories. If they are, my next suggestion would be to run firebug’s console in firefox and see if you receive any javascript errors. The way it works is Core.php pulls the categories in and sends them to functions.js which then pushes them into an array. I then take the array and display it in test.js.

    Thread Starter jesse.t

    (@jesset-1)

    If you have a recommendation on where I could host the files, I’d be more than happy to upload all my modded files for you to drop in. I’d rather not use my companies ftp.

    b a

    (@mpa4hu)

    I did everything with markers and categories. it even shows me my markers on map.
    There are millions of errors
    most of them start like this one.
    Timestamp: 02/22/2013 05:40:50 PM
    Error: TypeError: $ is undefined
    Source File: https://heureka.ge/test/1/gmapscustomfunctions.js
    Line: 1
    ___
    it in my FF Console
    and in my Chrome:
    https://s019.radikal.ru/i610/1302/c4/cf9959a00237.png

    I guess I just continue searching with some suitable plugin

    b a

    (@mpa4hu)

    https://www.4shared.com/
    is good i guess
    and it’s worth trying dropbox/google drive

    Thread Starter jesse.t

    (@jesset-1)

    $ is undefined

    Interesting… Are you loading my js file before or after functions.js/Jquery?

    Jquery should be first, followed by functions.js then finally test.js.

    b a

    (@mpa4hu)

    before, tried in both ways

    Thread Starter jesse.t

    (@jesset-1)

    That was the same issue that msmithwise had. Let me upload my latest work and see if it does it for you.

    Alternatively, although I doubt it will work you could add $ = jQuery.noConflict(); to the top of test.js, though I think that would remove the $.bgmp variable if you did it that way.

    b a

    (@mpa4hu)

    That’s how my source code looks like
    https://pastebin.com/C98SrsgC
    first is jquerys (in header)

    than there is functions.js

    and in the end your gmapscustomfunctions.js

    ___

    waiting with pleasure (or something like this)

Viewing 15 replies - 46 through 60 (of 79 total)
  • The topic ‘Filter Placemarks Revisited’ is closed to new replies.