Buying want a GOOGLE MAPS expert

Discussion in 'Programming' started by competent123, Mar 2, 2013.

  1. #1
    i have a client who needs something identical to bit.ly/XvIrpR this.

    basically he wants a google store locator for his site. click on logos of the sites for example, it should work exactly like it.
    you will see it finds the business on the map, and puts its info and logo above

    everything needs to be exactly the same as on site. nothing else, also it needs to be coded in html ( you can use php database as well if you think that will work)

    check it , and please message me with at least a functional demo of the site ( google maps)

    budget of 50$

    i want it get it done today itself.
     
    competent123, Mar 2, 2013 IP
  2. EllenSmith

    EllenSmith Active Member

    Messages:
    210
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    55
    As Seller:
    100% - 5
    As Buyer:
    100% - 0
    #2
    Hi
    Is it for WordPress?
     
    EllenSmith, Mar 2, 2013 IP
  3. competent123

    competent123 Notable Member

    Messages:
    1,752
    Likes Received:
    71
    Best Answers:
    6
    Trophy Points:
    255
    As Seller:
    100% - 2
    As Buyer:
    0.0% - 0
    #3
    no, html only.
     
    competent123, Mar 2, 2013 IP
  4. EllenSmith

    EllenSmith Active Member

    Messages:
    210
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    55
    As Seller:
    100% - 5
    As Buyer:
    100% - 0
    #4
    Hi
    ...just embed google map inside the post
    {gmap|address|width|height}



    <?php
    /**
     
    if($_GET['address']!=''){
            echo showMap($_GET[address], $_GET[width], $_GET[height]);
            die();
        }
     
     
    function googleMap($content){
     
        preg_match_all("/\{gmap\|([^\}]+)\}/", $content, $matches); 
        for($i=0;$i<count($matches[1]);$i++){
        $d = explode("|", $matches[1][$i]); 
        $matches[1][$i] = showMap($d[0],$d[1], $d[2]); // '<iframe width="'.$d[1].'" height="'.$d[2].'" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q='.$d[0].'&amp;ie=UTF8&amp;hq=&amp;hnear='.$d[0].'&amp;z=11&amp;output=embed"></iframe><br /><small><a href="http://maps.google.com/maps?f=q&amp;source=embed&amp;hl=en&amp;geocode=&amp;q='.$d[0].'&amp;ie=UTF8&amp;hq=&amp;hnear='.$d[0].'&amp;z=11" style="color:#0000FF;text-align:left">View Larger Map</a></small>';
        }
     
        $content = str_replace($matches[0],$matches[1], $content);
     
        $matches = array();
        preg_match_all("/\{gmap_link\|([^\}]+)\}/", $content, $matches);
        if(count($_GET)>0) $url = $_SERVER['REQUEST_URI'].'&';
        else  $url = $_SERVER['REQUEST_URI'].'?';
        for($i=0;$i<count($matches[1]);$i++){
        $d = explode("|", $matches[1][$i]); 
        $matches[1][$i] = "javascript:window.open('".$url."address=".$d[0]."&width=".$d[1]."&height=".$d[2]."','Google Map for $d[0]','menubar=no,width=".($d[1]+20).",height=".($d[2]+30).",toolbar=no');void(0);";
        }
     
        $content = str_replace($matches[0],$matches[1], $content); 
        return $content;
    }
     
    function showMap($address, $w, $h){
        return '<iframe width="'.$w.'" height="'.$h.'" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q='.$address.'&amp;ie=UTF8&amp;hq=&amp;hnear='.$address.'&amp;z=11&amp;output=embed"></iframe><br /><small><a href="http://maps.google.com/maps?f=q&amp;source=embed&amp;hl=en&amp;geocode=&amp;q='.$address.'&amp;ie=UTF8&amp;hq=&amp;hnear='.$address.'&amp;z=11" style="color:#0000FF;text-align:left">View Larger Map</a></small>';
    }
     
    add_filter("the_content","googleMap");
    PHP:
     
    EllenSmith, Mar 2, 2013 IP
  5. competent123

    competent123 Notable Member

    Messages:
    1,752
    Likes Received:
    71
    Best Answers:
    6
    Trophy Points:
    255
    As Seller:
    100% - 2
    As Buyer:
    0.0% - 0
    #5
    make sure to include a SAMPLE in PM.
     
    competent123, Mar 2, 2013 IP