Map Pins

This topic contains 15 replies, has 4 voices, and was last updated by  Stiofan O’Connor 8 years, 4 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #375980

    trist28
    Expired Member
    Post count: 9

    Hi,
    I have place catagories set and some places are in multiple catagories. When selecting the pins on the map key i get the default catagory pin showing up on the map and i would rather have the pin for the catagory selected in the map manu. Is there any way arround this please.
    the site is offroadfun.org for an examplw, if you select just the Accomodation catagory in the key you can see there are mainly House pins but there are also a couple of flags and a blue pin. These are for two other catagories. i would like all house pins for accomodation and so on for all place catagories. Can anyone advise a solution please?

    Thanks

    #375987

    Kor
    Moderator
    Post count: 16516

    Hi there,

    I’ve just checked your Website and I’m able to see the issue there. Please share WP temp admin access to your site so we can take a better look. You can post the details here using the private reply option below.

    #375989

    trist28
    Expired Member
    Post count: 9
    This reply has been marked as private.
    #375993

    trist28
    Expired Member
    Post count: 9
    This reply has been marked as private.
    #376004

    Paolo
    Site Admin
    Post count: 31211

    Hi,

    listings will use the map marker of the category that has been selected has default. So the listings that have the Club category as default will show that marker.

    That is how it works.

    Thanks

    #376007

    trist28
    Expired Member
    Post count: 9

    This was not thae case in onder versions as we have just transfered this site to the latest versions of PHP and Geodirectory. The old site showed the pin for the catagory selected in the map key. Do you know if this has been refined in recent versions? I can supply a host file line to view the old site if needed.

    Thanks

    #376009

    Paolo
    Site Admin
    Post count: 31211

    As far as I know it works like this since we started, I asked to the developers to confirm or let us know when it’s been changed in case I’m wrong.

    Thanks

    #376010

    trist28
    Expired Member
    Post count: 9

    Thanks Paolo

    #376014

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Yes by default is has always shown the place default marker, i have made it show the cat marker if there is only 1 cat selected, please replace this file in your core plugin:
    https://github.com/GeoDirectory/geodirectory/blob/master/geodirectory-functions/map-functions/get_markers.php

    Thanks,

    Stiofan

    #376163

    trist28
    Expired Member
    Post count: 9

    Hi Stiofan,
    I have tried that code but it does not solve my problem. If you go to offroadfun.org and deselect all except “Accomodation”. You will see the majority are houses but there are also a couple of Blue pins and a couple of car pins.
    Lets take the lower of the two blue pins to examine.
    This is a place that offers “Experience Days” but also offers “Accommodation”.
    The default category for this place is “Experience Days” so you get the blue pin when searching for Accommodation. This is because the place offers Accommodation as well but the primary category is Experience Days.
    This looks messy when you are using multiple categories.
    I would like the pin for Accommodation to show for all when only accommodation is selected and not their default category pin.
    Am i going about the structure of this the wrong way?

    Thanks

    #376344

    trist28
    Expired Member
    Post count: 9

    Hi,
    Some additional issues with the treeview main_list. The second category in set 1 character to the left and looks out of place with the rest.
    We still have the old site running but you will need to put an entry in your host file to see it.
    ###################################
    88.208.252.207 http://www.offroadfun.org
    ###################################
    On the old site you only see the pins for the category selected in the treeview mail_list.
    I have been thorough everything and can’t seem to get them to line up or show the pin for the category selected. This is starting to become a problem with the aesthetics of the site.

    Any help much appreciated.

    Thanks

    #376351

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    That file should only show one cat icon if only one cat set, are u sure u have it installed on the correct site?

    For the icons, this is due to the aspect ratio of the icon image, if they were all the same it would be the same, u could try fixing the width with css but it would stretch the marker icon image.

    Stiofan

    #376614

    trist28
    Expired Member
    Post count: 9

    Thanks Stiofan,
    The old site is on a different host server and the DNS all points to the new site now.
    I’ve kept the old site on the old host server and built the new site from scratch on a new host.
    Pin size and alignment may be what you said, i will get a new set of icons for them all to check.
    I will try your file again and make sure i flush the cashe and let you know.

    Thanks again

    #376617

    trist28
    Expired Member
    Post count: 9

    The get_markers.php file worked Stiofan. thank you very much for that. Still looking at the icons and what ones to use and i will let you know when resolved.

    Thanks again.

    #376620

    trist28
    Expired Member
    Post count: 9

    An odd size icon was causing the problem. I’ve put up some temp icons and this resolved the issue.
    I will get/make a new set all the same size.

    Thanks again for all your help.

Viewing 15 posts - 1 through 15 (of 16 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount