Fork me on GitHub

MyMap - how do I get it to show?  Bottom

  • I have a sandbox site with Zikula 1.0 and MyMap 1.0. I'm using the SeaBreeze theme.
    I have MyMap installed, activated, etc. Have found where the user can create his own map. The question is, what do I need to do to get the maps to show on the profile or front page or whatever?

    The readme.txt talks about adding it to your theme template and to use

    Code

    $pnRender = pnRender::getInstance('legal');    
        // create map
        $coords[] = array(
                    'lat'   => 48.922499263758255,
                    'lng'   => 11.25
                    );
        $coords[] = array(
                    'lat'   => 42.922499263758255,
                    'lng'   => 13.25,
                    'title' => 'testtitle',
                    'text'  => 'and some <strong>content</strong> for this bubble',
                    );
        $mapcode = pnModAPIFunc('MyMap','user','generateMap',array(
                    'coords'    => $coords,     // must be an array
                    'maptype'   => 'HYBRID',    // HYBRID, SATELLITE or NORMAL
                    'width'     => 640,         // width in pixels
                    'height'    => 480,         // height in pixels
                    'zoomfactor' => 13          // zoomfactor - 1 is closest
                    ));                         // zoomfactor only relevant if there is
                                                // only one marker displayed!
        $pnRender->assign('card_html_code',$mapcode);

    then it says: "The variable $card will have the generated HTML-text. You can
    now assign this variable to your template and use the map where-
    ever you need it!"
    But I have no clue where to put that code. It seems that it's already in my default theme/template since I have the create/edit maps in the my account section.
    Any and all help is greatly appreciated. Especially the "Dummies" version.

    Thanks in advance,
    Mickey
  • index.php?module=MyMap?
  • ok. there is already a link in the menu to My Map, but that just takes the user to be able to add/edit a map. When I'm logged in, I see where to edit my map, but when I look at another user's profile - even when I know that they have a map set up using My Map - the map doesn't show.
    What I want is to know how to show the map in the user's profile so that other users can view it.
    Any clue??
    BTW - did you ever get the MapQuest to work with MyMap? When I try to use the MapQuest, it says it's loading the export data but basically gets stuck there. I think I had seen a post by you about MapQuest. I would like to be able to use the MapQuest because it is supposed to have a driving directions section.
    I tried to use the Yahoo map - which is also supposed to have driving directions - but didn't see anything on there to show the directions.
    We are on a shared server and don't have the GPSBabel installed. The main reason for that is it only seems to be good to download/upload way points from a GPS unit. Nothing really necessary for using on my website. Or did I misunderstand what GPSBabel is supposed to do??

    Thanks,
    Mickey
  • Let me DL it and I'll see if I can figure out what you're running into. I know nothing about the module. As I said in the PM, just trying to throw out as simple answer, sometimes they work ;p
  • Try including the map template into the profile template
  • Quote

    Try including the map template into the profile template


    This is what needs to happen.
  • ok. I did some looking and I have NO clue where to put the map template in the profile template.
    Does it just go at the bottom of the template??
    What I want it to do is, User A goes to User B's profile and sees User B's map and location. Then User A can add his marker to User B's map (which I already set up to be allowed in the MyMap admin section) and User B can go to User A's profile and add his marker to User A's map too.
    For some reason, I'm thinking that there should be a plugin of some sort, but I can't find it and have no clue how to write/create one.

    Steven, I got the block you sent me and tried it out. It's on the front page for now. But, when I change the set up for the block in the admin, it doesn't change the block. Does that have anything to do with what I'm trying to do or is there something missing? Maybe Render or Ajax or I don't know what. :)

    Thanks,
    Mickey
  • Unfortunately Mickey, I'm like you and have very limited time right now. I don't know how much help I would be on the template or block issues. It's not that I don't want to help, it's that I don't understand AND I don't have time right now to investigate. Sorry Mickey.
  • Does MyMap work with PN764, or is it Zik1.0 only?


    --
    Adrian Chapman
    Webmaster
    Citroen Car Club
    www.CitroenCarClub.org.uk
  • AdrianChapman

    Does MyMap work with PN764, or is it Zik1.0 only?

    It works with PN .8/Zik 1.0 only.
  • hello Melinda,

    thanks for bringing up this.

    Melinda

    AdrianChapman

    Does MyMap work with PN764, or is it Zik1.0 only?
    It works with PN .8/Zik 1.0 only.


    well are there any demos out there. Would be helpful.

    cape

    Well - i found out new ideas - what bout this

    http://opensourcegis.org/
    any awareness do implement this in zikula?





    edited by: capetownlighthouse, Jul 28, 2008 - 04:19 PM

    --
    Greetings Cape

    ...if you ever go to Cape Town and South Africa you must visit the famous lighthouses. Cape Town - one of the most beautiful cities in the world.
  • [quote=capetownlighthouse]hello Melinda,

    thanks for bringing up this.

    Melinda

    AdrianChapman

    Does MyMap work with PN764, or is it Zik1.0 only?
    It works with PN .8/Zik 1.0 only.


    well are there any demos out there. Would be helpful.

    cape

    Well - i found out new ideas - what bout this

    update: http://opensourcegis.org/
    any awareness do implement this in zikula?



    --
    Greetings Cape

    ...if you ever go to Cape Town and South Africa you must visit the famous lighthouses. Cape Town - one of the most beautiful cities in the world.

This list is based on users active over the last 60 minutes.